view Makefile.am @ 9:d76f9ff42487

initial coding
author carl
date Sat, 03 Dec 2005 13:54:47 -0800
parents 276c4edc8521
children 5dfe0138b4f9
line wrap: on
line source

SUBDIRS = src
etcdir = /etc
rcdir = /etc/rc.d/init.d
etc_DATA = syslog2iptables.conf
rc_SCRIPTS = syslog2iptables
CLEANFILES = $(rc_SCRIPTS)
EXTRA_DIST = syslog2iptables.rc syslog2iptables.conf

syslog2iptables: $(srcdir)/syslog2iptables.rc
	   rm -f syslog2iptables
	   echo "#! " $(BASH) >syslog2iptables
	   cat $(srcdir)/syslog2iptables.rc >>syslog2iptables
	   chmod 755 syslog2iptables

chkconfig:
	   /sbin/chkconfig --del syslog2iptables
	   /sbin/chkconfig --add syslog2iptables
	   /sbin/chkconfig --level 2345 syslog2iptables on
	   /etc/rc.d/init.d/syslog2iptables start