comparison dnsbl.spec.in @ 51:9f2971c692d0

fix version number
author carl
date Tue, 13 Jul 2004 08:54:03 -0700
parents acbe44bbba22
children a84752107aca
comparison
equal deleted inserted replaced
50:05957b18b2e6 51:9f2971c692d0
1 Summary: DNSBL Sendmail Milter 1 Summary: DNSBL Sendmail Milter
2 Name: dnsbl 2 Name: dnsbl
3 Version: 3.1 3 Version: 3.3
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 Patch0: dnsbl.rc.patch 8 Patch0: dnsbl.rc.patch
37 g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread 37 g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread
38 38
39 %install 39 %install
40 DST=%{buildroot} 40 DST=%{buildroot}
41 if [ "%{buildroot}" = "/" -o -z "%{buildroot}" ] ; then 41 if [ "%{buildroot}" = "/" -o -z "%{buildroot}" ] ; then
42 echo sorry, you probably do not want me to delete the old buildroot at %{buildroot} 42 echo sorry, you probably do not want me to delete the old buildroot at %{buildroot}
43 exit 1 43 exit 1
44 fi 44 fi
45 45
46 rm -rf %{buildroot} 46 rm -rf %{buildroot}
47 mkdir -p %{buildroot}/etc/dnsbl 47 mkdir -p %{buildroot}/etc/dnsbl
48 48
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