annotate install.bash @ 10:9ca440c8d187

integration work on url scanner
author carl
date Thu, 22 Apr 2004 18:46:53 -0700
parents dbe18921f741
children 443aa0e8c6fa
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
8
dbe18921f741 integration work on url scanner
carl
parents: 5
diff changeset
14 if [ $? -ne 0 ]; then
dbe18921f741 integration work on url scanner
carl
parents: 5
diff changeset
15 echo "compiler errors"
dbe18921f741 integration work on url scanner
carl
parents: 5
diff changeset
16 exit
dbe18921f741 integration work on url scanner
carl
parents: 5
diff changeset
17 fi
0
96a9758165cd Initial revision
carl
parents:
diff changeset
18 g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread
8
dbe18921f741 integration work on url scanner
carl
parents: 5
diff changeset
19 if [ $? -ne 0 ]; then
dbe18921f741 integration work on url scanner
carl
parents: 5
diff changeset
20 echo "linker errors"
0
96a9758165cd Initial revision
carl
parents:
diff changeset
21 exit
96a9758165cd Initial revision
carl
parents:
diff changeset
22 fi
96a9758165cd Initial revision
carl
parents:
diff changeset
23
96a9758165cd Initial revision
carl
parents:
diff changeset
24
96a9758165cd Initial revision
carl
parents:
diff changeset
25 #####################
96a9758165cd Initial revision
carl
parents:
diff changeset
26 # install the milter
96a9758165cd Initial revision
carl
parents:
diff changeset
27 DST=/var/dnsbl
96a9758165cd Initial revision
carl
parents:
diff changeset
28 mkdir -p $DST
5
793ac9cc114d updates to use dcc conf files
carl
parents: 0
diff changeset
29 cp dnsbl.conf $DST
793ac9cc114d updates to use dcc conf files
carl
parents: 0
diff changeset
30 mv -f dnsbl $DST
0
96a9758165cd Initial revision
carl
parents:
diff changeset
31 cp dnsbl.rc /etc/rc.d/init.d/dnsbl
96a9758165cd Initial revision
carl
parents:
diff changeset
32 chmod 755 /etc/rc.d/init.d/dnsbl
96a9758165cd Initial revision
carl
parents:
diff changeset
33 /sbin/chkconfig --add dnsbl
96a9758165cd Initial revision
carl
parents:
diff changeset
34 /sbin/chkconfig --level 2345 dnsbl on
96a9758165cd Initial revision
carl
parents:
diff changeset
35 /etc/rc.d/init.d/dnsbl start