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 | |
| parent | Update to 1.02: (diff) | |
- add check to protect against override of base sendmail
Suggested by: Volker Stolz
Notes
Notes:
svn path=/head/; revision=89253
| -rw-r--r-- | mail/sendmail-old/Makefile | 13 | ||||
| -rw-r--r-- | mail/sendmail/Makefile | 13 | ||||
| -rw-r--r-- | mail/sendmail811/Makefile | 13 | ||||
| -rw-r--r-- | mail/sendmail812/Makefile | 13 |
4 files changed, 52 insertions, 0 deletions
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 <bsd.port.post.mk> diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile index c369b5268d3d..b64224286c8a 100644 --- a/mail/sendmail/Makefile +++ b/mail/sendmail/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> 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> 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> |
