diff options
Diffstat (limited to 'usr.sbin/mailwrapper/Makefile')
| -rw-r--r-- | usr.sbin/mailwrapper/Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/usr.sbin/mailwrapper/Makefile b/usr.sbin/mailwrapper/Makefile index 3e5c46d7bdf4..0878a2f8c483 100644 --- a/usr.sbin/mailwrapper/Makefile +++ b/usr.sbin/mailwrapper/Makefile @@ -16,10 +16,10 @@ SYMLINKS= ../sbin/mailwrapper /usr/bin/mailq \ 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" +.if ${MK_MAILWRAPPER} == "no" && ${MK_DMAGENT} != "no" SYMLINKS+= ../libexec/dma ${BINDIR}/mailwrapper +.elif ${MK_MAILWRAPPER} == "no" && ${MK_DMAGENT} == "no" && ${MK_SENDMAIL} != "no" +SYMLINKS+= ../libexec/sendmail/sendmail ${BINDIR}/mailwrapper .endif .endif @@ -27,16 +27,23 @@ SYMLINKS+= ../libexec/dma ${BINDIR}/mailwrapper SYMLINKS+= ..${BINDIR}/mailwrapper /bin/rmail .endif +.if ${MK_SENDMAIL} != "no" +FILES= ${SRCTOP}/etc/mail/mailer.conf +FILESDIR= ${SHAREDIR}/examples/sendmail +.endif + .if ${MK_MAILWRAPPER} != "no" -# We install here if either sendmail(8) is enabled, or dma(8) isn't. In the +# We install here if either dma(8) is enabled, or sendmail(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" +.if ${MK_DMAGENT} != "no" || ${MK_SENDMAIL} == "no" +CONFS= ${SRCTOP}/libexec/dma/dmagent/mailer.conf +.else CONFS= ${SRCTOP}/etc/mail/mailer.conf +.endif CONFSDIR= /etc/mail CONFSMODE= 644 .endif -.endif .include <bsd.prog.mk> |
