diff options
-rw-r--r-- | usr.sbin/mailwrapper/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/mailwrapper/Makefile b/usr.sbin/mailwrapper/Makefile index b4089f9..e599a19 100644 --- a/usr.sbin/mailwrapper/Makefile +++ b/usr.sbin/mailwrapper/Makefile @@ -1,10 +1,12 @@ # $FreeBSD$ +.if !defined(NO_MAILWRAPPER) PROG= mailwrapper MAN= mailwrapper.8 DPADD= ${LIBUTIL} LDADD= -lutil +.endif SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \ ${BINDIR}/mailwrapper /usr/sbin/hoststat \ @@ -12,10 +14,16 @@ SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \ ${BINDIR}/mailwrapper /usr/bin/newaliases \ ${BINDIR}/mailwrapper /usr/bin/mailq +.if defined(NO_MAILWRAPPER) && !defined(NO_SENDMAIL) +SYMLINKS+= /usr/libexec/sendmail/sendmail ${BINDIR}/mailwrapper +.endif + afterinstall: +.if !defined(NO_MAILWRAPPER) .if !exists(${DESTDIR}/etc/mail/mailer.conf) ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ ${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail .endif +.endif .include <bsd.prog.mk> |