view Makefile.am @ 12:c2a2e35a85ac

final documentation, rpm builds properly
author carl
date Sat, 17 Dec 2005 16:17:09 -0800
parents a9b52f657f08
children fd00aa28682c
line wrap: on
line source

SUBDIRS = src man html info
hackdir = $(sysconfdir)
hack_SCRIPTS = syslog2iptables
sysconf_DATA = syslog2iptables.conf
CLEANFILES = syslog2iptables xml/syslog2iptables xml/Makefile
EXTRA_DIST = syslog2iptables.rc syslog2iptables.conf syslog2iptables.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/s*)

syslog2iptables: $(srcdir)/syslog2iptables.rc
	   rm -f syslog2iptables
	   echo "#!" $(BASH) >syslog2iptables
	   cat $(srcdir)/syslog2iptables.rc     | \
	       sed -e "s,SBINDIR,$(sbindir),g"  | \
	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>syslog2iptables

chkconfig: syslog2iptables
	   mv -f $(sysconfdir)/syslog2iptables /etc/rc.d/init.d
	   /sbin/chkconfig --del syslog2iptables
	   /sbin/chkconfig --add syslog2iptables
	   /sbin/chkconfig --level 2345 syslog2iptables on
	   /etc/rc.d/init.d/syslog2iptables start