]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/mailwrapper/Makefile
THIS BRANCH IS OBSOLETE, PLEASE READ:
[FreeBSD/FreeBSD.git] / usr.sbin / mailwrapper / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 .if ${MK_MAILWRAPPER} != "no"
6 PROG=   mailwrapper
7 MAN=    mailwrapper.8
8
9 LIBADD= util
10 .endif
11
12 .if ${MK_MAILWRAPPER} != "no" || ${MK_SENDMAIL} != "no"
13 SYMLINKS=       ../sbin/mailwrapper /usr/bin/mailq \
14                 ../sbin/mailwrapper /usr/bin/newaliases \
15                 mailwrapper /usr/sbin/hoststat \
16                 mailwrapper /usr/sbin/purgestat \
17                 mailwrapper /usr/sbin/sendmail
18
19 .if ${MK_MAILWRAPPER} == "no" && ${MK_SENDMAIL} != "no"
20 SYMLINKS+=      ../libexec/sendmail/sendmail ${BINDIR}/mailwrapper
21 .endif
22 .endif
23
24 .if ${MK_MAILWRAPPER} != "no" && ${MK_SENDMAIL} == "no"
25 SYMLINKS+=      ..${BINDIR}/mailwrapper /bin/rmail
26 .endif
27
28 .if ${MK_MAILWRAPPER} != "no"
29 # We install here if either sendmail(8) is enabled, or dma(8) isn't.  In the
30 # latter scenario, we take care of the possibility that neither sendmail(8) nor
31 # dma(8) are installed and simply provide a default that can be changed for an
32 # alternative in ports.
33 .if ${MK_SENDMAIL} != "no" || ${MK_DMAGENT} == "no"
34 CONFS=          ${SRCTOP}/etc/mail/mailer.conf
35 CONFSDIR=       /etc/mail
36 CONFSMODE=      644
37 .endif
38 .endif
39
40 .include <bsd.prog.mk>