aboutsummaryrefslogtreecommitdiff
path: root/secure
diff options
context:
space:
mode:
Diffstat (limited to 'secure')
-rw-r--r--secure/usr.sbin/sendmail/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/secure/usr.sbin/sendmail/Makefile b/secure/usr.sbin/sendmail/Makefile
index 8e52121a9103..a1ea19470526 100644
--- a/secure/usr.sbin/sendmail/Makefile
+++ b/secure/usr.sbin/sendmail/Makefile
@@ -39,4 +39,12 @@ beforeinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/sendmail.hf \
${DESTDIR}/usr/share/misc
+afterinstall:
+ @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/sendmail.cf -a \
+ ! -f ${DESTDIR}/etc/mail/sendmail.cf ]; then \
+ set -x; \
+ mv -f ${DESTDIR}/etc/sendmail.cf \
+ ${DESTDIR}/etc/mail/sendmail.cf; \
+ fi
+
.include <bsd.prog.mk>