Initial import from FreeBSD RELENG_4:
[games.git] / usr.sbin / mailwrapper / Makefile
1 # $FreeBSD: src/usr.sbin/mailwrapper/Makefile,v 1.4.2.5 2003/04/16 11:01:51 ru Exp $
2
3 .if !defined(NO_MAILWRAPPER)
4 PROG=   mailwrapper
5 MAN=    mailwrapper.8
6
7 DPADD=  ${LIBUTIL}
8 LDADD=  -lutil
9 .endif
10
11 SYMLINKS=       ${BINDIR}/mailwrapper /usr/sbin/sendmail  \
12                 ${BINDIR}/mailwrapper /usr/sbin/hoststat  \
13                 ${BINDIR}/mailwrapper /usr/sbin/purgestat \
14                 ${BINDIR}/mailwrapper /usr/bin/newaliases \
15                 ${BINDIR}/mailwrapper /usr/bin/mailq
16
17 .if defined(NO_MAILWRAPPER) && !defined(NO_SENDMAIL)
18 SYMLINKS+=      /usr/libexec/sendmail/sendmail ${BINDIR}/mailwrapper
19 .endif
20
21 afterinstall:
22 .if !defined(NO_MAILWRAPPER)
23 .if !exists(${DESTDIR}/etc/mail/mailer.conf)
24         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
25             ${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail
26 .endif
27 .endif
28
29 .include <bsd.prog.mk>