annotate Makefile.am @ 2:32b57406b656

initial version
author carl
date Fri, 10 Mar 2006 10:47:12 -0800
parents 45c8592d5d13
children f9e8bbf33a2a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
45c8592d5d13 initial version
carl
parents:
diff changeset
1 SUBDIRS = src man html info
2
32b57406b656 initial version
carl
parents: 1
diff changeset
2 hackdir = $(sysconfdir)/sm-archive
32b57406b656 initial version
carl
parents: 1
diff changeset
3 hack_SCRIPTS = sm-archive
32b57406b656 initial version
carl
parents: 1
diff changeset
4 hack_DATA = sm-archive.conf
32b57406b656 initial version
carl
parents: 1
diff changeset
5 CLEANFILES = sm-archive xml/sm-archive xml/Makefile
32b57406b656 initial version
carl
parents: 1
diff changeset
6 EXTRA_DIST = sm-archive.rc $(hack_DATA) sm-archive.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/sm*)
1
45c8592d5d13 initial version
carl
parents:
diff changeset
7
2
32b57406b656 initial version
carl
parents: 1
diff changeset
8 sm-archive: $(srcdir)/sm-archive.rc
32b57406b656 initial version
carl
parents: 1
diff changeset
9 rm -f sm-archive
32b57406b656 initial version
carl
parents: 1
diff changeset
10 echo "#!" $(BASH) >sm-archive
32b57406b656 initial version
carl
parents: 1
diff changeset
11 cat $(srcdir)/sm-archive.rc | \
1
45c8592d5d13 initial version
carl
parents:
diff changeset
12 sed -e "s,SBINDIR,$(sbindir),g" | \
2
32b57406b656 initial version
carl
parents: 1
diff changeset
13 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>sm-archive
1
45c8592d5d13 initial version
carl
parents:
diff changeset
14
2
32b57406b656 initial version
carl
parents: 1
diff changeset
15 chkconfig: sm-archive
32b57406b656 initial version
carl
parents: 1
diff changeset
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
32b57406b656 initial version
carl
parents: 1
diff changeset
17 mv -f $(sysconfdir)/sm-archive /etc/rc.d/init.d
32b57406b656 initial version
carl
parents: 1
diff changeset
18 /sbin/chkconfig --del sm-archive
32b57406b656 initial version
carl
parents: 1
diff changeset
19 /sbin/chkconfig --add sm-archive
1
45c8592d5d13 initial version
carl
parents:
diff changeset
20