diff --git a/usr.sbin/mailwrapper/Makefile b/usr.sbin/mailwrapper/Makefile index 1db3325a9b6e..f67e77539c0d 100644 --- a/usr.sbin/mailwrapper/Makefile +++ b/usr.sbin/mailwrapper/Makefile @@ -8,6 +8,7 @@ DPADD= ${LIBUTIL} LDADD= -lutil .endif +.if !defined(NO_MAILWRAPPER) || !defined(NO_SENDMAIL) SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \ ${BINDIR}/mailwrapper /usr/sbin/hoststat \ ${BINDIR}/mailwrapper /usr/sbin/purgestat \ @@ -17,6 +18,7 @@ SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \ .if defined(NO_MAILWRAPPER) && !defined(NO_SENDMAIL) SYMLINKS+= /usr/libexec/sendmail/sendmail ${BINDIR}/mailwrapper .endif +.endif afterinstall: .if !defined(NO_MAILWRAPPER)