comparison Makefile.am @ 2:32b57406b656

initial version
author carl
date Fri, 10 Mar 2006 10:47:12 -0800
parents 45c8592d5d13
children f9e8bbf33a2a
comparison
equal deleted inserted replaced
1:45c8592d5d13 2:32b57406b656
1 SUBDIRS = src man html info 1 SUBDIRS = src man html info
2 hackdir = $(sysconfdir)/dnsbl 2 hackdir = $(sysconfdir)/sm-archive
3 hack_SCRIPTS = dnsbl 3 hack_SCRIPTS = sm-archive
4 hack_DATA = dnsbl.conf hosts-ignore.conf html-tags.conf tld.conf 4 hack_DATA = sm-archive.conf
5 CLEANFILES = dnsbl xml/dnsbl xml/Makefile 5 CLEANFILES = sm-archive xml/sm-archive xml/Makefile
6 EXTRA_DIST = dnsbl.rc $(hack_DATA) dnsbl.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/d*) 6 EXTRA_DIST = sm-archive.rc $(hack_DATA) sm-archive.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/sm*)
7 7
8 dnsbl: $(srcdir)/dnsbl.rc 8 sm-archive: $(srcdir)/sm-archive.rc
9 rm -f dnsbl 9 rm -f sm-archive
10 echo "#!" $(BASH) >dnsbl 10 echo "#!" $(BASH) >sm-archive
11 cat $(srcdir)/dnsbl.rc | \ 11 cat $(srcdir)/sm-archive.rc | \
12 sed -e "s,SBINDIR,$(sbindir),g" | \ 12 sed -e "s,SBINDIR,$(sbindir),g" | \
13 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>dnsbl 13 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>sm-archive
14 14
15 chkconfig: dnsbl 15 chkconfig: sm-archive
16 /usr/bin/getent passwd dnsbl || /usr/sbin/useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl 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)/dnsbl/dnsbl /etc/rc.d/init.d 17 mv -f $(sysconfdir)/sm-archive /etc/rc.d/init.d
18 /sbin/chkconfig --del dnsbl 18 /sbin/chkconfig --del sm-archive
19 /sbin/chkconfig --add dnsbl 19 /sbin/chkconfig --add sm-archive
20 20