Put WARNS?=6 in usr.sbin/Makefile.inc (like in usr.bin/ etc.).
[dragonfly.git] / usr.sbin / mailwrapper / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/usr.sbin/mailwrapper/Makefile,v 1.4.2.5 2003/04/16 11:01:51 ru Exp $
a5bd972e 2# $DragonFly: src/usr.sbin/mailwrapper/Makefile,v 1.4 2005/07/04 13:35:18 corecode Exp $
984263bc
MD
3
4.if !defined(NO_MAILWRAPPER)
5PROG= mailwrapper
6MAN= mailwrapper.8
7
8DPADD= ${LIBUTIL}
9LDADD= -lutil
10.endif
11
a5bd972e 12.if !defined(NO_MAILWRAPPER) || !defined(NO_SENDMAIL)
984263bc
MD
13SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \
14 ${BINDIR}/mailwrapper /usr/sbin/hoststat \
15 ${BINDIR}/mailwrapper /usr/sbin/purgestat \
16 ${BINDIR}/mailwrapper /usr/bin/newaliases \
17 ${BINDIR}/mailwrapper /usr/bin/mailq
18
19.if defined(NO_MAILWRAPPER) && !defined(NO_SENDMAIL)
20SYMLINKS+= /usr/libexec/sendmail/sendmail ${BINDIR}/mailwrapper
21.endif
a5bd972e 22.endif
984263bc
MD
23
24afterinstall:
25.if !defined(NO_MAILWRAPPER)
26.if !exists(${DESTDIR}/etc/mail/mailer.conf)
27 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
28 ${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail
29.endif
30.endif
31
32.include <bsd.prog.mk>