view 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
line wrap: on
line source

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = src man html info
hackdir = $(sysconfdir)/sm-archive
hack_SCRIPTS = sm-archive
hack_DATA = sm-archive.conf
CLEANFILES = sm-archive xml/sm-archive xml/Makefile
EXTRA_DIST = sm-archive.rc $(hack_DATA) sm-archive.spec $(wildcard m4/*) $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/sm*)

sm-archive: $(srcdir)/sm-archive.rc
	   rm -f sm-archive
	   echo "#!" $(BASH) >sm-archive
	   cat $(srcdir)/sm-archive.rc     | \
	       sed -e "s,SBINDIR,$(sbindir),g"  | \
	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>sm-archive

chkconfig: sm-archive
	   /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
	   mv -f $(sysconfdir)/sm-archive /etc/rc.d/init.d
	   /sbin/chkconfig --del sm-archive
	   /sbin/chkconfig --add sm-archive