diff options
author | peter <peter@FreeBSD.org> | 1996-12-28 18:11:08 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-12-28 18:11:08 +0000 |
commit | 57ece16807ba07ddc8c07024714f16f4adbb1148 (patch) | |
tree | 2fc2eb9ed3174d2a52e56ce1470b9fbdef0e511a /usr.sbin/sendmail | |
parent | a849c16e42f01a1715b629243edf6bf9c3c2a656 (diff) | |
download | FreeBSD-src-57ece16807ba07ddc8c07024714f16f4adbb1148.zip FreeBSD-src-57ece16807ba07ddc8c07024714f16f4adbb1148.tar.gz |
Allow an optional setting to specify a .cf file to be built and installed
into /etc during the sendmail build. Not for the feint hearted.
(I have been using something like this for some time since I only ever
edit my system's .mc file)
Diffstat (limited to 'usr.sbin/sendmail')
-rw-r--r-- | usr.sbin/sendmail/cf/cf/Makefile | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/usr.sbin/sendmail/cf/cf/Makefile b/usr.sbin/sendmail/cf/cf/Makefile index d0093cd..d88673e 100644 --- a/usr.sbin/sendmail/cf/cf/Makefile +++ b/usr.sbin/sendmail/cf/cf/Makefile @@ -25,6 +25,14 @@ RM= rm -f $(CHMOD) $(ROMODE) $@ ALL= freebsd.cf freefall.cf + +# Local sendmail.cf, may be set in /etc/make.conf. Warning! If set, this +# causes 'make install' to always copy it over /etc/sendmail.cf!!! +# Caveat emptor! Be sure you want this before you enable it. +.if defined(SENDMAIL_CF) +ALL+= ${SENDMAIL_CF} +.endif + CLEANFILES+=$(ALL) #We dont build the generic stuff... @@ -40,7 +48,19 @@ CLEANFILES+=$(ALL) all: $(ALL) -depend install: +depend: + +install: +.if defined(SENDMAIL_CF) + ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${SENDMAIL_CF} \ + ${DESTDIR}/etc/sendmail.cf +.endif + + +# Helper for src/etc/Makefile +etc-sendmail.cf: + ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \ + ${DESTDIR}/etc/sendmail.cf # this is overkill, but.... M4FILES=\ @@ -111,8 +131,4 @@ M4FILES=\ $(ALL): $(M4FILES) -etc-sendmail.cf: - ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \ - ${DESTDIR}/etc/sendmail.cf - .include <bsd.prog.mk> |