annotate Makefile.am @ 12:bb3d2cd6007e stable-1-4

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