diff options
author | peter <peter@FreeBSD.org> | 1999-12-29 18:56:55 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-12-29 18:56:55 +0000 |
commit | 37d997842bef14071a4c5f62d8323b9bb2cbfdf0 (patch) | |
tree | 0f50092448f46c84589c3dbce8dc35cd2112c51a /usr.sbin | |
parent | 5cd7c1e1a50e2eef8faaaae9cdd231aba616de33 (diff) | |
download | FreeBSD-src-37d997842bef14071a4c5f62d8323b9bb2cbfdf0.zip FreeBSD-src-37d997842bef14071a4c5f62d8323b9bb2cbfdf0.tar.gz |
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.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sendmail/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile index 8e52121..a1ea194 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> |