comparison install.bash @ 0:96a9758165cd original

Initial revision
author carl
date Tue, 20 Apr 2004 20:02:29 -0700
parents
children 793ac9cc114d
comparison
equal deleted inserted replaced
-1:000000000000 0:96a9758165cd
1 #!/bin/bash
2
3 #####################
4 # stop the milter if it is already installed
5 if [ -f /etc/rc.d/init.d/dnsbl ]; then
6 /etc/rc.d/init.d/dnsbl stop
7 rm -f /etc/rc.d/init.d/dnsbl
8 fi
9
10
11 #####################
12 # build the milter
13 g++ -c dnsbl.cpp
14 g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread
15 if [ "$1" == "comp" ]; then
16 exit
17 fi
18
19
20 #####################
21 # install the milter
22 DST=/var/dnsbl
23 mkdir -p $DST
24 cp *.conf $DST
25 mv -f dnsbl $DST
26 cp dnsbl.rc /etc/rc.d/init.d/dnsbl
27 chmod 755 /etc/rc.d/init.d/dnsbl
28 /sbin/chkconfig --add dnsbl
29 /sbin/chkconfig --level 2345 dnsbl on
30 /etc/rc.d/init.d/dnsbl start