From 1f40172f719b158816bc28bdc68f85ebeb6393cb Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Wed, 24 Sep 2003 17:25:30 +0000 Subject: - add check to protect against override of base sendmail Suggested by: Volker Stolz --- mail/sendmail-old/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mail/sendmail-old/Makefile') diff --git a/mail/sendmail-old/Makefile b/mail/sendmail-old/Makefile index 98c5f7584c6a..0d54f49ee7ff 100644 --- a/mail/sendmail-old/Makefile +++ b/mail/sendmail-old/Makefile @@ -186,4 +186,17 @@ SITE+= ${FILESDIR}/site.config.m4.tls 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 -- cgit v1.2.3