diff options
author | peter <peter@FreeBSD.org> | 1999-12-29 18:27:35 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-12-29 18:27:35 +0000 |
commit | a508f217c0e7ed255581cf77a3eb018c28d4aa67 (patch) | |
tree | 69dfc91e24369381aa7be02a62c7a37212cace6a /usr.sbin | |
parent | 554c63ab26d7cad4c4a30703fa9eef4b60ee7691 (diff) | |
download | FreeBSD-src-a508f217c0e7ed255581cf77a3eb018c28d4aa67.zip FreeBSD-src-a508f217c0e7ed255581cf77a3eb018c28d4aa67.tar.gz |
As a special case, deal with a missing mailer.conf at install time. I
don't particularly like doing this here, but the alternative (loosing mail)
is worse.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/mailwrapper/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/mailwrapper/Makefile b/usr.sbin/mailwrapper/Makefile index c59fa9e..3e575e6 100644 --- a/usr.sbin/mailwrapper/Makefile +++ b/usr.sbin/mailwrapper/Makefile @@ -1,4 +1,3 @@ -# $NetBSD: Makefile,v 1.4 1999/03/25 16:40:18 is Exp $ # $FreeBSD$ PROG= mailwrapper @@ -11,4 +10,10 @@ SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \ ${BINDIR}/mailwrapper /usr/bin/newaliases \ ${BINDIR}/mailwrapper /usr/bin/mailq +afterinstall: + @if [ ! -f /etc/mail/mailer.conf ]; then \ + ${INSTALL} -c -o root -g wheel -m 644 \ + ${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail; \ + fi + .include <bsd.prog.mk> |