annotate Makefile.am @ 1:45c8592d5d13

initial version
author carl
date Fri, 10 Mar 2006 10:35:25 -0800
parents
children 32b57406b656
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
45c8592d5d13 initial version
carl
parents:
diff changeset
1 SUBDIRS = src man html info
45c8592d5d13 initial version
carl
parents:
diff changeset
2 hackdir = $(sysconfdir)/dnsbl
45c8592d5d13 initial version
carl
parents:
diff changeset
3 hack_SCRIPTS = dnsbl
45c8592d5d13 initial version
carl
parents:
diff changeset
4 hack_DATA = dnsbl.conf hosts-ignore.conf html-tags.conf tld.conf
45c8592d5d13 initial version
carl
parents:
diff changeset
5 CLEANFILES = dnsbl xml/dnsbl xml/Makefile
45c8592d5d13 initial version
carl
parents:
diff changeset
6 EXTRA_DIST = dnsbl.rc $(hack_DATA) dnsbl.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/d*)
45c8592d5d13 initial version
carl
parents:
diff changeset
7
45c8592d5d13 initial version
carl
parents:
diff changeset
8 dnsbl: $(srcdir)/dnsbl.rc
45c8592d5d13 initial version
carl
parents:
diff changeset
9 rm -f dnsbl
45c8592d5d13 initial version
carl
parents:
diff changeset
10 echo "#!" $(BASH) >dnsbl
45c8592d5d13 initial version
carl
parents:
diff changeset
11 cat $(srcdir)/dnsbl.rc | \
45c8592d5d13 initial version
carl
parents:
diff changeset
12 sed -e "s,SBINDIR,$(sbindir),g" | \
45c8592d5d13 initial version
carl
parents:
diff changeset
13 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>dnsbl
45c8592d5d13 initial version
carl
parents:
diff changeset
14
45c8592d5d13 initial version
carl
parents:
diff changeset
15 chkconfig: dnsbl
45c8592d5d13 initial version
carl
parents:
diff changeset
16 /usr/bin/getent passwd dnsbl || /usr/sbin/useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl
45c8592d5d13 initial version
carl
parents:
diff changeset
17 mv -f $(sysconfdir)/dnsbl/dnsbl /etc/rc.d/init.d
45c8592d5d13 initial version
carl
parents:
diff changeset
18 /sbin/chkconfig --del dnsbl
45c8592d5d13 initial version
carl
parents:
diff changeset
19 /sbin/chkconfig --add dnsbl
45c8592d5d13 initial version
carl
parents:
diff changeset
20