comparison Makefile.am @ 105:c3e9fa6b37c6

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