From 11e474964884b81241ba8497ac035f708dc83b47 Mon Sep 17 00:00:00 2001 From: dinoex Date: Wed, 24 Sep 2003 17:25:30 +0000 Subject: - add check to protect against override of base sendmail Suggested by: Volker Stolz --- mail/sendmail812/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mail/sendmail812') diff --git a/mail/sendmail812/Makefile b/mail/sendmail812/Makefile index c369b5268d3d..b64224286c8a 100644 --- a/mail/sendmail812/Makefile +++ b/mail/sendmail812/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 -- cgit