head 1.10; access; symbols OPENPKG_E1_MP:1.2 OPENPKG_E1_MP_HEAD:1.2; locks; strict; comment @-- @; 1.10 date 2009.04.18.13.12.50; author rse; state Exp; branches; next 1.9; commitid 4pHXU27WTIGCZuKt; 1.9 date 2008.02.19.21.01.40; author thl; state Exp; branches; next 1.8; commitid UMIUGQxOS57Ih3Ss; 1.8 date 2008.01.01.14.58.41; author rse; state Exp; branches; next 1.7; commitid B8esaHJHoduuKILs; 1.7 date 2007.10.27.11.59.37; author cs; state Exp; branches; next 1.6; commitid XKMxflRJ6S7CYdDs; 1.6 date 2007.09.07.21.42.43; author rse; state Exp; branches; next 1.5; commitid dmYnu8uEqp0DOQws; 1.5 date 2007.08.07.10.15.17; author rse; state Exp; branches; next 1.4; commitid KB3REU1b6MCz0Oss; 1.4 date 2007.08.06.19.20.21; author rse; state Exp; branches; next 1.3; commitid 2caS63qjHlIy3Jss; 1.3 date 2007.03.02.09.36.59; author rse; state Exp; branches; next 1.2; commitid RxJYDMd1kHOjSu8s; 1.2 date 2007.01.01.17.39.46; author rse; state Exp; branches; next 1.1; commitid BicZD6VUl7GuqP0s; 1.1 date 2006.12.30.17.16.08; author rse; state Exp; branches; next ; commitid sp7klyeVNDEopz0s; desc @@ 1.10 log @bump years in copyright messages @ text @## ## milter-sa.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-sa Summary: Mail Filter for Spam Filtering via SpamAssassin URL: http://savannah.nongnu.org/projects/spamass-milt/ Vendor: Georg C. F. Greve et al. Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Mail License: GPL Version: 0.3.1 Release: 20080219 # package options %option with_fsl yes # list of sources Source0: http://download.savannah.nongnu.org/releases/spamass-milt/spamass-milter-%{version}.tar.gz Source1: rc.milter-sa Source2: fsl.milter-sa Patch0: milter-sa.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20060823 PreReq: OpenPKG, openpkg >= 20060823 BuildPreReq: spamassassin, milter, MTA PreReq: spamassassin, milter, MTA %if "%{with_fsl}" == "yes" BuildPreReq: fsl PreReq: fsl %endif AutoReq: no AutoReqProv: no %description This package contains spamass-milter(1), a mail filtering gateway between the MTA and SpamAssassin, based on the MILTER API. %track prog milter-sa = { version = %{version} url = http://download.savannah.nongnu.org/releases/spamass-milt/ regex = spamass-milter-(__VER__)\.tar\.gz } %prep %setup -q -n spamass-milter-%{version} %patch -p0 %build # configure program CC="%{l_cc}" \ CXX="%{l_cxx}" \ CFLAGS="%{l_cflags -O}" \ CXXFLAGS="%{l_cxxflags -O}" \ CPPFLAGS="%{l_cppflags}" \ LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \ LIBS="%{l_fsl_libs}" \ ./configure \ --prefix=%{l_prefix} # build program %{l_make} %{l_mflags -O} %install # install program rm -rf $RPM_BUILD_ROOT %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" # strip down installation strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true # install run-command script %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d %{l_shtool} install -c -m 755 %{l_value -s -a} \ %{SOURCE rc.milter-sa} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ # install OSSP fsl configuration %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/fsl %{l_shtool} install -c -m 644 %{l_value -s -a} \ %{SOURCE fsl.milter-sa} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/ # create run-time directory %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/var/milter-sa # 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-sa' %files -f files %clean rm -rf $RPM_BUILD_ROOT %post # after upgrade, restart service [ $1 -eq 2 ] || exit 0 eval `%{l_rc} milter-sa status 2>/dev/null` [ ".$milter_sa_active" = .yes ] && %{l_rc} milter-sa restart exit 0 %preun # before erase, stop service and remove log files [ $1 -eq 0 ] || exit 0 %{l_rc} milter-sa stop 2>/dev/null rm -f $RPM_INSTALL_PREFIX/var/milter-sa/* >/dev/null 2>&1 || true exit 0 @ 1.9 log @add feature: Custom delivery status notification (DSN) comment @ text @d3 1 a3 1 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. @ 1.8 log @Update package specifications according to OpenPKG year 2008 world order: http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html @ text @d35 1 a35 1 Release: 20080101 @ 1.7 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.6 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.5 log @spamass-milter requires more time to shutdown @ text @d36 1 a36 1 Release: 20070807 @ 1.4 log @add -a option also to SYNOPSIS in manual page and require spamassassin package already under build-time to fix configure-time @ text @d36 1 a36 1 Release: 20070806 @ 1.3 log @unbreak under runtime (version mismatch) by including the OpenPKG (and not the system) MILTER API @ text @d36 1 a36 1 Release: 20070302 d51 3 a53 3 PreReq: OpenPKG, openpkg >= 20060823, spamassassin BuildPreReq: milter, MTA PreReq: milter, MTA @ 1.2 log @Welcome Year 2007! @ text @d36 1 a36 1 Release: 20061230 a77 3 %{l_shtool} subst \ -e 's;libmilter/mfapi;milter/mfapi;g' \ configure @ 1.1 log @new package: milter-sa 0.3.1 (Mail Filter for Spam Filtering via SpamAssassin) @ text @d3 2 a4 2 ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. ## Copyright (c) 2000-2006 Ralf S. Engelschall @