
SPAMASS_USER=nobody
DIR=/var/spamassassin

install:
	cp lmtp-spamass-relay.pl /usr/local/sbin/
	cp lmtp-spamass-relay /etc/init.d
	chkconfig lmtp-spamass-relay on
	if [ ! -d ${DIR} ]; then mkdir ${DIR}; fi
	chown ${SPAMASS_USER} ${DIR}
	@echo Plus sendmail.cf modifications

uninstall:
	rm -f /usr/local/sbin/lmtp-spamass-relay.pl
	-chkconfig lmtp-spamass-relay off
	rm -f /etc/init.d/lmtp-spamass-relay
	rm -rf ${DIR}
	@echo Plus sendmail.cf modifications
