aboutsummaryrefslogtreecommitdiff
path: root/etc/sendmail
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2003-09-01 03:40:33 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2003-09-01 03:40:33 +0000
commitf92921ddff7666155b874e30006596c10b4cf21c (patch)
treef05e747114f3606dd5a28578268f0ea956be64eb /etc/sendmail
parentfefa0fd51d95780e9ec440de0f20e8266afe50cf (diff)
downloadsrc-f92921ddff7666155b874e30006596c10b4cf21c.tar.gz
src-f92921ddff7666155b874e30006596c10b4cf21c.zip
Build the submit.cf file instead of installing the version that ships
with the vendor sendmail distribution. By doing so, we avoid mergemaster warnings after every 'make' in /etc/mail/. Reported by: Jeremy Chadwick <koitsu@parodius.com> MFC after: 3 days X-MFC after: and re approval
Notes
Notes: svn path=/head/; revision=119631
Diffstat (limited to 'etc/sendmail')
-rw-r--r--etc/sendmail/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/etc/sendmail/Makefile b/etc/sendmail/Makefile
index a36a2954da60..3b9a1f18dcd9 100644
--- a/etc/sendmail/Makefile
+++ b/etc/sendmail/Makefile
@@ -24,8 +24,8 @@ M4FILES!= find ${CFDIR} -type f -name '*.m4' -print
DEST_CF= ${DESTDIR}/etc/mail/sendmail.cf
DEST_SUBMIT_CF= ${DESTDIR}/etc/mail/submit.cf
-ALL= freebsd.cf
-CLEANFILES= freebsd.cf
+ALL= freebsd.cf freebsd.submit.cf
+CLEANFILES= freebsd.cf freebsd.submit.cf
# Local SENDMAIL_MC or SENDMAIL_CF may be set in /etc/make.conf.
# Warning! If set, this causes 'make install' to always copy it
@@ -60,6 +60,13 @@ ${mc:T:R}.cf: ${mc}
all: ${ALL}
+# Build the installed submit.cf from the sendmail distributed submit.mc.
+freebsd.submit.cf: ${CFDIR}/cf/submit.mc
+ ${RM} ${.TARGET}
+ ${M4} -D_CF_DIR_=${CFDIR}/ ${SENDMAIL_M4_FLAGS} \
+ ${CFDIR}/m4/cf.m4 ${.ALLSRC} > ${.TARGET}
+ ${CHMOD} ${ROMODE} ${.TARGET}
+
install distribution:
.if defined(SENDMAIL_MC) && defined(SENDMAIL_CF)
@echo ">>> ERROR: Both SENDMAIL_MC and SENDMAIL_CF cannot be set"
@@ -71,7 +78,7 @@ install distribution:
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
${CFDIR}/cf/submit.mc ${DESTDIR}/etc/mail/freebsd.submit.mc
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${CFDIR}/cf/submit.cf ${DESTDIR}/etc/mail/freebsd.submit.cf
+ freebsd.submit.cf ${DESTDIR}/etc/mail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
${SMDIR}/helpfile ${DESTDIR}/etc/mail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 \
@@ -94,7 +101,7 @@ install distribution:
${INSTALL_SUBMIT_CF} ${DEST_SUBMIT_CF}
.elif make(distribution)
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${CFDIR}/cf/submit.cf ${DEST_SUBMIT_CF}
+ freebsd.submit.cf ${DEST_SUBMIT_CF}
.endif
.endif