From a508f217c0e7ed255581cf77a3eb018c28d4aa67 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 29 Dec 1999 18:27:35 +0000 Subject: 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. --- usr.sbin/mailwrapper/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usr.sbin/mailwrapper/Makefile') 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 -- cgit v1.1