comparison dnsbl.spec.in @ 88:7245c45cef7a

fix for missing default return value in CONTEXT::acceptable_content()
author carl
date Mon, 01 Aug 2005 19:32:03 -0700
parents 7a432c2b473f
children 946fc1bcfb2c
comparison
equal deleted inserted replaced
87:7a432c2b473f 88:7245c45cef7a
1 Summary: DNSBL Sendmail Milter 1 Summary: DNSBL Sendmail Milter
2 Name: dnsbl 2 Name: dnsbl
3 Version: 5.1 3 Version: 5.2
4 Release: 2 4 Release: 2
5 Copyright: GPL 5 Copyright: GPL
6 Group: System Environment/Daemons 6 Group: System Environment/Daemons
7 Source: http://www.five-ten-sg.com/util/dnsbl.tar.gz 7 Source: http://www.five-ten-sg.com/util/dnsbl.tar.gz
8 BuildRoot: %{_tmppath}/%{name}-%{version} 8 BuildRoot: %{_tmppath}/%{name}-%{version}
35 g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread 35 g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread
36 36
37 %install 37 %install
38 DST=%{buildroot} 38 DST=%{buildroot}
39 if [ "%{buildroot}" = "/" -o -z "%{buildroot}" ] ; then 39 if [ "%{buildroot}" = "/" -o -z "%{buildroot}" ] ; then
40 echo sorry, you probably do not want me to delete the old buildroot at %{buildroot} 40 echo sorry, you probably do not want me to delete the old buildroot at %{buildroot}
41 exit 1 41 exit 1
42 fi 42 fi
43 43
44 rm -rf %{buildroot} 44 rm -rf %{buildroot}
45 mkdir -p %{buildroot}/etc/dnsbl 45 mkdir -p %{buildroot}/etc/dnsbl
46 46
65 #[JOG] Attempt to migrate an existing, non-rpm install. 65 #[JOG] Attempt to migrate an existing, non-rpm install.
66 # WARNING! This may cause blindness, loss of appetite, and a general 66 # WARNING! This may cause blindness, loss of appetite, and a general
67 # feeling of ill will towards the author of this script. Please refer 67 # feeling of ill will towards the author of this script. Please refer
68 # to the Licence file for warranty information... 68 # to the Licence file for warranty information...
69 if [ -f "/var/dnsbl/dnsbl.conf" -a ! -f "/etc/dnsbl/dnsbl.conf" ] ; then 69 if [ -f "/var/dnsbl/dnsbl.conf" -a ! -f "/etc/dnsbl/dnsbl.conf" ] ; then
70 echo Existing installation found at /var/dnsbl/ Migrating configuation... 70 echo Existing installation found at /var/dnsbl/ Migrating configuation...
71 # create the conf directory so rpm can find it in a minute... 71 # create the conf directory so rpm can find it in a minute...
72 mkdir /etc/dnsbl/ 72 mkdir /etc/dnsbl/
73 # and try to copy all of the relavent config files that are below this directory 73 # and try to copy all of the relavent config files that are below this directory
74 cd /var/dnsbl/ 74 cd /var/dnsbl/
75 grep '^include ' /var/dnsbl/dnsbl.conf | cut -d ' ' -f 2 | grep -v '^/' | xargs cp --target-directory=/etc/dnsbl/ /var/dnsbl/dnsbl.conf 75 grep '^include ' /var/dnsbl/dnsbl.conf | cut -d ' ' -f 2 | grep -v '^/' | xargs cp --target-directory=/etc/dnsbl/ /var/dnsbl/dnsbl.conf
76 fi 76 fi
77 77
78 78
79 %post 79 %post
80 /sbin/chkconfig --add dnsbl 80 /sbin/chkconfig --add dnsbl