Blame testing/mailman/mail/Makefile
|
Ryan Haggerty |
e50d1d |
# These could be used by sendmail, but are not part of the default install.
|
|
Ryan Haggerty |
e50d1d |
# To use them you will have to generate your own sendmail.cf with
|
|
Ryan Haggerty |
e50d1d |
# FEATURE('whatever')
|
|
Ryan Haggerty |
e50d1d |
#
|
|
Ryan Haggerty |
e50d1d |
POSSIBLE += $(shell test -f bitdomain && echo bitdomain.db)
|
|
Ryan Haggerty |
e50d1d |
POSSIBLE += $(shell test -f uudomain && echo uudomain.db)
|
|
Ryan Haggerty |
e50d1d |
POSSIBLE += $(shell test -f genericstable && echo genericstable.db)
|
|
Ryan Haggerty |
e50d1d |
POSSIBLE += $(shell test -f userdb && echo userdb.db)
|
|
Ryan Haggerty |
e50d1d |
POSSIBLE += $(shell test -f authinfo && echo authinfo.db)
|
|
Ryan Haggerty |
e50d1d |
CFFILES = sendmail.cf submit.cf
|
|
Ryan Haggerty |
e50d1d |
|
|
Ryan Haggerty |
e50d1d |
|
|
Ryan Haggerty |
e50d1d |
all: ${CFFILES} ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db
|
|
Ryan Haggerty |
e50d1d |
|
|
Ryan Haggerty |
e50d1d |
userdb.db: userdb
|
|
Ryan Haggerty |
e50d1d |
@makemap btree $@ < $<
|
|
Ryan Haggerty |
e50d1d |
|
|
Ryan Haggerty |
e50d1d |
%.db: %
|
|
Ryan Haggerty |
e50d1d |
@makemap hash $@ < $<
|
|
Ryan Haggerty |
e50d1d |
|
|
Ryan Haggerty |
e50d1d |
%.cf: %.mc
|
|
Ryan Haggerty |
e50d1d |
@if test -f /usr/share/sendmail-cf/m4/cf.m4; then \
|
|
Ryan Haggerty |
e50d1d |
umask 022; \
|
|
Ryan Haggerty |
e50d1d |
mv -f $@ $@.bak; \
|
|
Ryan Haggerty |
e50d1d |
m4 $< > $@; \
|
|
Ryan Haggerty |
e50d1d |
else \
|
|
Ryan Haggerty |
e50d1d |
echo -e "WARNING: '$<' is modified. Please install package sendmail-cf to update your configuration."; \
|
|
Ryan Haggerty |
e50d1d |
fi
|
|
Ryan Haggerty |
e50d1d |
|
|
Ryan Haggerty |
e50d1d |
clean:
|
|
Ryan Haggerty |
e50d1d |
rm -f *.db *~
|
|
Ryan Haggerty |
e50d1d |
|
|
Ryan Haggerty |
e50d1d |
start:
|
|
Ryan Haggerty |
e50d1d |
service sendmail start
|
|
Ryan Haggerty |
e50d1d |
|
|
Ryan Haggerty |
e50d1d |
stop:
|
|
Ryan Haggerty |
e50d1d |
service sendmail stop
|
|
Ryan Haggerty |
e50d1d |
|
|
Ryan Haggerty |
e50d1d |
restart:
|
|
Ryan Haggerty |
e50d1d |
service sendmail restart
|
|
Ryan Haggerty |
e50d1d |
|