From 049239a46c5bc5015a90fbe9397f35445906e5f1 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 29 Dec 1999 18:56:55 +0000 Subject: 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. --- secure/usr.sbin/sendmail/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'secure/usr.sbin/sendmail') 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 -- cgit v1.2.3