aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2022-10-18 14:37:53 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2022-10-18 14:42:27 +0000
commit3467e28f3d114f35bdfa87d6afd373f9d291dfb3 (patch)
treeabb36a9777b719c1eaa66eac2a7a5bba4a87c3b1
parent751ec8af5ea1df5a4eadd1f3e7d76271fcfed0b1 (diff)
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
-rw-r--r--usr.sbin/mailwrapper/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/mailwrapper/Makefile b/usr.sbin/mailwrapper/Makefile
index 28e0c3c1ce6d..3e5c46d7bdf4 100644
--- a/usr.sbin/mailwrapper/Makefile
+++ b/usr.sbin/mailwrapper/Makefile
@@ -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