sendmail.etc-mail-Makefile 857 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # These could be used by sendmail, but are not part of the default install.
  2. # To use them you will have to generate your own sendmail.cf with
  3. # FEATURE('whatever')
  4. #
  5. POSSIBLE += $(shell test -f bitdomain && echo bitdomain.db)
  6. POSSIBLE += $(shell test -f uudomain && echo uudomain.db)
  7. POSSIBLE += $(shell test -f genericstable && echo genericstable.db)
  8. POSSIBLE += $(shell test -f userdb && echo userdb.db)
  9. CFFILES = sendmail.cf submit.cf
  10. all: ${CFFILES} ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db
  11. userdb.db: userdb
  12. @makemap btree $@ < $<
  13. %.db: %
  14. @makemap hash $@ < $<
  15. %.cf: %.mc
  16. @if test -f /usr/share/sendmail-cf/m4/cf.m4; then \
  17. umask 022; \
  18. mv -f $@ $@.bak; \
  19. m4 $< > $@; \
  20. fi
  21. clean:
  22. rm -f *.db *~
  23. start:
  24. service sendmail start
  25. stop:
  26. service sendmail stop
  27. restart:
  28. service sendmail restart