Mercurial > dnsbl
diff Makefile.test @ 0:96a9758165cd original
Initial revision
author | carl |
---|---|
date | Tue, 20 Apr 2004 20:02:29 -0700 |
parents | |
children | 1142e46be550 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile.test Tue Apr 20 20:02:29 2004 -0700 @@ -0,0 +1,37 @@ +# These could be used by sendmail, but are not part of the default install. +# To use them you will have to generate your own sendmail.cf with +# FEATURE('whatever') +# +POSSIBLE += $(shell test -f bitdomain && echo bitdomain.db) +POSSIBLE += $(shell test -f uudomain && echo uudomain.db) +POSSIBLE += $(shell test -f genericstable && echo genericstable.db) +POSSIBLE += $(shell test -f userdb && echo userdb.db) +CFFILES = sendmail.cf submit.cf + + +all: ${CFFILES} ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db + @chown root:smmsp *.db + +userdb.db : userdb + @makemap btree $@ < $< + +access : access.header access.common access.510sg access.davd + cat access.header access.510sg access.common >access + cat access.header access.davd access.common | ssh mail3.davdgrp.com 'cat >/etc/mail/access' + ssh mail3.davdgrp.com '(cd /usr/src; sh makesendmailtable.bat)' + rm -f /home/httpd/html/510sg/bogus.list + cp access /home/httpd/html/510sg/bogus.list + scp access ns1:/home/httpd/html/510sg/bogus.list + +%.db : % + @makemap hash $@ < $< + +%.cf : %.mc + @if test -f /usr/share/sendmail-cf/m4/cf.m4; then \ + mv -f $@ $@.bak; \ + m4 $< > $@; \ + fi; + +clean: + rm -f *.db *~ +