If NO_MAILWRAPPER is set, and sendmail is still enabled, then install

a direct symlink to sendmail.
This commit is contained in:
Peter Wemm 2002-07-24 22:17:22 +00:00
parent 528cc96a49
commit 2632dac829
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100639

View file

@ -1,10 +1,12 @@
# $FreeBSD$
.if !defined(NO_MAILWRAPPER)
PROG= mailwrapper
MAN= mailwrapper.8
DPADD= ${LIBUTIL}
LDADD= -lutil
.endif
SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \
${BINDIR}/mailwrapper /usr/sbin/hoststat \
@ -12,10 +14,16 @@ SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \
${BINDIR}/mailwrapper /usr/bin/newaliases \
${BINDIR}/mailwrapper /usr/bin/mailq
.if defined(NO_MAILWRAPPER) && !defined(NO_SENDMAIL)
SYMLINKS+= /usr/libexec/sendmail/sendmail ${BINDIR}/mailwrapper
.endif
afterinstall:
.if !defined(NO_MAILWRAPPER)
.if !exists(${DESTDIR}/etc/mail/mailer.conf)
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \
${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail
.endif
.endif
.include <bsd.prog.mk>