]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - usr.sbin/mailwrapper/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / usr.sbin / mailwrapper / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 .if ${MK_MAILWRAPPER} != "no"
6 PROG=   mailwrapper
7 MAN=    mailwrapper.8
8
9 DPADD=  ${LIBUTIL}
10 LDADD=  -lutil
11 .endif
12
13 .if ${MK_MAILWRAPPER} != "no" || ${MK_SENDMAIL} != "no"
14 SYMLINKS=       ${BINDIR}/mailwrapper /usr/sbin/sendmail  \
15                 ${BINDIR}/mailwrapper /usr/sbin/hoststat  \
16                 ${BINDIR}/mailwrapper /usr/sbin/purgestat \
17                 ${BINDIR}/mailwrapper /usr/bin/newaliases \
18                 ${BINDIR}/mailwrapper /usr/bin/mailq
19
20 .if ${MK_MAILWRAPPER} == "no" && ${MK_SENDMAIL} != "no"
21 SYMLINKS+=      /usr/libexec/sendmail/sendmail ${BINDIR}/mailwrapper
22 .endif
23 .endif
24
25 .if ${MK_MAILWRAPPER} != "no" && ${MK_SENDMAIL} == "no"
26 SYMLINKS+=      ${BINDIR}/mailwrapper /bin/rmail
27 .endif
28
29 .if ${MK_MAILWRAPPER} != "no"
30 .if !exists(${DESTDIR}/etc/mail/mailer.conf)
31 FILES=          ${.CURDIR}/../../etc/mail/mailer.conf
32 FILESDIR=       /etc/mail
33 FILESMODE=      644
34 .endif
35 .endif
36
37 .include <bsd.prog.mk>