10
|
1 ACLOCAL_AMFLAGS = -I m4
|
|
2
|
1
|
3 SUBDIRS = src man html info
|
2
|
4 hackdir = $(sysconfdir)/sm-archive
|
|
5 hack_SCRIPTS = sm-archive
|
|
6 hack_DATA = sm-archive.conf
|
|
7 CLEANFILES = sm-archive xml/sm-archive xml/Makefile
|
10
|
8 EXTRA_DIST = sm-archive.rc $(hack_DATA) sm-archive.spec $(wildcard m4/*) $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/sm*)
|
1
|
9
|
2
|
10 sm-archive: $(srcdir)/sm-archive.rc
|
|
11 rm -f sm-archive
|
|
12 echo "#!" $(BASH) >sm-archive
|
|
13 cat $(srcdir)/sm-archive.rc | \
|
1
|
14 sed -e "s,SBINDIR,$(sbindir),g" | \
|
2
|
15 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>sm-archive
|
1
|
16
|
2
|
17 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
|
|
19 mv -f $(sysconfdir)/sm-archive /etc/rc.d/init.d
|
|
20 /sbin/chkconfig --del sm-archive
|
|
21 /sbin/chkconfig --add sm-archive
|
1
|
22
|