diff Makefile.am @ 23:37793d4c90a0

changes for rhel7 systemd and /var/run on tmpfs
author Carl Byington <carl@five-ten-sg.com>
date Mon, 06 Feb 2017 10:45:07 -0800
parents 8ebecad6530f
children 9298f8b00db2
line wrap: on
line diff
--- a/Makefile.am	Fri Dec 24 15:15:41 2010 -0800
+++ b/Makefile.am	Mon Feb 06 10:45:07 2017 -0800
@@ -2,18 +2,23 @@
 
 SUBDIRS = src man html info
 hackdir = $(sysconfdir)/sm-archive
-hack_SCRIPTS = sm-archive
+hack_SCRIPTS = sm-archive sm-archive.service sm-archive-tmpfs.conf
 hack_DATA = sm-archive.conf
 htmldir = ${datadir}/doc/@PACKAGE@-@VERSION@
 html_DATA = AUTHORS COPYING ChangeLog NEWS README
-CLEANFILES = sm-archive xml/sm-archive xml/Makefile
-EXTRA_DIST = sm-archive.rc $(hack_DATA) sm-archive.spec $(wildcard m4/*) $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/sm*)
+CLEANFILES = sm-archive.service sm-archive xml/sm-archive xml/Makefile
+EXTRA_DIST = sm-archive-tmpfs.conf sm-archive.service.rc sm-archive.rc $(hack_DATA) sm-archive.spec $(wildcard m4/*) $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/sm*)
 
 sm-archive: sm-archive.rc
 	   cat $(srcdir)/sm-archive.rc     | \
 	       sed -e "s,SBINDIR,$(sbindir),g"  | \
 	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>sm-archive
 
+sm-archive.service: sm-archive.service.rc
+	   cat $(srcdir)/sm-archive.service.rc     | \
+	       sed -e "s,SBINDIR,$(sbindir),g"  | \
+	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>sm-archive.service
+
 chkconfig: sm-archive
 	   /usr/bin/getent passwd sm-archive || /usr/sbin/useradd -r -d /etc/sm-archive -M -c "sm-archive pseudo-user" -s /sbin/nologin sm-archive
 	   mv -f $(sysconfdir)/sm-archive /etc/rc.d/init.d