summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-09-12 16:15:39 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-09-12 16:15:39 +0000
commit53401d8f3b45d1ac9b44a774dc4de001706f80a2 (patch)
tree48c0a4595f0b0c58925d4c7ebabe93ccb7256122 /gnu/usr.sbin
parent247e03b563ffd7584501e00ae88d2cefb6cc24db (diff)
Install localhost.cf if it is missing and sendmail.cf exists.
Diffstat (limited to 'gnu/usr.sbin')
-rw-r--r--gnu/usr.sbin/sendmail/cf/cf/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/gnu/usr.sbin/sendmail/cf/cf/Makefile b/gnu/usr.sbin/sendmail/cf/cf/Makefile
index 7595f34006b..0fc47702819 100644
--- a/gnu/usr.sbin/sendmail/cf/cf/Makefile
+++ b/gnu/usr.sbin/sendmail/cf/cf/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.11 2001/09/11 19:02:48 millert Exp $
+# $OpenBSD: Makefile,v 1.12 2001/09/12 16:15:38 millert Exp $
#
# Makefile for configuration files.
#
@@ -38,12 +38,18 @@ clean cleandir:
depend:
install:
- @if test -e ${DESTDIR}/etc/mail/sendmail.cf -a \
- \! -e ${DESTDIR}/etc/mail/submit.cf; then \
- echo "WARNING: installed missing ${DESTDIR}/etc/mail/submit.cf"; \
- echo "You should probably rebuild ${DESTDIR}/etc/mail/sendmail.cf"; \
- ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 submit.cf \
- ${DESTDIR}/etc/mail/submit.cf; \
+ @if test -e ${DESTDIR}/etc/mail/sendmail.cf; then \
+ if test ! -e ${DESTDIR}/etc/mail/submit.cf; then \
+ echo "WARNING: installed missing ${DESTDIR}/etc/mail/submit.cf"; \
+ echo "You should probably rebuild ${DESTDIR}/etc/mail/sendmail.cf"; \
+ ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 \
+ submit.cf ${DESTDIR}/etc/mail/submit.cf; \
+ fi; \
+ if test ! -e ${DESTDIR}/etc/mail/localhost.cf; then \
+ echo "WARNING: installed missing ${DESTDIR}/etc/mail/localhost.cf"; \
+ ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 \
+ openbsd-localhost.cf ${DESTDIR}/etc/mail/localhost.cf; \
+ fi; \
fi
distribution: openbsd-proto.cf