Mercurial > dnsbl
annotate install.bash @ 33:ce229348cdbe stable-2-6
failed to lowercase the first char of html tags
author | carl |
---|---|
date | Sat, 29 May 2004 15:36:14 -0700 |
parents | 33e1e3910506 |
children | ccf2c2651c1d |
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 | |
28 | 36 if [ ! -f $DST/tld.conf ]; then |
37 cp tld.conf $DST | |
38 fi | |
23
06de5ab6a232
add url decoding stage, allow http:/ single / in yahoo redirector, allow ip address hostnames
carl
parents:
14
diff
changeset
|
39 mv -f dnsbl $DST |
0 | 40 cp dnsbl.rc /etc/rc.d/init.d/dnsbl |
41 chmod 755 /etc/rc.d/init.d/dnsbl | |
42 /sbin/chkconfig --add dnsbl | |
43 /sbin/chkconfig --level 2345 dnsbl on | |
44 /etc/rc.d/init.d/dnsbl start |