comparison Makefile.am @ 32:3eb867c9beb2

gpl3
author carl
date Sun, 09 Sep 2007 11:09:05 -0700
parents fd00aa28682c
children d9ae11033b4b
comparison
equal deleted inserted replaced
31:601bc0e075e1 32:3eb867c9beb2
1 SUBDIRS = src man html info 1 SUBDIRS = src man html info
2 hackdir = $(sysconfdir) 2 hackdir = $(sysconfdir)
3 hack_SCRIPTS = syslog2iptables 3 hack_SCRIPTS = syslog2iptables
4 sysconf_DATA = syslog2iptables.conf 4 sysconf_DATA = syslog2iptables.conf
5 CLEANFILES = syslog2iptables xml/syslog2iptables xml/Makefile 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*) 6 EXTRA_DIST = syslog2iptables.conf syslog2iptables.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/s*)
7 7
8 syslog2iptables: $(srcdir)/syslog2iptables.rc 8 syslog2iptables: syslog2iptables.rc
9 rm -f syslog2iptables 9 cat syslog2iptables.rc | \
10 echo "#!" $(BASH) >syslog2iptables
11 cat $(srcdir)/syslog2iptables.rc | \
12 sed -e "s,SBINDIR,$(sbindir),g" | \ 10 sed -e "s,SBINDIR,$(sbindir),g" | \
13 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>syslog2iptables 11 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>syslog2iptables
14 12
15 chkconfig: syslog2iptables 13 chkconfig: syslog2iptables
16 mv -f $(sysconfdir)/syslog2iptables /etc/rc.d/init.d 14 mv -f $(sysconfdir)/syslog2iptables /etc/rc.d/init.d