diff options
author | dinoex <dinoex@FreeBSD.org> | 2003-09-25 01:25:30 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2003-09-25 01:25:30 +0800 |
commit | 11e474964884b81241ba8497ac035f708dc83b47 (patch) | |
tree | 34f6c350e08647764c6d095f41b362d3d2b0093a /mail/sendmail812 | |
parent | 9c7c8c06368ba4b67def266550e311b1a4c48eba (diff) | |
download | freebsd-ports-gnome-11e474964884b81241ba8497ac035f708dc83b47.tar.gz freebsd-ports-gnome-11e474964884b81241ba8497ac035f708dc83b47.tar.zst freebsd-ports-gnome-11e474964884b81241ba8497ac035f708dc83b47.zip |
- add check to protect against override of base sendmail
Suggested by: Volker Stolz
Diffstat (limited to 'mail/sendmail812')
-rw-r--r-- | mail/sendmail812/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
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 <bsd.port.post.mk> |