1999-12-19 13:50:37 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
|
|
|
.if ${MK_MAILWRAPPER} != "no"
|
1999-12-19 13:50:37 +00:00
|
|
|
PROG= mailwrapper
|
2001-03-26 14:42:20 +00:00
|
|
|
MAN= mailwrapper.8
|
2018-01-02 16:50:57 +00:00
|
|
|
|
|
|
|
LIBADD= util
|
2002-07-24 22:17:22 +00:00
|
|
|
.endif
|
1999-12-19 13:50:37 +00:00
|
|
|
|
2022-10-18 14:37:53 +00:00
|
|
|
.if ${MK_MAILWRAPPER} != "no" || ${MK_SENDMAIL} != "no" || ${MK_DMAGENT} != "no"
|
2017-03-07 05:10:38 +00:00
|
|
|
SYMLINKS= ../sbin/mailwrapper /usr/bin/mailq \
|
|
|
|
../sbin/mailwrapper /usr/bin/newaliases \
|
|
|
|
mailwrapper /usr/sbin/hoststat \
|
|
|
|
mailwrapper /usr/sbin/purgestat \
|
|
|
|
mailwrapper /usr/sbin/sendmail
|
1999-12-19 13:50:37 +00:00
|
|
|
|
2022-10-13 09:37:21 +00:00
|
|
|
.if ${MK_MAILWRAPPER} == "no" && ${MK_DMAGENT} != "no"
|
2022-10-18 14:37:53 +00:00
|
|
|
SYMLINKS+= ../libexec/dma ${BINDIR}/mailwrapper
|
2022-10-13 09:37:21 +00:00
|
|
|
.elif ${MK_MAILWRAPPER} == "no" && ${MK_DMAGENT} == "no" && ${MK_SENDMAIL} != "no"
|
|
|
|
SYMLINKS+= ../libexec/sendmail/sendmail ${BINDIR}/mailwrapper
|
2002-07-24 22:17:22 +00:00
|
|
|
.endif
|
2004-01-17 23:58:23 +00:00
|
|
|
.endif
|
2002-07-24 22:17:22 +00:00
|
|
|
|
2010-10-12 21:01:26 +00:00
|
|
|
.if ${MK_MAILWRAPPER} != "no" && ${MK_SENDMAIL} == "no"
|
2017-03-07 05:10:38 +00:00
|
|
|
SYMLINKS+= ..${BINDIR}/mailwrapper /bin/rmail
|
2010-10-12 21:01:26 +00:00
|
|
|
.endif
|
|
|
|
|
2022-10-13 09:37:21 +00:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
|
|
|
FILES= ${SRCTOP}/etc/mail/mailer.conf
|
|
|
|
FILESDIR= ${SHAREDIR}/examples/sendmail
|
2023-01-31 15:15:11 +00:00
|
|
|
FILESPACKAGE= sendmail
|
2022-10-13 09:37:21 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_MAILWRAPPER} != "no"
|
2022-10-13 09:37:21 +00:00
|
|
|
# We install here if either dma(8) is enabled, or sendmail(8) isn't. In the
|
pkgbase: resolve mailer.conf conflict WITHOUT_SENDMAIL
When WITHOUT_SENDMAIL is set, we end up with two different mailer.conf that
conflict, and hilarity ensues. There's currently three different places that
we might install mailer.conf:
- ^/etc/Makefile (package=runtime, contingent on MK_MAIL != no)
- ^/libexec/dma/dmagent/Makefile (package=dma, contingent on MK_SENDMAIL !=
no)
- ^/usr.sbin/mailwrapper/Makefile (package=utilities, contingent on
not-installed)
The mailwrapper installation will effectively never happen because the ^/etc
one will first.
This patch simplifies the whole situation; remove the ^/etc/Makefile version
and install it primarily in mailwrapper if MK_MAILWRAPPER != "no". The
scenarios covered in mailwrapper are:
- sendmail(8) is installed, dma(8) may or may not be installed
- neither sendmail(8) nor dma(8) is installed
In the first scenario, sendmail(8) is dominant so we can go ahead and
install the version in ^/etc/mail. In the unlisted scenario, sendmail(8) is
not installed but dma(8) is, we'll let ^/libexec/dma/dmagent do the
installation. In the second listed scenario, we still want to install an
example mailer.conf so just install the base sendmail(8) version.
Reviewed by: bapt
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D24924
2020-06-02 02:38:54 +00:00
|
|
|
# latter scenario, we take care of the possibility that neither sendmail(8) nor
|
|
|
|
# dma(8) are installed and simply provide a default that can be changed for an
|
|
|
|
# alternative in ports.
|
2022-10-13 09:37:21 +00:00
|
|
|
.if ${MK_DMAGENT} != "no" || ${MK_SENDMAIL} == "no"
|
|
|
|
CONFS= ${SRCTOP}/libexec/dma/dmagent/mailer.conf
|
|
|
|
.else
|
2020-06-29 18:06:00 +00:00
|
|
|
CONFS= ${SRCTOP}/etc/mail/mailer.conf
|
2022-10-13 09:37:21 +00:00
|
|
|
.endif
|
2020-06-29 18:06:00 +00:00
|
|
|
CONFSDIR= /etc/mail
|
|
|
|
CONFSMODE= 644
|
2000-06-04 01:20:58 +00:00
|
|
|
.endif
|
1999-12-29 18:27:35 +00:00
|
|
|
|
1999-12-19 13:50:37 +00:00
|
|
|
.include <bsd.prog.mk>
|