head 1.17; access; symbols OPENPKG_E1_MP:1.6 OPENPKG_E1_MP_HEAD:1.6; locks; strict; comment @-- @; 1.17 date 2009.06.30.20.21.00; author rse; state Exp; branches; next 1.16; commitid mW7f5wxeUG4f4VTt; 1.16 date 2009.04.18.13.12.49; author rse; state Exp; branches; next 1.15; commitid 4pHXU27WTIGCZuKt; 1.15 date 2009.03.27.11.05.32; author rse; state Exp; branches; next 1.14; commitid RWKf0i3TU8k34FHt; 1.14 date 2008.03.14.16.57.23; author cs; state Exp; branches; next 1.13; commitid FeX1Nj51rKh5a7Vs; 1.13 date 2008.01.01.14.58.37; author rse; state Exp; branches; next 1.12; commitid B8esaHJHoduuKILs; 1.12 date 2007.10.27.11.59.34; author cs; state Exp; branches; next 1.11; commitid XKMxflRJ6S7CYdDs; 1.11 date 2007.09.07.21.38.09; author rse; state Exp; branches; next 1.10; commitid T2Zc5q1gbQ24NQws; 1.10 date 2007.06.01.17.32.51; author cs; state Exp; branches; next 1.9; commitid 0hZRMR6svsUcAeks; 1.9 date 2007.04.11.06.46.16; author rse; state Exp; branches; next 1.8; commitid S3CCih1E4Pj2ECds; 1.8 date 2007.03.14.07.25.37; author cs; state Exp; branches; next 1.7; commitid 6gXuCD772vLkL1as; 1.7 date 2007.03.02.09.28.16; author rse; state Exp; branches; next 1.6; commitid THPRV5X7VyHkPu8s; 1.6 date 2007.01.01.17.39.45; author rse; state Exp; branches; next 1.5; commitid BicZD6VUl7GuqP0s; 1.5 date 2006.12.30.21.15.10; author rse; state Exp; branches; next 1.4; commitid w1OIcbKNw6DoJA0s; 1.4 date 2006.12.30.19.22.02; author rse; state Exp; branches; next 1.3; commitid ejRGES1nv1xA6A0s; 1.3 date 2006.12.30.12.43.45; author rse; state Exp; branches; next 1.2; commitid TT3J8XdLeLVWTx0s; 1.2 date 2006.12.30.12.38.53; author rse; state Exp; branches; next 1.1; commitid u5Rw0HKXs8FhSx0s; 1.1 date 2006.12.30.10.03.55; author rse; state Exp; branches; next ; commitid iewPjPEFLkV61x0s; desc @@ 1.17 log @switch to the new SourceForge.net website functionality where we can find all files (again) @ text @## ## milter-dk.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that ## the above copyright notice and this permission notice appear in all ## copies. ## ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ## SUCH DAMAGE. ## # package information Name: milter-dk Summary: Mail Filter for DomainKeys URL: http://dk-milter.sourceforge.net/ Vendor: Sendmail, Inc. Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Mail License: Open Source Version: 1.0.2 Release: 20090327 # package options %option with_fsl yes # list of sources Source0: http://switch.dl.sourceforge.net/dk-milter/dk-milter-%{version}.tar.gz Source1: rc.milter-dk Source2: fsl.milter-dk Patch0: milter-dk.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20060823 PreReq: OpenPKG, openpkg >= 20060823 BuildPreReq: milter PreReq: milter %if "%{with_fsl}" == "yes" BuildPreReq: fsl PreReq: fsl %endif AutoReq: no AutoReqProv: no %description This is a DomainKeys based mail sender authentication based on the MILTER API of MTAs. %track prog milter-dk = { version = %{version} url = http://sourceforge.net/projects/dk-milter/files/ regex = dk-milter-(__VER__)\.tar\.gz } %prep %setup -q -n dk-milter-%{version} %patch -p0 %build # configure program extlibs="%{l_fsl_libs}" case "%{l_platform -t}" in *-sunos* ) extlibs="$extlibs -lrt" ;; esac ( echo "define(\`confCC', \`%{l_cc} %{l_cflags}')dnl" echo "APPENDDEF(\`confINCDIRS', \`%{l_cppflags}')dnl" echo "APPENDDEF(\`confLIBDIRS', \`%{l_ldflags} %{l_fsl_ldflags}')dnl" echo "APPENDDEF(\`confLIBS', \`$extlibs')dnl" ) >devtools/Site/site.config.m4 # build program ./Build %install # create installation hierarchy rm -rf $RPM_BUILD_ROOT %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ $RPM_BUILD_ROOT%{l_prefix}/etc/fsl \ $RPM_BUILD_ROOT%{l_prefix}/sbin \ $RPM_BUILD_ROOT%{l_prefix}/man/man8 \ $RPM_BUILD_ROOT%{l_prefix}/var/milter-dk/tmp # install program %{l_shtool} install -c -s -m 755 \ obj.*/dk-filter/dk-filter $RPM_BUILD_ROOT%{l_prefix}/sbin/ # install manual page %{l_shtool} install -c -m 644 \ dk-filter/dk-filter.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/ # install run-command script %{l_shtool} install -c -m 755 %{l_value -s -a} \ %{SOURCE rc.milter-dk} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ # install OSSP fsl configuration %{l_shtool} install -c -m 644 %{l_value -s -a} \ %{SOURCE fsl.milter-dk} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/ # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ '%config %{l_prefix}/etc/fsl/*' \ '%attr(755,%{l_rusr},%{l_mgrp}) %{l_prefix}/var/milter-dk/*' \ '%attr(755,%{l_rusr},%{l_mgrp}) %{l_prefix}/var/milter-dk' %files -f files %clean rm -rf $RPM_BUILD_ROOT %post # after upgrade, restart service [ $1 -eq 2 ] || exit 0 eval `%{l_rc} milter-dk status 2>/dev/null` [ ".$milter_dk_active" = .yes ] && %{l_rc} milter-dk restart exit 0 %preun # before erase, stop service and remove log files [ $1 -eq 0 ] || exit 0 %{l_rc} milter-dk stop 2>/dev/null rm -f $RPM_INSTALL_PREFIX/var/milter-dk/* >/dev/null 2>&1 || true exit 0 @ 1.16 log @bump years in copyright messages @ text @d67 1 a67 1 url = http://prdownloads.sourceforge.net/dk-milter/ @ 1.15 log @upgrading package: milter-dk 1.0.0 -> 1.0.2 @ text @d3 1 a3 1 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. @ 1.14 log @upgrading package: milter-dk 0.6.0 -> 1.0.0 @ text @d34 2 a35 2 Version: 1.0.0 Release: 20080314 @ 1.13 log @Update package specifications according to OpenPKG year 2008 world order: http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html @ text @d34 2 a35 2 Version: 0.6.0 Release: 20080101 @ 1.12 log @Drop version information of OSSP fsl dependency since it doesn't make to much sense in an CURRENT-only world. Additionally, in several cases it has been choosen quite at will without being correct. @ text @d3 1 a3 2 ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. ## Copyright (c) 2000-2007 Ralf S. Engelschall d35 1 a35 1 Release: 20071027 @ 1.11 log @use shared MILTER socket directory @ text @d36 1 a36 1 Release: 20070907 d55 2 a56 2 BuildPreReq: fsl >= 1.2.0 PreReq: fsl >= 1.2.0 @ 1.10 log @upgrading package: milter-dk 0.5.0 -> 0.6.0 @ text @d36 1 a36 1 Release: 20070601 @ 1.9 log @upgrading package: milter-dk 0.4.2 -> 0.5.0 @ text @d35 2 a36 2 Version: 0.5.0 Release: 20070411 @ 1.8 log @upgrading package: milter-dk 0.4.1 -> 0.4.2 @ text @d35 2 a36 2 Version: 0.4.2 Release: 20070314 @ 1.7 log @unbreak under runtime (version mismatch) by including the OpenPKG (and not the system) MILTER API @ text @d35 2 a36 2 Version: 0.4.1 Release: 20070302 @ 1.6 log @Welcome Year 2007! @ text @d36 1 a36 1 Release: 20061230 @ 1.5 log @add a bunch of comments to make the packaging easier to follow @ text @d3 2 a4 2 ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. ## Copyright (c) 2000-2006 Ralf S. Engelschall @ 1.4 log @fix variable name @ text @d77 1 d87 2 d92 1 d100 2 d104 2 d108 2 d112 2 d116 2 @ 1.3 log @apply the MILTER workaround for Postfix as mentioned on the Postfix website @ text @d119 1 a119 1 [ ".$milter_dk" = .yes ] && %{l_rc} milter-dk restart @ 1.2 log @fix socket ownership and permissions again to allow Postfix to talk to this MILTER @ text @d45 1 d74 1 @ 1.1 log @new package: milter-dk 0.4.1 (Mail Filter for DomainKeys) @ text @d105 2 a106 2 '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/milter-dk/*' \ '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/milter-dk' @