view Makefile.am @ 145:9b9bab1d3c21 stable-5-25

dump effective dnsbl_list with -c switch
author carl
date Sun, 15 Oct 2006 12:41:46 -0700
parents aa07452e641b
children 8d7c439bb6fa
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
CLEANFILES = dnsbl xml/dnsbl xml/Makefile
EXTRA_DIST = dnsbl.rc $(hack_DATA) dnsbl.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/d*)

dnsbl: $(srcdir)/dnsbl.rc
	   rm -f dnsbl
	   echo "#!" $(BASH) >dnsbl
	   cat $(srcdir)/dnsbl.rc     | \
	       sed -e "s,SBINDIR,$(sbindir),g"  | \
	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>dnsbl

chkconfig: dnsbl
	   /usr/bin/getent passwd dnsbl || /usr/sbin/useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl
	   mv -f $(sysconfdir)/dnsbl/dnsbl /etc/rc.d/init.d
	   /sbin/chkconfig --del dnsbl
	   /sbin/chkconfig --add dnsbl