Move installation of sendmail helpfile into etc/sendmail/Makefile. It is

a user configurable file and it would benefit from mergemaster.
This commit is contained in:
Gregory Neil Shapiro 2001-03-01 03:50:28 +00:00
parent 2b99d4f013
commit a38a3724b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73250
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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 \