mailwrapper: create mailwrapper symlinks for dma(8)

The Dragonfy Mail Agent (dma) can be used with mailwrapper as a
replacement for sendmail(8)

Even if mailwrapper and sendmail are disabled from the build but
dma is not create all the expect symlinks on mailwrapper and make
mailwrapper a symlink to dma, the same way it was done before when
mailwrapper is disabled by sendmail was not.

Discussed with:	emaste
This commit is contained in:
Baptiste Daroussin 2022-10-18 16:37:53 +02:00
parent 751ec8af5e
commit 3467e28f3d

View file

@ -9,7 +9,7 @@ MAN= mailwrapper.8
LIBADD= util
.endif
.if ${MK_MAILWRAPPER} != "no" || ${MK_SENDMAIL} != "no"
.if ${MK_MAILWRAPPER} != "no" || ${MK_SENDMAIL} != "no" || ${MK_DMAGENT} != "no"
SYMLINKS= ../sbin/mailwrapper /usr/bin/mailq \
../sbin/mailwrapper /usr/bin/newaliases \
mailwrapper /usr/sbin/hoststat \
@ -18,6 +18,8 @@ SYMLINKS= ../sbin/mailwrapper /usr/bin/mailq \
.if ${MK_MAILWRAPPER} == "no" && ${MK_SENDMAIL} != "no"
SYMLINKS+= ../libexec/sendmail/sendmail ${BINDIR}/mailwrapper
.elif ${MK_MAILWRAPPER} == "no" && ${MK_SENDMAIL} == "no" && ${MK_DMAGENT} != "no"
SYMLINKS+= ../libexec/dma ${BINDIR}/mailwrapper
.endif
.endif