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.
This commit is contained in:
Peter Wemm 1999-12-29 18:56:55 +00:00
parent 1538c4ee35
commit 049239a46c
2 changed files with 16 additions and 0 deletions

View File

@ -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>

View File

@ -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>