view Makefile.am @ 184:0e15a805d295 stable-6-0-11

embedded dcc filtering
author carl
date Sun, 07 Oct 2007 09:21:50 -0700
parents 7a722f482bfb
children 0fc1899391b6
line wrap: on
line source

SUBDIRS = src man html info
hackdir = $(sysconfdir)/dnsbl
hack_SCRIPTS = dnsbl
hack_DATA = dnsbl.conf hosts-ignore.conf html-tags.conf tld.conf cctld.conf dnsblnogrey
CLEANFILES = dnsbl xml/dnsbl xml/Makefile
EXTRA_DIST = $(hack_DATA) dnsbl.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/d*)

dnsbl: dnsbl.rc
	   cat dnsbl.rc                         | \
	       sed -e "s,SBINDIR,$(sbindir),g"  | \
	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >dnsbl

chkconfig: dnsbl
	   /usr/bin/getent passwd dnsbl >/dev/null || /usr/sbin/useradd -r -d $(sysconfdir)/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl >/dev/null
	   mv -f $(sysconfdir)/dnsbl/dnsbl /etc/rc.d/init.d
	   mkdir -p $(sysconfdir)/dnsbl/autowhite
	   chown dnsbl:root $(sysconfdir)/dnsbl/autowhite
	   mkdir -p $(sysconfdir)/dnsbl/.spamassassin
	   chown dnsbl:root $(sysconfdir)/dnsbl/.spamassassin
	   /sbin/chkconfig --del dnsbl
	   /sbin/chkconfig --add dnsbl
	   mkdir -p /var/dcc/userdirs/local/dnsblnogrey  && mv -f $(sysconfdir)/dnsbl/dnsblnogrey /var/dcc/userdirs/local/dnsblnogrey/whiteclnt