diff options
author | kris <kris@FreeBSD.org> | 2000-04-21 22:11:47 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-04-21 22:11:47 +0000 |
commit | 5be996826c667a17bf3d21603e9664a26551cb03 (patch) | |
tree | a1aecc0cb2e847c99579194b7cbeb10a5482144f | |
parent | e0ea5f7e9f58062075403630785e02e4e802e2ce (diff) | |
download | FreeBSD-ports-5be996826c667a17bf3d21603e9664a26551cb03.zip FreeBSD-ports-5be996826c667a17bf3d21603e9664a26551cb03.tar.gz |
Add an confirmation screen describing the known security holes in
imap.
-rw-r--r-- | mail/imap-uw/Makefile | 5 | ||||
-rw-r--r-- | mail/imap-uw/pkg-install | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/mail/imap-uw/Makefile b/mail/imap-uw/Makefile index e534ffb..3ce0ce6 100644 --- a/mail/imap-uw/Makefile +++ b/mail/imap-uw/Makefile @@ -41,6 +41,11 @@ PLIST_SUB= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} SHLIBNAME= lib${SHLIBBASE}.so.${SHLIBMAJ}.0 .endif +pre-extract: +.if !defined(BATCH) && !defined(PACKAGE_BUILDING) + @${SH} ${PKGDIR}/INSTALL foo PRE-INSTALL || ${FALSE} +.endif + post-configure: @${ECHO_MSG} ">> The c-client shared library will be named ${SHLIBNAME}" .if ${PAMAUTH} != "no" diff --git a/mail/imap-uw/pkg-install b/mail/imap-uw/pkg-install new file mode 100644 index 0000000..05200dc --- /dev/null +++ b/mail/imap-uw/pkg-install @@ -0,0 +1,20 @@ +#!/bin/sh +TTY=/dev/tty + +case $2 in + POST-INSTALL) + ;; + PRE-INSTALL) + if dialog --yesno "This port is not safe to use on a system which does not\nprovide shell access to users who can retrieve mail via IMAP.\nimapd contains buffer overflows which a user can exploit\nafter they have logged into imap to get access to their\naccount on the machine. If your imap users have shell access\nanyway, this is not a significant vulnerability.\n\nDo you wish to proceed with the build?" 13 65 < ${TTY} >${TTY} 2>&1; then + exit 0 + else + exit 1 + fi + ;; + *) + echo "Unexpected argument $2!" + exit 1 + ;; +esac +exit 0 + |