Mercurial > sm-archive
comparison 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 |
comparison
equal
deleted
inserted
replaced
22:67481a1a502f | 23:37793d4c90a0 |
---|---|
1 ACLOCAL_AMFLAGS = -I m4 | 1 ACLOCAL_AMFLAGS = -I m4 |
2 | 2 |
3 SUBDIRS = src man html info | 3 SUBDIRS = src man html info |
4 hackdir = $(sysconfdir)/sm-archive | 4 hackdir = $(sysconfdir)/sm-archive |
5 hack_SCRIPTS = sm-archive | 5 hack_SCRIPTS = sm-archive sm-archive.service sm-archive-tmpfs.conf |
6 hack_DATA = sm-archive.conf | 6 hack_DATA = sm-archive.conf |
7 htmldir = ${datadir}/doc/@PACKAGE@-@VERSION@ | 7 htmldir = ${datadir}/doc/@PACKAGE@-@VERSION@ |
8 html_DATA = AUTHORS COPYING ChangeLog NEWS README | 8 html_DATA = AUTHORS COPYING ChangeLog NEWS README |
9 CLEANFILES = sm-archive xml/sm-archive xml/Makefile | 9 CLEANFILES = sm-archive.service sm-archive xml/sm-archive xml/Makefile |
10 EXTRA_DIST = sm-archive.rc $(hack_DATA) sm-archive.spec $(wildcard m4/*) $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/sm*) | 10 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*) |
11 | 11 |
12 sm-archive: sm-archive.rc | 12 sm-archive: sm-archive.rc |
13 cat $(srcdir)/sm-archive.rc | \ | 13 cat $(srcdir)/sm-archive.rc | \ |
14 sed -e "s,SBINDIR,$(sbindir),g" | \ | 14 sed -e "s,SBINDIR,$(sbindir),g" | \ |
15 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>sm-archive | 15 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>sm-archive |
16 | |
17 sm-archive.service: sm-archive.service.rc | |
18 cat $(srcdir)/sm-archive.service.rc | \ | |
19 sed -e "s,SBINDIR,$(sbindir),g" | \ | |
20 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>sm-archive.service | |
16 | 21 |
17 chkconfig: sm-archive | 22 chkconfig: sm-archive |
18 /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 | 23 /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 |
19 mv -f $(sysconfdir)/sm-archive /etc/rc.d/init.d | 24 mv -f $(sysconfdir)/sm-archive /etc/rc.d/init.d |
20 /sbin/chkconfig --del sm-archive | 25 /sbin/chkconfig --del sm-archive |