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