105
|
1 SUBDIRS = src man html info
|
112
|
2 hackdir = $(sysconfdir)/dnsbl
|
108
|
3 hack_SCRIPTS = dnsbl
|
117
|
4 hack_DATA = dnsbl.conf hosts-ignore.conf html-tags.conf tld.conf cctld.conf
|
108
|
5 CLEANFILES = dnsbl xml/dnsbl xml/Makefile
|
177
|
6 EXTRA_DIST = $(hack_DATA) dnsbl.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/d*)
|
105
|
7
|
163
|
8 dnsbl: dnsbl.rc
|
|
9 cat dnsbl.rc | \
|
105
|
10 sed -e "s,SBINDIR,$(sbindir),g" | \
|
163
|
11 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >dnsbl
|
105
|
12
|
108
|
13 chkconfig: dnsbl
|
174
|
14 /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
|
112
|
15 mv -f $(sysconfdir)/dnsbl/dnsbl /etc/rc.d/init.d
|
178
|
16 mkdir -p $(sysconfdir)/dnsbl/autowhite
|
153
|
17 chown dnsbl:root $(sysconfdir)/dnsbl/autowhite
|
178
|
18 mkdir -p $(sysconfdir)/dnsbl/.spamassassin
|
164
|
19 chown dnsbl:root $(sysconfdir)/dnsbl/.spamassassin
|
108
|
20 /sbin/chkconfig --del dnsbl
|
|
21 /sbin/chkconfig --add dnsbl
|
105
|
22
|