view Makefile.am @ 8:69a5dcf953df default tip

routeflapper runs as root to read the log files
author Carl Byington <carl@five-ten-sg.com>
date Thu, 04 Sep 2014 08:57:50 -0700
parents 3c0db610c641
children
line wrap: on
line source

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = src man html info
hackdir = $(sysconfdir)
hack_SCRIPTS = routeflapper
sysconf_DATA = routeflapper.conf routeflapper.logrotate bgpd.conf
htmldir = ${datadir}/doc/@PACKAGE@-@VERSION@
html_DATA = AUTHORS COPYING ChangeLog NEWS README
CLEANFILES = routeflapper xml/routeflapper xml/Makefile
EXTRA_DIST = routeflapper.logrotate bgpd.conf routeflapper.conf routeflapper.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/r*)

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

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