summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-04-21 22:11:47 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-04-21 22:11:47 +0000
commit44de293c274fc36fc4e37c2b42071196052f439b (patch)
treed2f67cfd520de4d4486cf0e615827c8be62d099a
parentRemove plm@xs4all.nl as MAINTAINER; mail has been bouncing for 2 months. (diff)
Add an confirmation screen describing the known security holes in
imap.
Notes
Notes: svn path=/head/; revision=27868
-rw-r--r--mail/imap-uw/Makefile5
-rw-r--r--mail/imap-uw/pkg-install20
2 files changed, 25 insertions, 0 deletions
diff --git a/mail/imap-uw/Makefile b/mail/imap-uw/Makefile
index e534ffb9c213..3ce0ce60309b 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 000000000000..05200dccd71d
--- /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
+