view Makefile.am @ 440:f9165d9aa689

more changes for long syslog messages
author Carl Byington <carl@five-ten-sg.com>
date Thu, 07 Dec 2017 07:38:03 -0800
parents 1b7a785610f5
children
line wrap: on
line source

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = src man html info
hackdir = $(sysconfdir)/dnsbl
hack_SCRIPTS = dnsbl dnsbl.service
hack_DATA = dnsbl.conf dnsbl.dkim.conf hosts-ignore.conf html-tags.conf tld.conf dnsblnogrey  dnsbl-tmpfs.conf
htmldir = ${datadir}/doc/@PACKAGE@-@VERSION@
html_DATA = AUTHORS COPYING ChangeLog NEWS README
CLEANFILES = dnsbl    dnsbl.service    xml/dnsbl xml/Makefile
EXTRA_DIST = dnsbl.rc dnsbl.service.rc $(hack_DATA) dnsbl.spec make-tld-conf.py xml/header.sgml xml/header.xml xml/Makefile.am xml/Makefile.in xml/dnsbl.in

dnsbl: dnsbl.rc
	   cat dnsbl.rc                         | \
	       sed -e "s,SBINDIR,$(sbindir),g"  | \
	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >dnsbl

dnsbl.service: dnsbl.service.rc
	   cat dnsbl.service.rc                 | \
	       sed -e "s,SBINDIR,$(sbindir),g"  | \
	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >dnsbl.service

chkconfig: dnsbl
	   /usr/bin/getent passwd dnsbl >/dev/null || /usr/sbin/useradd -r -d $(sysconfdir)/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl >/dev/null
	   mv -f $(sysconfdir)/dnsbl/dnsbl /etc/rc.d/init.d
	   mkdir -p $(sysconfdir)/dnsbl/autowhite
	   chown dnsbl:root $(sysconfdir)/dnsbl/autowhite
	   mkdir -p $(sysconfdir)/dnsbl/.spamassassin
	   chown dnsbl:root $(sysconfdir)/dnsbl/.spamassassin
	   /sbin/chkconfig --del dnsbl
	   /sbin/chkconfig --add dnsbl
	   mkdir -p /var/dcc/userdirs/local/dnsblnogrey  && mv -f $(sysconfdir)/dnsbl/dnsblnogrey /var/dcc/userdirs/local/dnsblnogrey/whiteclnt