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:
parent
1538c4ee35
commit
049239a46c
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user