diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2003-09-24 17:25:30 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2003-09-24 17:25:30 +0000 |
commit | 1f40172f719b158816bc28bdc68f85ebeb6393cb (patch) | |
tree | 577b375517ca2657b9052cbc1a6cfde94c8a4045 /mail/sendmail811 | |
parent | 91262307102f496023c56d2e92c668274a25f74e (diff) | |
download | ports-1f40172f719b158816bc28bdc68f85ebeb6393cb.tar.gz ports-1f40172f719b158816bc28bdc68f85ebeb6393cb.zip |
- add check to protect against override of base sendmail
Suggested by: Volker Stolz
Notes
Notes:
svn path=/head/; revision=89253
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 98c5f7584c6a..0d54f49ee7ff 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> |