aboutsummaryrefslogtreecommitdiff
path: root/secure
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-12-29 18:56:55 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-12-29 18:56:55 +0000
commit049239a46c5bc5015a90fbe9397f35445906e5f1 (patch)
tree2150961d417afb08ee2fa90e0d28c434b057b762 /secure
parent1538c4ee356cee7031994f15b0c9cb84cc89f7b7 (diff)
downloadsrc-049239a46c5bc5015a90fbe9397f35445906e5f1.tar.gz
src-049239a46c5bc5015a90fbe9397f35445906e5f1.zip
Since /etc/sendmail.cf got moved to /etc/mail/sendmail.cf, a 'make world'
would leave you with a broken sendmail and local mail loss. This evil hack moves sendmail.cf from the old location to the new one (if required) at install time.
Notes
Notes: svn path=/head/; revision=55239
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>