]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - usr.sbin/mailwrapper/Makefile
MFC r290326:
[FreeBSD/stable/8.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 WARNS?= 6
12 .endif
13
14 .if ${MK_MAILWRAPPER} != "no" || ${MK_SENDMAIL} != "no"
15 SYMLINKS=       ${BINDIR}/mailwrapper /usr/sbin/sendmail  \
16                 ${BINDIR}/mailwrapper /usr/sbin/hoststat  \
17                 ${BINDIR}/mailwrapper /usr/sbin/purgestat \
18                 ${BINDIR}/mailwrapper /usr/bin/newaliases \
19                 ${BINDIR}/mailwrapper /usr/bin/mailq
20
21 .if ${MK_MAILWRAPPER} == "no" && ${MK_SENDMAIL} != "no"
22 SYMLINKS+=      /usr/libexec/sendmail/sendmail ${BINDIR}/mailwrapper
23 .endif
24 .endif
25
26 .if ${MK_MAILWRAPPER} != "no" && ${MK_SENDMAIL} == "no"
27 SYMLINKS+=      ${BINDIR}/mailwrapper /bin/rmail
28 .endif
29
30 .if ${MK_MAILWRAPPER} != "no"
31 .if !exists(${DESTDIR}/etc/mail/mailer.conf)
32 FILES=          ${.CURDIR}/../../etc/mail/mailer.conf
33 FILESDIR=       /etc/mail
34 FILESMODE=      644
35 .endif
36 .endif
37
38 .include <bsd.prog.mk>