annotate install.bash @ 7:93ff6d1ef647

stable standalone scanner module
author carl
date Thu, 22 Apr 2004 08:38:07 -0700
parents 793ac9cc114d
children dbe18921f741
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
5
793ac9cc114d updates to use dcc conf files
carl
parents: 0
diff changeset
24 cp dnsbl.conf $DST
793ac9cc114d updates to use dcc conf files
carl
parents: 0
diff changeset
25 mv -f dnsbl $DST
0
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