annotate Makefile.am @ 155:a76a6af7ed8b

add auto whitelisting
author carl
date Sat, 07 Jul 2007 21:39:45 -0700
parents 8d7c439bb6fa
children 97d7da45fe2a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
105
c3e9fa6b37c6 move to autoconf/automake/docbook
carl
parents:
diff changeset
1 SUBDIRS = src man html info
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
2 hackdir = $(sysconfdir)/dnsbl
108
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 105
diff changeset
3 hack_SCRIPTS = dnsbl
117
aa07452e641b uribl patch from Jeff Evans <jeffe@tricab.com>
carl
parents: 116
diff changeset
4 hack_DATA = dnsbl.conf hosts-ignore.conf html-tags.conf tld.conf cctld.conf
108
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 105
diff changeset
5 CLEANFILES = dnsbl xml/dnsbl xml/Makefile
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
6 EXTRA_DIST = dnsbl.rc $(hack_DATA) dnsbl.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/d*)
105
c3e9fa6b37c6 move to autoconf/automake/docbook
carl
parents:
diff changeset
7
108
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 105
diff changeset
8 dnsbl: $(srcdir)/dnsbl.rc
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 105
diff changeset
9 rm -f dnsbl
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 105
diff changeset
10 echo "#!" $(BASH) >dnsbl
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 105
diff changeset
11 cat $(srcdir)/dnsbl.rc | \
105
c3e9fa6b37c6 move to autoconf/automake/docbook
carl
parents:
diff changeset
12 sed -e "s,SBINDIR,$(sbindir),g" | \
108
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 105
diff changeset
13 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>dnsbl
105
c3e9fa6b37c6 move to autoconf/automake/docbook
carl
parents:
diff changeset
14
108
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 105
diff changeset
15 chkconfig: dnsbl
155
a76a6af7ed8b add auto whitelisting
carl
parents: 153
diff changeset
16 /usr/bin/getent passwd dnsbl >/dev/null || /usr/sbin/useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl
112
96b2eb7f25f5 move to autoconf/automake/docbook
carl
parents: 111
diff changeset
17 mv -f $(sysconfdir)/dnsbl/dnsbl /etc/rc.d/init.d
153
8d7c439bb6fa add auto whitelisting
carl
parents: 117
diff changeset
18 mkdir $(sysconfdir)/dnsbl/autowhite
8d7c439bb6fa add auto whitelisting
carl
parents: 117
diff changeset
19 chown dnsbl:root $(sysconfdir)/dnsbl/autowhite
108
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 105
diff changeset
20 /sbin/chkconfig --del dnsbl
1c7677042b78 move to autoconf/automake/docbook
carl
parents: 105
diff changeset
21 /sbin/chkconfig --add dnsbl
105
c3e9fa6b37c6 move to autoconf/automake/docbook
carl
parents:
diff changeset
22