annotate install.bash @ 1:bd0b1a153f67

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