summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mailwrapper
diff options
context:
space:
mode:
authorhoek <hoek@FreeBSD.org>2000-06-04 01:20:58 +0000
committerhoek <hoek@FreeBSD.org>2000-06-04 01:20:58 +0000
commita8a49218a7bce941cab169cd6601dad99356387d (patch)
treecd59f2f2464f177e98a4be87855a9c95e6ba90e6 /usr.sbin/mailwrapper
parentd4ddd65f985a412d9c03d16750a2393c181cbb17 (diff)
downloadFreeBSD-src-a8a49218a7bce941cab169cd6601dad99356387d.zip
FreeBSD-src-a8a49218a7bce941cab169cd6601dad99356387d.tar.gz
Install mailer.conf as ${BINOWN}, ${BINGRP}, rather than root:wheel. This
lets unprivileged installworld: almost work first try and always work second. BINOWN isn't quite right for this, but it's not really worth creating a MAILOWN for this.
Diffstat (limited to 'usr.sbin/mailwrapper')
-rw-r--r--usr.sbin/mailwrapper/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/mailwrapper/Makefile b/usr.sbin/mailwrapper/Makefile
index 0e6c8cf..02a1899 100644
--- a/usr.sbin/mailwrapper/Makefile
+++ b/usr.sbin/mailwrapper/Makefile
@@ -11,9 +11,9 @@ SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \
${BINDIR}/mailwrapper /usr/bin/mailq
afterinstall:
- @if [ ! -f ${DESTDIR}/etc/mail/mailer.conf ]; then \
- ${INSTALL} -c -o root -g wheel -m 644 \
- ${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail; \
- fi
+.if !exists(${DESTDIR}/etc/mail/mailer.conf)
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \
+ ${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail
+.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud