head 1.18; access; symbols OPENPKG_E1_MP_HEAD:1.13 OPENPKG_E1_MP:1.13 OPENPKG_E1_MP_2_STABLE:1.12.2.2 OPENPKG_E1_FP:1.12.2.2 OPENPKG_2_STABLE_MP:1.12 OPENPKG_2_STABLE_20061018:1.12.2.2 OPENPKG_2_STABLE:1.12.0.2 OPENPKG_CW_FP:1.7; locks; strict; comment @-- @; 1.18 date 2009.04.18.13.09.57; author rse; state Exp; branches; next 1.17; commitid 4pHXU27WTIGCZuKt; 1.17 date 2008.01.01.14.53.12; author rse; state Exp; branches; next 1.16; commitid B8esaHJHoduuKILs; 1.16 date 2007.12.27.12.21.15; author rse; state Exp; branches; next 1.15; commitid 5c359f8Z5r7N84Ls; 1.15 date 2007.10.27.11.59.23; author cs; state Exp; branches; next 1.14; commitid XKMxflRJ6S7CYdDs; 1.14 date 2007.07.20.20.16.23; author thl; state Exp; branches; next 1.13; commitid yCyWfcoNSNOaUxqs; 1.13 date 2007.01.01.17.37.34; author rse; state Exp; branches; next 1.12; commitid BicZD6VUl7GuqP0s; 1.12 date 2006.10.13.17.27.47; author thl; state Exp; branches 1.12.2.1; next 1.11; commitid q5GSxzsSDX29XxQr; 1.11 date 2006.10.12.11.21.36; author rse; state Exp; branches; next 1.10; commitid mk3OtRpgzWcdZnQr; 1.10 date 2006.08.25.19.16.17; author rse; state Exp; branches; next 1.9; commitid Tvsj1UyQ8rQ89gKr; 1.9 date 2006.01.01.13.13.15; author rse; state Exp; branches; next 1.8; commitid otZG8yKMCw1JFTfr; 1.8 date 2005.03.24.11.18.42; author rse; state Exp; branches; next 1.7; 1.7 date 2005.01.01.10.48.50; author rse; state Exp; branches; next 1.6; 1.6 date 2004.08.29.10.48.26; author rse; state Exp; branches; next 1.5; 1.5 date 2004.07.06.11.18.10; author ms; state Exp; branches; next 1.4; 1.4 date 2004.04.27.17.54.02; author rse; state Exp; branches; next 1.3; 1.3 date 2004.04.14.14.46.35; author rse; state Exp; branches; next 1.2; 1.2 date 2004.04.14.14.40.28; author rse; state Exp; branches; next 1.1; 1.1 date 2004.04.14.14.23.23; author rse; state Exp; branches; next ; 1.12.2.1 date 2006.10.13.17.27.47; author rse; state dead; branches; next 1.12.2.2; commitid iZxwRSmmWscPXUQr; 1.12.2.2 date 2006.10.16.14.49.39; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; desc @@ 1.18 log @bump years in copyright messages @ text @## ## drac.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: drac Summary: Dynamic Relay Authorization Control (DRAC) URL: http://mail.cc.umanitoba.ca/drac/ Vendor: University of Manitoba Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Mail License: BSD Version: 1.12 Release: 20080101 # package options %option with_fsl yes # list of sources Source0: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/drac/drac-%{version}.tar.Z Source1: rc.drac Source2: fsl.drac Source3: drac.h # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20060823, gcc PreReq: OpenPKG, openpkg >= 20060823 %if "%{with_fsl}" == "yes" BuildPreReq: fsl PreReq: fsl %endif BuildPreReq: db >= 4.2 PreReq: db >= 4.2 AutoReq: no AutoReqProv: no %description DRAC is a daemon that dynamically updates a relay authorization map for Sendmail, Postfix and other MTA's that supports it. It provides a way to allow legitimate users to relay mail through an SMTP server, while still preventing others from using it as a spam relay. User's IP addresses are added to the map immediately after they have authenticated to the POP or IMAP server. By default, map entries expire after 30 minutes, but can be renewed by additional authentication. Periodically checking mail on a POP server is sufficient to do this. The POP and SMTP servers can be on different hosts. %track prog drac = { version = %{version} url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/drac/ regex = drac-(__VER__)\.tar\.Z } %prep %setup -q -c %build # determine platform dependent flags cppflags="%{l_cppflags}" ldflags="%{l_ldflags} -ldb" ldflags_tst="-L. -ldrac" case "%{l_platform -t}" in *-sunos5.10* ) cppflags="$cppflags -DTI_RPC -DFCNTL_LOCK -DSYSINFO" ldflags="$ldflags -lnsl -lrt" ldflags_tst="$ldflags_tst -lnsl -lsocket" ;; *-sunos5.[6-9]* ) cppflags="$cppflags -DTI_RPC -DFCNTL_LOCK -DSYSINFO" ldflags="$ldflags -lnsl" ldflags_tst="$ldflags_tst -lnsl" ;; *-freebsd[45]* | *-linux2* | *-netbsd1* ) cppflags="$cppflags -DSOCK_RPC -DFLOCK_LOCK -DGETHOST -DDASH_C" ;; *-irix6* ) cppflags="$cppflags -DTI_RPC -DFCNTL_LOCK -DSYSINFO -D_SVR4_TIRPC" ldflags="$ldflags -lnsl" ldflags_tst="$ldflags_tst -lnsl" ;; esac # configure build environment %{l_shtool} subst \ -e "s;^\(DEFS =\).*\$;\1 $cppflags;" \ -e "s;^\(LDLIBS =\).*\$;\1 %{l_fsl_libs} $ldflags;" \ -e "s;^\(TSTLIBS =\).*\$;\1 $ldflags_tst;" \ -e 's;^\(CC =\).*$;\1 %{l_cc};' \ -e 's;^\(RANLIB =\).*$;\1 ranlib;' \ -e 's;^\(CFLAGS =\).*$;\1 \$(DEFS);' \ -e 's;^\(RPCGENFLAGS =\).*$;\1 -Y %{l_prefix}/bin;' \ Makefile # configure paths in source %{l_shtool} subst \ -e "s;/etc/mail;%{l_prefix}/etc/drac;g" \ rpc.dracd.c # build program and library %{l_make} %{l_mflags} %install # create installation area rm -rf $RPM_BUILD_ROOT %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/drac \ $RPM_BUILD_ROOT%{l_prefix}/var/drac \ $RPM_BUILD_ROOT%{l_prefix}/sbin \ $RPM_BUILD_ROOT%{l_prefix}/lib \ $RPM_BUILD_ROOT%{l_prefix}/include \ $RPM_BUILD_ROOT%{l_prefix}/man/man8 \ $RPM_BUILD_ROOT%{l_prefix}/man/man3 # install program %{l_shtool} install -c -s -m 755 \ rpc.dracd $RPM_BUILD_ROOT%{l_prefix}/sbin/dracd %{l_shtool} install -c -m 644 \ rpc.dracd.1m $RPM_BUILD_ROOT%{l_prefix}/man/man8/dracd.8 # install library %{l_shtool} install -c -m 644 \ %{SOURCE drac.h} $RPM_BUILD_ROOT%{l_prefix}/include/ %{l_shtool} install -c -m 644 \ libdrac.a $RPM_BUILD_ROOT%{l_prefix}/lib/ %{l_shtool} install -c -m 644 \ dracauth.3 $RPM_BUILD_ROOT%{l_prefix}/man/man3/ # install empty database %{l_shtool} install -c -m 644 \ /dev/null $RPM_BUILD_ROOT%{l_prefix}/etc/drac/dracd.db # 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.drac} $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.drac} \ $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/fsl.drac' \ '%config %{l_prefix}/etc/drac/dracd.db' %files -f files %clean rm -rf $RPM_BUILD_ROOT @ 1.17 log @Update package specifications according to OpenPKG year 2008 world order: http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html @ text @d3 1 a3 1 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. @ 1.16 log @port to Solaris 10 @ 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: 20071227 @ 1.15 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 @d36 1 a36 1 Release: 20071027 d89 5 @ 1.14 log @remove "%not %dir" construct, allowing proper directory ownership tracking and removal when erasing last provider @ text @d36 1 a36 1 Release: 20070720 d53 2 a54 2 BuildPreReq: fsl >= 1.2.0 PreReq: fsl >= 1.2.0 @ 1.13 log @Welcome Year 2007! @ text @d36 1 a36 1 Release: 20061013 a168 1 '%not %dir %{l_prefix}/etc/fsl' \ @ 1.12 log @new world order for "Packager" and "Distribution" headers @ text @d3 2 a4 2 ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. ## Copyright (c) 2000-2006 Ralf S. Engelschall @ 1.12.2.1 log @file drac.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:49:39 +0000 @ text @d1 177 @ 1.12.2.2 log @Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class) @ text @a0 177 ## ## drac.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. ## Copyright (c) 2000-2006 Ralf S. Engelschall ## ## 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: drac Summary: Dynamic Relay Authorization Control (DRAC) URL: http://mail.cc.umanitoba.ca/drac/ Vendor: University of Manitoba Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Mail License: BSD Version: 1.12 Release: 2.20061018 # package options %option with_fsl yes # list of sources Source0: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/drac/drac-%{version}.tar.Z Source1: rc.drac Source2: fsl.drac Source3: drac.h # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 2.20061018, gcc PreReq: OpenPKG, openpkg >= 2.20061018 %if "%{with_fsl}" == "yes" BuildPreReq: fsl >= 1.2.0 PreReq: fsl >= 1.2.0 %endif BuildPreReq: db >= 4.2 PreReq: db >= 4.2 AutoReq: no AutoReqProv: no %description DRAC is a daemon that dynamically updates a relay authorization map for Sendmail, Postfix and other MTA's that supports it. It provides a way to allow legitimate users to relay mail through an SMTP server, while still preventing others from using it as a spam relay. User's IP addresses are added to the map immediately after they have authenticated to the POP or IMAP server. By default, map entries expire after 30 minutes, but can be renewed by additional authentication. Periodically checking mail on a POP server is sufficient to do this. The POP and SMTP servers can be on different hosts. %track prog drac = { version = %{version} url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/drac/ regex = drac-(__VER__)\.tar\.Z } %prep %setup -q -c %build # determine platform dependent flags cppflags="%{l_cppflags}" ldflags="%{l_ldflags} -ldb" ldflags_tst="-L. -ldrac" case "%{l_platform -t}" in *-sunos5.[6-9]* ) cppflags="$cppflags -DTI_RPC -DFCNTL_LOCK -DSYSINFO" ldflags="$ldflags -lnsl" ldflags_tst="$ldflags_tst -lnsl" ;; *-freebsd[45]* | *-linux2* | *-netbsd1* ) cppflags="$cppflags -DSOCK_RPC -DFLOCK_LOCK -DGETHOST -DDASH_C" ;; *-irix6* ) cppflags="$cppflags -DTI_RPC -DFCNTL_LOCK -DSYSINFO -D_SVR4_TIRPC" ldflags="$ldflags -lnsl" ldflags_tst="$ldflags_tst -lnsl" ;; esac # configure build environment %{l_shtool} subst \ -e "s;^\(DEFS =\).*\$;\1 $cppflags;" \ -e "s;^\(LDLIBS =\).*\$;\1 %{l_fsl_libs} $ldflags;" \ -e "s;^\(TSTLIBS =\).*\$;\1 $ldflags_tst;" \ -e 's;^\(CC =\).*$;\1 %{l_cc};' \ -e 's;^\(RANLIB =\).*$;\1 ranlib;' \ -e 's;^\(CFLAGS =\).*$;\1 \$(DEFS);' \ -e 's;^\(RPCGENFLAGS =\).*$;\1 -Y %{l_prefix}/bin;' \ Makefile # configure paths in source %{l_shtool} subst \ -e "s;/etc/mail;%{l_prefix}/etc/drac;g" \ rpc.dracd.c # build program and library %{l_make} %{l_mflags} %install # create installation area rm -rf $RPM_BUILD_ROOT %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/drac \ $RPM_BUILD_ROOT%{l_prefix}/var/drac \ $RPM_BUILD_ROOT%{l_prefix}/sbin \ $RPM_BUILD_ROOT%{l_prefix}/lib \ $RPM_BUILD_ROOT%{l_prefix}/include \ $RPM_BUILD_ROOT%{l_prefix}/man/man8 \ $RPM_BUILD_ROOT%{l_prefix}/man/man3 # install program %{l_shtool} install -c -s -m 755 \ rpc.dracd $RPM_BUILD_ROOT%{l_prefix}/sbin/dracd %{l_shtool} install -c -m 644 \ rpc.dracd.1m $RPM_BUILD_ROOT%{l_prefix}/man/man8/dracd.8 # install library %{l_shtool} install -c -m 644 \ %{SOURCE drac.h} $RPM_BUILD_ROOT%{l_prefix}/include/ %{l_shtool} install -c -m 644 \ libdrac.a $RPM_BUILD_ROOT%{l_prefix}/lib/ %{l_shtool} install -c -m 644 \ dracauth.3 $RPM_BUILD_ROOT%{l_prefix}/man/man3/ # install empty database %{l_shtool} install -c -m 644 \ /dev/null $RPM_BUILD_ROOT%{l_prefix}/etc/drac/dracd.db # 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.drac} $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.drac} \ $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/ # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ '%not %dir %{l_prefix}/etc/fsl' \ '%config %{l_prefix}/etc/fsl/fsl.drac' \ '%config %{l_prefix}/etc/drac/dracd.db' %files -f files %clean rm -rf $RPM_BUILD_ROOT @ 1.11 log @do not override parameters and this way fix building @ text @d30 2 a31 2 Packager: OpenPKG Distribution: OpenPKG d36 1 a36 1 Release: 20061012 @ 1.10 log @replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality @ text @d36 1 a36 1 Release: 20060825 d121 1 a121 4 %{l_make} %{l_mflags} \ CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ LDFLAGS="%{l_ldflags}" @ 1.9 log @adjust copyrights for new year 2006 @ text @d36 1 a36 1 Release: 20040829 d50 2 a51 2 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc PreReq: OpenPKG, openpkg >= 20040130 @ 1.8 log @Adjust the copyright declaration in this (RSE's) copy of the OpenPKG source code now that the fork point for C&W was established (CVS tag OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is no longer active (as C&W no longer officially sponsors OpenPKG) and the new shared copyright from RSE can be taken over by the newly established juristic entity OpenPKG Foundation e.V. (instead of the non-juristic entity OpenPKG Project). @ text @d3 2 a4 2 ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. ## Copyright (c) 2000-2005 Ralf S. Engelschall @ 1.7 log @Happy New Year 2005 @ text @d2 3 a4 4 ## drac.spec -- OpenPKG RPM Specification ## Copyright (c) 2000-2005 The OpenPKG Project ## Copyright (c) 2000-2005 Ralf S. Engelschall ## Copyright (c) 2000-2005 Cable & Wireless d30 1 a30 1 Packager: The OpenPKG Project @ 1.6 log @switch to locally versioned distribution file @ text @d3 3 a5 3 ## Copyright (c) 2000-2004 The OpenPKG Project ## Copyright (c) 2000-2004 Ralf S. Engelschall ## Copyright (c) 2000-2004 Cable & Wireless @ 1.5 log @in rc.*:%daily, restart daemons per default in shtool epilog should a logfile rotation be performed @ text @d37 1 a37 1 Release: 20040706 d43 1 a43 1 Source0: ftp://ftp.cc.umanitoba.ca/src/drac.tar.Z a75 2 disabled comment = "unversioned distribution tarball only" d77 2 a78 2 url = ftp://ftp.cc.umanitoba.ca/src/ regex = drac\.tar\.Z @ 1.4 log @this variable cannot be expanded within quotes in Bash @ text @d37 1 a37 1 Release: 20040427 @ 1.3 log @hell, what a buggy API. Add at least a header which defines the API functions from libdrac.a :-( @ text @d37 1 a37 1 Release: 20040414 @ 1.2 log @ops, do not strip the library @ text @d46 1 d137 1 d148 3 a150 1 %{l_shtool} install -c -m 755 \ @ 1.1 log @New package DRAC 1.12 Submitted partly by: @ text @d146 1 a146 1 %{l_shtool} install -c -s -m 755 \ @