9
|
1 SUBDIRS = src
|
|
2 etcdir = /etc
|
|
3 rcdir = /etc/rc.d/init.d
|
|
4 etc_DATA = syslog2iptables.conf
|
|
5 rc_SCRIPTS = syslog2iptables
|
|
6 CLEANFILES = $(rc_SCRIPTS)
|
|
7 EXTRA_DIST = syslog2iptables.rc syslog2iptables.conf
|
1
|
8
|
9
|
9 syslog2iptables: $(srcdir)/syslog2iptables.rc
|
|
10 rm -f syslog2iptables
|
|
11 echo "#! " $(BASH) >syslog2iptables
|
|
12 cat $(srcdir)/syslog2iptables.rc >>syslog2iptables
|
|
13 chmod 755 syslog2iptables
|
5
|
14
|
9
|
15 chkconfig:
|
|
16 /sbin/chkconfig --del syslog2iptables
|
|
17 /sbin/chkconfig --add syslog2iptables
|
|
18 /sbin/chkconfig --level 2345 syslog2iptables on
|
|
19 /etc/rc.d/init.d/syslog2iptables start
|
|
20
|