git: 3467e28f3d11 - main - mailwrapper: create mailwrapper symlinks for dma(8)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Oct 2022 14:42:49 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/src/commit/?id=3467e28f3d114f35bdfa87d6afd373f9d291dfb3
commit 3467e28f3d114f35bdfa87d6afd373f9d291dfb3
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2022-10-18 14:37:53 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-10-18 14:42:27 +0000
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
---
usr.sbin/mailwrapper/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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