summaryrefslogtreecommitdiffstats
path: root/mail/sendmail
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2003-09-24 17:25:30 +0000
committerdinoex <dinoex@FreeBSD.org>2003-09-24 17:25:30 +0000
commit11e474964884b81241ba8497ac035f708dc83b47 (patch)
tree34f6c350e08647764c6d095f41b362d3d2b0093a /mail/sendmail
parent9c7c8c06368ba4b67def266550e311b1a4c48eba (diff)
downloadFreeBSD-ports-11e474964884b81241ba8497ac035f708dc83b47.zip
FreeBSD-ports-11e474964884b81241ba8497ac035f708dc83b47.tar.gz
- add check to protect against override of base sendmail
Suggested by: Volker Stolz
Diffstat (limited to 'mail/sendmail')
-rw-r--r--mail/sendmail/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index c369b526..b642242 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/Makefile
@@ -273,4 +273,17 @@ SITE+= ${FILESDIR}/site.config.m4.smtps
SITE+= ${FILESDIR}/site.config.m4.local
.endif
+.if exists(${DESTDIR}/etc/mail/mailer.conf) && ${PREFIX} == "/usr"
+pre-everything:
+ @${ECHO_CMD} "#"
+ @${ECHO_CMD} "# You can't override the base sendmail this way."
+ @${ECHO_CMD} "# your version FreeBSD use mailwrapper."
+ @${ECHO_CMD} "#"
+ @${ECHO_CMD} "# Please install with normal PREFIX"
+ @${ECHO_CMD} "# and activate the port version with"
+ @${ECHO_CMD} "# cd /usr/ports/mail/sendmail && make mailer.conf"
+ @${ECHO_CMD} "#"
+ @${FALSE}
+.endif
+
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud