head 1.14; access; symbols OPENPKG_E1_MP:1.4 OPENPKG_E1_MP_HEAD:1.4; locks; strict; comment @-- @; 1.14 date 2009.07.05.17.54.28; author rse; state Exp; branches; next 1.13; commitid jytlYJ8VLqU37yUt; 1.13 date 2009.06.30.20.20.59; author rse; state Exp; branches; next 1.12; commitid mW7f5wxeUG4f4VTt; 1.12 date 2009.04.18.13.12.51; author rse; state Exp; branches; next 1.11; commitid 4pHXU27WTIGCZuKt; 1.11 date 2008.05.04.07.28.32; author rse; state Exp; branches; next 1.10; commitid mp3tidJjK9oinC1t; 1.10 date 2008.01.01.14.58.44; author rse; state Exp; branches; next 1.9; commitid B8esaHJHoduuKILs; 1.9 date 2007.11.02.08.17.55; author rse; state Exp; branches; next 1.8; commitid FhKml1Rl4mRVyYDs; 1.8 date 2007.09.07.21.35.31; author rse; state Exp; branches; next 1.7; commitid nKNf6wffNcI9MQws; 1.7 date 2007.04.04.15.40.25; author cs; state Exp; branches; next 1.6; commitid jLLhJj375ljePLcs; 1.6 date 2007.02.13.21.41.51; author rse; state Exp; branches; next 1.5; commitid ZHhahiiC7TVRqn6s; 1.5 date 2007.02.01.17.32.03; author rse; state Exp; branches; next 1.4; commitid ZURijGM6Mej5rO4s; 1.4 date 2007.01.01.17.39.45; author rse; state Exp; branches; next 1.3; commitid BicZD6VUl7GuqP0s; 1.3 date 2006.12.29.17.19.31; author rse; state Exp; branches; next 1.2; commitid TTOx00qNqkeysr0s; 1.2 date 2006.12.28.20.22.44; author rse; state Exp; branches; next 1.1; commitid 1RJqP2l1XCFovk0s; 1.1 date 2006.12.28.20.19.12; author rse; state Exp; branches; next ; commitid 7miohdb82s8buk0s; desc @@ 1.14 log @upgrade to newer Sendmail::PMilter @ text @## ## milter.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 version %define V_libmilter 8.14.3 %define V_sendmail_pmilter 0.97 %define V_mail_milter 0.07 # package information Name: milter Summary: Mail Filtering API URL: http://www.sendmail.org/doc/sendmail-current/libmilter/docs/ Vendor: Eric Allman, Todd Vierling Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Mail License: BSD/Artistic Version: %{V_libmilter} Release: 20090705 # package options %option with_perl no # list of sources Source0: ftp://ftp.sendmail.org/pub/sendmail/sendmail.%{V_libmilter}.tar.gz Source1: http://www.cpan.org/authors/id/A/AV/AVAR/Sendmail-PMilter-%{V_sendmail_pmilter}.tar.gz Source2: http://switch.dl.sourceforge.net/sourceforge/pmilter/Mail-Milter-%{V_mail_milter}.tar.gz Source3: milter.pc Patch0: milter.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20060823 PreReq: OpenPKG, openpkg >= 20060823 %if "%{with_perl}" == "yes" BuildPreReq: perl, perl-openpkg PreReq: perl %endif AutoReq: no AutoReqProv: no %description MILTER is the mail and SMTP protocol filtering API developed with the Sendmail 8 MTA. This package provides Sendmail's original client-side C API (libmilter) and optionally the alternative client-side Perl APIs (Sendmail::Milter, Sendmail::PMilter, Mail::Milter). %track prog milter:libmilter = { version = %{V_libmilter} url = ftp://ftp.sendmail.org/pub/sendmail/ regex = sendmail.(\d+\.\d+\.\d+)\.tar\.gz } prog milter:Sendmail-PMilter = { version = %{V_sendmail_pmilter} url = http://www.cpan.org/authors/id/A/AV/AVAR/ regex = Sendmail-PMilter-(__VER__)\.tar\.gz } prog milter:Mail-Milter = { version = %{V_mail_milter} url = http://sourceforge.net/projects/pmilter/files/ regex = Mail-Milter-(__VER__)\.tar\.gz } %prep %setup -q -c %setup -q -T -D -a 1 %setup -q -T -D -a 2 %patch -p0 %build # build C API ( cd sendmail-%{V_libmilter} extlibs="%{l_fsl_libs} -ldb" 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}')dnl" echo "APPENDDEF(\`confLIBS', \`$extlibs')dnl" echo "define(\`confSTDIO_TYPE', \`portable')dnl" echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DMILTER=1')dnl" echo "APPENDDEF(\`conf_libmilter_ENVDEF', \`-D_FFR_MILTER_ROOT_UNSAFE')dnl" ) >devtools/Site/site.config.m4 ( cd include ln -s libmilter milter ) || exit $? ( cd libmilter ./Build ) || exit $? ) || exit $? # build Perl API %if "%{with_perl}" == "yes" %{l_prefix}/bin/perl-openpkg prepare %{l_prefix}/bin/perl-openpkg -d Sendmail-PMilter-%{V_sendmail_pmilter} configure build %{l_prefix}/bin/perl-openpkg -d Mail-Milter-%{V_mail_milter} configure build %endif %install rm -rf $RPM_BUILD_ROOT # install C API ( cd sendmail-%{V_libmilter} %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/include/milter \ $RPM_BUILD_ROOT%{l_prefix}/lib/milter %{l_shtool} install -c -m 644 \ include/libmilter/*.h \ $RPM_BUILD_ROOT%{l_prefix}/include/milter/ %{l_shtool} install -c -m 644 \ obj.*/libmilter/libmilter.a \ $RPM_BUILD_ROOT%{l_prefix}/lib/ ) || exit $? libs=`grep "^LDOPTS=" sendmail-%{V_libmilter}/obj.*/libmilter/Makefile | sed -e 's;^LDOPTS=;;'` libs="$libs -lmilter" case "%{l_platform -t}" in *-sunos* ) libs="$libs -lrt" ;; esac %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig %{l_shtool} install -c -m 644 %{l_value -s -a} \ -e "s;@@version@@;%{version};" \ -e "s;@@libs@@;$libs;" \ %{SOURCE milter.pc} $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/ # install Perl API %if "%{with_perl}" == "yes" %{l_prefix}/bin/perl-openpkg -d Sendmail-PMilter-%{V_sendmail_pmilter} install %{l_prefix}/bin/perl-openpkg -d Mail-Milter-%{V_mail_milter} install %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup %else >perl-openpkg-files %endif # create parent run-time directory of MILTER application sockets %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/var/milter # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} `cat perl-openpkg-files` %files -f files %clean rm -rf $RPM_BUILD_ROOT %post # create run-time directory of MILTER application sockets # (which are required to have particular user/group ownerships # in order to allow all MTAs to access it under run-time) mkdir $RPM_INSTALL_PREFIX/var/milter/socket 2>/dev/null || true chown %{l_rusr}:%{l_mgrp} $RPM_INSTALL_PREFIX/var/milter/socket chmod 2775 $RPM_INSTALL_PREFIX/var/milter/socket %preun # try to remove run-time directory of MILTER application sockets rmdir $RPM_INSTALL_PREFIX/var/milter/socket 2>/dev/null || true @ 1.13 log @switch to the new SourceForge.net website functionality where we can find all files (again) @ text @d26 1 a26 1 %define V_sendmail_pmilter 0.95 d40 1 a40 1 Release: 20080504 d47 1 a47 1 Source1: http://switch.dl.sourceforge.net/sourceforge/pmilter/Sendmail-PMilter-%{V_sendmail_pmilter}.tar.gz d79 1 a79 1 url = http://sourceforge.net/projects/pmilter/files/ @ 1.12 log @bump years in copyright messages @ text @d79 1 a79 1 url = http://prdownloads.sourceforge.net/pmilter/ d84 1 a84 1 url = http://prdownloads.sourceforge.net/pmilter/ @ 1.11 log @upgrading package: milter 8.14.2 -> 8.14.3 @ text @d3 1 a3 1 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. @ 1.10 log @Update package specifications according to OpenPKG year 2008 world order: http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html @ text @d25 1 a25 1 %define V_libmilter 8.14.2 d40 1 a40 1 Release: 20080101 @ 1.9 log @upgrading package: milter 8.14.1 -> 8.14.2 @ text @d3 1 a3 2 ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. ## Copyright (c) 2000-2007 Ralf S. Engelschall d40 1 a40 1 Release: 20071102 @ 1.8 log @provide a run-time directory for 'local' sockets of MILTER application (we cannot use attr() here as RPM dislikes setgid directory attributes, so we have to do it manually in %post/%preun) @ text @d26 1 a26 1 %define V_libmilter 8.14.1 d41 1 a41 1 Release: 20070907 @ 1.7 log @upgrading package: milter 8.14.0 -> 8.14.1 @ text @d41 1 a41 1 Release: 20070404 d161 4 d174 12 @ 1.6 log @fix location of milter C headers @ text @d26 1 a26 1 %define V_libmilter 8.14.0 d41 1 a41 1 Release: 20070213 @ 1.5 log @upgrading package: milter 8.13.8 -> 8.14.0 @ text @d41 1 a41 1 Release: 20070201 d110 3 @ 1.4 log @Welcome Year 2007! @ text @d26 1 a26 1 %define V_libmilter 8.13.8 d41 1 a41 1 Release: 20061229 @ 1.3 log @God, is it me? Is it really me?? Why is God always refusing me to act as a _user_ and always seem to insist that I acts as a _developer_? Everytime I evaluate an arbitrary technology I just have to discover that I seem to be the first one on earth who has to determine that it is just broken and cannot be used as is. Independent how old and mature the technology actually is -- according to others. As a result, before I can evaluate something (as a user) I first have to fix it (as a developer). F%&k, I really would like I can start working on my _solutions_ and not always having to fix the underlying technologies first... @ text @d3 2 a4 2 ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. ## Copyright (c) 2000-2006 Ralf S. Engelschall @ 1.2 log @use a better URL @ text @d41 1 a41 1 Release: 20061228 d51 1 a90 1 %if "%{with_perl}" == "yes" d93 1 a93 1 %endif @ 1.1 log @new package: milter 8.13.8 (Mail Filtering API) @ text @d33 1 a33 1 URL: http://www.milter.org/ @