Mercurial > dnsbl
comparison Makefile.am @ 108:1c7677042b78
move to autoconf/automake/docbook
author | carl |
---|---|
date | Sun, 18 Dec 2005 12:05:05 -0800 |
parents | c3e9fa6b37c6 |
children | d0dad5610980 |
comparison
equal
deleted
inserted
replaced
107:eeaaecda4acc | 108:1c7677042b78 |
---|---|
1 SUBDIRS = src man html info | 1 SUBDIRS = src man html info |
2 hackdir = $(sysconfdir) | 2 hackdir = $(sysconfdir) |
3 hack_SCRIPTS = syslog2iptables | 3 hack_SCRIPTS = dnsbl |
4 sysconf_DATA = syslog2iptables.conf | 4 dconfdir = $(sysconfdir)/dnsbl |
5 CLEANFILES = syslog2iptables xml/syslog2iptables xml/Makefile | 5 dconf_DATA = dnsbl.conf hosts-ignore.conf html-tags.conf tld.conf |
6 EXTRA_DIST = syslog2iptables.rc syslog2iptables.conf syslog2iptables.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/s*) | 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*) | |
7 | 8 |
8 syslog2iptables: $(srcdir)/syslog2iptables.rc | 9 dnsbl: $(srcdir)/dnsbl.rc |
9 rm -f syslog2iptables | 10 rm -f dnsbl |
10 echo "#!" $(BASH) >syslog2iptables | 11 echo "#!" $(BASH) >dnsbl |
11 cat $(srcdir)/syslog2iptables.rc | \ | 12 cat $(srcdir)/dnsbl.rc | \ |
12 sed -e "s,SBINDIR,$(sbindir),g" | \ | 13 sed -e "s,SBINDIR,$(sbindir),g" | \ |
13 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>syslog2iptables | 14 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>dnsbl |
14 | 15 |
15 chkconfig: syslog2iptables | 16 chkconfig: dnsbl |
16 mv -f $(sysconfdir)/syslog2iptables /etc/rc.d/init.d | 17 mv -f $(sysconfdir)/dnsbl /etc/rc.d/init.d |
17 /sbin/chkconfig --del syslog2iptables | 18 /sbin/chkconfig --del dnsbl |
18 /sbin/chkconfig --add syslog2iptables | 19 /sbin/chkconfig --add dnsbl |
19 /sbin/chkconfig --level 2345 syslog2iptables on | |
20 /etc/rc.d/init.d/syslog2iptables start | |
21 | 20 |