view Makefile.am @ 72:ea7b7a0d0039

RHEL7 systemd and /var/run on tmpfs
author Carl Byington <carl@five-ten-sg.com>
date Thu, 09 Feb 2017 12:58:21 -0800
parents 79f310d1bc46
children 4685767c0c85
line wrap: on
line source

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = src man html info
hackdir = $(sysconfdir)
hack_SCRIPTS = syslog2iptables syslog2iptables.service
hack_DATA = syslog2iptables.conf.make syslog2iptables.conf.top syslog2iptables.conf.bottom syslog2iptables.conf.httpd
htmldir = ${datadir}/doc/@PACKAGE@-@VERSION@
html_DATA = AUTHORS COPYING ChangeLog NEWS README
CLEANFILES = syslog2iptables syslog2iptables.service xml/syslog2iptables xml/Makefile
EXTRA_DIST = syslog2iptables.rc syslog2iptables.service.rc $(hack_DATA) syslog2iptables.spec xml/header.sgml xml/header.xml xml/Makefile.am xml/Makefile.in xml/syslog2iptables.in

syslog2iptables: syslog2iptables.rc
	   cat syslog2iptables.rc	  | \
		   sed -e "s,SBINDIR,$(sbindir),g"	| \
		   sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>syslog2iptables

syslog2iptables.service: syslog2iptables.service.rc
	   cat syslog2iptables.rc	  | \
		   sed -e "s,SBINDIR,$(sbindir),g"	| \
		   sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>syslog2iptables.service

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