summaryrefslogtreecommitdiffstats
path: root/etc/sendmail
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2002-02-17 22:09:15 +0000
committergshapiro <gshapiro@FreeBSD.org>2002-02-17 22:09:15 +0000
commit9ca121f5b3eabff7caa6b72fb645af0ba6cd492e (patch)
treed9dac75d17ac884ef006f8f817c38cd23fd8d0d3 /etc/sendmail
parentbf8692f3b66b8f43610dd2d6645a576bdc8179e6 (diff)
downloadFreeBSD-src-9ca121f5b3eabff7caa6b72fb645af0ba6cd492e.zip
FreeBSD-src-9ca121f5b3eabff7caa6b72fb645af0ba6cd492e.tar.gz
Add new build knob, SENDMAIL_SET_USER_ID, which installs sendmail as a
set-user-ID root binary instead of the new method (set-group-ID smmsp). Therefore, we shouldn't install /etc/mail/submit.cf if it is set.
Diffstat (limited to 'etc/sendmail')
-rw-r--r--etc/sendmail/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/sendmail/Makefile b/etc/sendmail/Makefile
index 7ac0cc9..2ff7659 100644
--- a/etc/sendmail/Makefile
+++ b/etc/sendmail/Makefile
@@ -87,6 +87,12 @@ distribution: freebsd.cf freebsd.mc ${INSTALL_CF}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
${DEST_CF}
.endif
+.ifndef SENDMAIL_SET_USER_ID
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.mc \
+ ${DESTDIR}/etc/mail/submit.mc
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${CFDIR}/cf/submit.cf \
+ ${DESTDIR}/etc/mail/submit.cf
+.endif
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
${DESTDIR}/etc/mail/helpfile
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
OpenPOWER on IntegriCloud