summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/sendmail/Makefile7
-rw-r--r--usr.sbin/sendmail/Makefile4
2 files changed, 6 insertions, 5 deletions
diff --git a/etc/sendmail/Makefile b/etc/sendmail/Makefile
index 43f602d..822899e 100644
--- a/etc/sendmail/Makefile
+++ b/etc/sendmail/Makefile
@@ -5,7 +5,10 @@ M4= m4
CHMOD= chmod
ROMODE= 444
RM= rm -f
-CFDIR= ${.CURDIR}/../../contrib/sendmail/cf
+
+SENDMAIL_DIR= ${.CURDIR}/../../contrib/sendmail
+SMDIR= ${SENDMAIL_DIR}/src
+CFDIR= ${SENDMAIL_DIR}/cf
# this is overkill, but....
M4FILES!= find ${CFDIR} -type f -name '*.m4' -print
@@ -72,6 +75,8 @@ distribution: freebsd.cf freebsd.mc ${INSTALL_CF}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \
${DESTDIR}/etc/mail/sendmail.cf
.endif
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
+ ${DESTDIR}/etc/mail/helpfile
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${DESTDIR}/var/log/sendmail.st
diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile
index a830b83..6496715 100644
--- a/usr.sbin/sendmail/Makefile
+++ b/usr.sbin/sendmail/Makefile
@@ -61,10 +61,6 @@ DPADD+=${SENDMAIL_DPADD}
LDADD+=${SENDMAIL_LDADD}
LDFLAGS+=${SENDMAIL_LDFLAGS}
-beforeinstall:
- ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/helpfile \
- ${DESTDIR}/etc/mail/helpfile
-
afterinstall:
@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/sendmail.cf -a \
! -f ${DESTDIR}/etc/mail/sendmail.cf ]; then \
OpenPOWER on IntegriCloud