1# $FreeBSD: src/usr.sbin/mailwrapper/Makefile,v 1.4.2.5 2003/04/16 11:01:51 ru Exp $ 2# $DragonFly: src/usr.sbin/mailwrapper/Makefile,v 1.4 2005/07/04 13:35:18 corecode Exp $ 3 4.if !defined(NO_MAILWRAPPER) 5PROG= mailwrapper 6WARNS?= 6 7MAN= mailwrapper.8 8 9DPADD= ${LIBUTIL} 10LDADD= -lutil 11.endif 12 13.if !defined(NO_MAILWRAPPER) || !defined(NO_SENDMAIL) 14SYMLINKS= ${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 defined(NO_MAILWRAPPER) && !defined(NO_SENDMAIL) 21SYMLINKS+= /usr/libexec/sendmail/sendmail ${BINDIR}/mailwrapper 22.endif 23.endif 24 25afterinstall: 26.if !defined(NO_MAILWRAPPER) 27.if !exists(${DESTDIR}/etc/mail/mailer.conf) 28 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 29 ${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail 30.endif 31.endif 32 33.include <bsd.prog.mk> 34