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/sendmail811 | |
parent | 9c7c8c06368ba4b67def266550e311b1a4c48eba (diff) | |
download | freebsd-ports-graphics-11e474964884b81241ba8497ac035f708dc83b47.tar.gz freebsd-ports-graphics-11e474964884b81241ba8497ac035f708dc83b47.tar.zst freebsd-ports-graphics-11e474964884b81241ba8497ac035f708dc83b47.zip |
- add check to protect against override of base sendmail
Suggested by: Volker Stolz
Diffstat (limited to 'mail/sendmail811')
-rw-r--r-- | mail/sendmail811/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/sendmail811/Makefile b/mail/sendmail811/Makefile index 98c5f7584c6..0d54f49ee7f 100644 --- a/mail/sendmail811/Makefile +++ b/mail/sendmail811/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 <bsd.port.post.mk> |