view 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
line wrap: on
line source

#!/bin/bash

#####################
# stop the milter if it is already installed
if [ -f /etc/rc.d/init.d/dnsbl ]; then
    /etc/rc.d/init.d/dnsbl stop
    rm -f /etc/rc.d/init.d/dnsbl
fi


#####################
# build the milter
# add compiler flags - suggested by Nigel Horne
g++ -c $CXXFLAGS dnsbl.cpp
if [ $? -ne 0 ]; then
    echo "compiler errors"
    exit
fi
g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread
if [ $? -ne 0 ]; then
    echo "linker errors"
    exit
fi


#####################
# install the milter
DST=/var/dnsbl
mkdir -p $DST
if [ ! -f $DST/dnsbl.conf ]; then
    cp dnsbl.conf $DST
fi
if [ ! -f $DST/html-tags.conf ]; then
    cp html-tags.conf $DST
fi
if [ ! -f $DST/tld.conf ]; then
    cp tld.conf $DST
fi
mv -f dnsbl $DST
cp dnsbl.rc /etc/rc.d/init.d/dnsbl
chmod 755 /etc/rc.d/init.d/dnsbl
/sbin/chkconfig --add dnsbl
/sbin/chkconfig --level 2345 dnsbl on
/etc/rc.d/init.d/dnsbl start