summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2001-07-23 02:19:02 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2001-07-23 02:19:02 +0000
commitf88f925efcc17f40f43bbdcb8aa1e5ff92cdb3a0 (patch)
tree5e275b6954fb8b35b18e99e0d577d54900b8e73a
parentf4843be9990e766d93d225e3ff2e96cc170af25d (diff)
Notes
-rw-r--r--etc/mail/Makefile2
-rw-r--r--etc/sendmail/Makefile12
2 files changed, 11 insertions, 3 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile
index 833b45f55dc4..fed02d38187b 100644
--- a/etc/mail/Makefile
+++ b/etc/mail/Makefile
@@ -153,7 +153,9 @@ maps: ${SENDMAIL_MAP_OBJ}
aliases: ${SENDMAIL_ALIASES}.db
install: ${INSTALL_CF}
+.if ${INSTALL_CF} != /etc/mail/sendmail.cf
${INSTALL} -c -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf
+.endif
start:
(. /etc/defaults/rc.conf; source_rc_confs; \
diff --git a/etc/sendmail/Makefile b/etc/sendmail/Makefile
index 28b5244b3aeb..228b4da540bc 100644
--- a/etc/sendmail/Makefile
+++ b/etc/sendmail/Makefile
@@ -38,6 +38,8 @@ INSTALL_CF= ${SENDMAIL_CF}
.endif
.endif
+DEST_CF= ${DESTDIR}/etc/mail/sendmail.cf
+
ALL+= ${INSTALL_CF}
# Additional .cf files to build
@@ -57,8 +59,10 @@ install: ${INSTALL_CF}
@false
.endif
.if defined(INSTALL_CF)
+.if ${INSTALL_CF} != ${DEST_CF}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
- ${DESTDIR}/etc/mail/sendmail.cf
+ ${DEST_CF}
+.endif
.endif
# Helper for src/etc/Makefile
@@ -72,11 +76,13 @@ distribution: freebsd.cf freebsd.mc ${INSTALL_CF}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
${DESTDIR}/etc/mail/freebsd.cf
.if defined(INSTALL_CF)
+.if ${INSTALL_CF} != ${DEST_CF}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
- ${DESTDIR}/etc/mail/sendmail.cf
+ ${DEST_CF}
+.endif
.else
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
- ${DESTDIR}/etc/mail/sendmail.cf
+ ${DEST_CF}
.endif
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
${DESTDIR}/etc/mail/helpfile