mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
If NO_MAILWRAPPER is set, and sendmail is still enabled, then install
a direct symlink to sendmail.
This commit is contained in:
parent
528cc96a49
commit
2632dac829
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100639
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue