aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sendmail
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sendmail')
-rw-r--r--usr.sbin/sendmail/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile
index 8e52121a9103..a1ea19470526 100644
--- a/usr.sbin/sendmail/Makefile
+++ b/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>