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