1 2.include <src.opts.mk> 3 4.if ${MK_MAILWRAPPER} != "no" 5PROG= mailwrapper 6MAN= mailwrapper.8 7 8LIBADD= util 9.endif 10 11.if ${MK_MAILWRAPPER} != "no" || ${MK_SENDMAIL} != "no" || ${MK_DMAGENT} != "no" 12SYMLINKS= ../sbin/mailwrapper /usr/bin/mailq \ 13 ../sbin/mailwrapper /usr/bin/newaliases \ 14 mailwrapper /usr/sbin/hoststat \ 15 mailwrapper /usr/sbin/purgestat \ 16 mailwrapper /usr/sbin/sendmail 17 18.if ${MK_MAILWRAPPER} == "no" && ${MK_DMAGENT} != "no" 19SYMLINKS+= ../libexec/dma ${BINDIR}/mailwrapper 20.elif ${MK_MAILWRAPPER} == "no" && ${MK_DMAGENT} == "no" && ${MK_SENDMAIL} != "no" 21SYMLINKS+= ../libexec/sendmail/sendmail ${BINDIR}/mailwrapper 22.endif 23.endif 24 25.if ${MK_MAILWRAPPER} != "no" && ${MK_SENDMAIL} == "no" 26SYMLINKS+= ..${BINDIR}/mailwrapper /bin/rmail 27.endif 28 29.if ${MK_SENDMAIL} != "no" 30FILES= ${SRCTOP}/etc/mail/mailer.conf 31FILESDIR= ${SHAREDIR}/examples/sendmail 32FILESPACKAGE= sendmail 33.endif 34 35.if ${MK_MAILWRAPPER} != "no" 36# We install here if either dma(8) is enabled, or sendmail(8) isn't. In the 37# latter scenario, we take care of the possibility that neither sendmail(8) nor 38# dma(8) are installed and simply provide a default that can be changed for an 39# alternative in ports. 40.if ${MK_DMAGENT} != "no" || ${MK_SENDMAIL} == "no" 41CONFS= ${SRCTOP}/libexec/dma/dmagent/mailer.conf 42.else 43CONFS= ${SRCTOP}/etc/mail/mailer.conf 44.endif 45CONFSDIR= /etc/mail 46CONFSMODE= 644 47.endif 48 49.include <bsd.prog.mk> 50