105
|
1 SUBDIRS = src man html info
|
|
2 hackdir = $(sysconfdir)
|
108
|
3 hack_SCRIPTS = dnsbl
|
|
4 dconfdir = $(sysconfdir)/dnsbl
|
|
5 dconf_DATA = dnsbl.conf hosts-ignore.conf html-tags.conf tld.conf
|
|
6 CLEANFILES = dnsbl xml/dnsbl xml/Makefile
|
|
7 EXTRA_DIST = dnsbl.rc $(dconf_DATA) dnsbl.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/s*)
|
105
|
8
|
108
|
9 dnsbl: $(srcdir)/dnsbl.rc
|
|
10 rm -f dnsbl
|
|
11 echo "#!" $(BASH) >dnsbl
|
|
12 cat $(srcdir)/dnsbl.rc | \
|
105
|
13 sed -e "s,SBINDIR,$(sbindir),g" | \
|
108
|
14 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>dnsbl
|
105
|
15
|
108
|
16 chkconfig: dnsbl
|
|
17 mv -f $(sysconfdir)/dnsbl /etc/rc.d/init.d
|
|
18 /sbin/chkconfig --del dnsbl
|
|
19 /sbin/chkconfig --add dnsbl
|
105
|
20
|