view Makefile.am @ 21:09564d4acd9e stable-1-0-8

patches from Marco d'Itri for postfix
author Carl Byington <carl@five-ten-sg.com>
date Fri, 24 Dec 2010 15:13:18 -0800
parents 8ebecad6530f
children 37793d4c90a0
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
htmldir = ${datadir}/doc/@PACKAGE@-@VERSION@
html_DATA = AUTHORS COPYING ChangeLog NEWS README
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: sm-archive.rc
	   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