From 37d997842bef14071a4c5f62d8323b9bb2cbfdf0 Mon Sep 17 00:00:00 2001 From: peter 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. --- usr.sbin/sendmail/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'usr.sbin/sendmail') 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 -- cgit v1.1