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 @@ -1,40 +1,42 @@ # $FreeBSD$ .include .if ${MK_MAILWRAPPER} != "no" PROG= mailwrapper 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 \ mailwrapper /usr/sbin/purgestat \ mailwrapper /usr/sbin/sendmail .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 .if ${MK_MAILWRAPPER} != "no" && ${MK_SENDMAIL} == "no" SYMLINKS+= ..${BINDIR}/mailwrapper /bin/rmail .endif .if ${MK_MAILWRAPPER} != "no" # We install here if either sendmail(8) is enabled, or dma(8) isn't. In the # 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. .if ${MK_SENDMAIL} != "no" || ${MK_DMAGENT} == "no" CONFS= ${SRCTOP}/etc/mail/mailer.conf CONFSDIR= /etc/mail CONFSMODE= 644 .endif .endif .include