mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +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 New Issue
Block a user