Mercurial > dnsbl
annotate install.bash @ 27:43a4f6b3e668 stable-2-3
add configurable host name limit and bad html tag limits.
author | carl |
---|---|
date | Sat, 22 May 2004 22:30:45 -0700 |
parents | 2e23b7184d2b |
children | 33e1e3910506 |
rev | line source |
---|---|
0 | 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 | |
14 | 13 # add compiler flags - suggested by Nigel Horne |
14 g++ -c $CXXFLAGS dnsbl.cpp | |
8 | 15 if [ $? -ne 0 ]; then |
16 echo "compiler errors" | |
17 exit | |
18 fi | |
0 | 19 g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread |
8 | 20 if [ $? -ne 0 ]; then |
21 echo "linker errors" | |
0 | 22 exit |
23 fi | |
24 | |
25 | |
26 ##################### | |
27 # install the milter | |
28 DST=/var/dnsbl | |
29 mkdir -p $DST | |
14 | 30 if [ ! -f $DST/dnsbl.conf ]; then |
31 cp dnsbl.conf $DST | |
32 fi | |
24 | 33 if [ ! -f $DST/html-tags.conf ]; then |
34 cp html-tags.conf $DST | |
35 fi | |
23
06de5ab6a232
add url decoding stage, allow http:/ single / in yahoo redirector, allow ip address hostnames
carl
parents:
14
diff
changeset
|
36 mv -f dnsbl $DST |
0 | 37 cp dnsbl.rc /etc/rc.d/init.d/dnsbl |
38 chmod 755 /etc/rc.d/init.d/dnsbl | |
39 /sbin/chkconfig --add dnsbl | |
40 /sbin/chkconfig --level 2345 dnsbl on | |
41 /etc/rc.d/init.d/dnsbl start |