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