If NO_MAILWRAPPER is set, and sendmail is still enabled, then install
a direct symlink to sendmail.
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
|
.if !defined(NO_MAILWRAPPER)
|
||||||
PROG= mailwrapper
|
PROG= mailwrapper
|
||||||
MAN= mailwrapper.8
|
MAN= mailwrapper.8
|
||||||
|
|
||||||
DPADD= ${LIBUTIL}
|
DPADD= ${LIBUTIL}
|
||||||
LDADD= -lutil
|
LDADD= -lutil
|
||||||
|
.endif
|
||||||
|
|
||||||
SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \
|
SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \
|
||||||
${BINDIR}/mailwrapper /usr/sbin/hoststat \
|
${BINDIR}/mailwrapper /usr/sbin/hoststat \
|
||||||
@@ -12,10 +14,16 @@ SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \
|
|||||||
${BINDIR}/mailwrapper /usr/bin/newaliases \
|
${BINDIR}/mailwrapper /usr/bin/newaliases \
|
||||||
${BINDIR}/mailwrapper /usr/bin/mailq
|
${BINDIR}/mailwrapper /usr/bin/mailq
|
||||||
|
|
||||||
|
.if defined(NO_MAILWRAPPER) && !defined(NO_SENDMAIL)
|
||||||
|
SYMLINKS+= /usr/libexec/sendmail/sendmail ${BINDIR}/mailwrapper
|
||||||
|
.endif
|
||||||
|
|
||||||
afterinstall:
|
afterinstall:
|
||||||
|
.if !defined(NO_MAILWRAPPER)
|
||||||
.if !exists(${DESTDIR}/etc/mail/mailer.conf)
|
.if !exists(${DESTDIR}/etc/mail/mailer.conf)
|
||||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
||||||
${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail
|
${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
|||||||
Reference in New Issue
Block a user