view install.bash @ 5:793ac9cc114d stable-1-0

updates to use dcc conf files
author carl
date Wed, 21 Apr 2004 16:09:07 -0700
parents 96a9758165cd
children dbe18921f741
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
g++ -c dnsbl.cpp
g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread
if [ "$1" == "comp" ]; then
    exit
fi


#####################
# install the milter
DST=/var/dnsbl
mkdir -p $DST
cp    dnsbl.conf $DST
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