summaryrefslogtreecommitdiff
path: root/mail/courier-imap/patches/patch-ao
diff options
context:
space:
mode:
Diffstat (limited to 'mail/courier-imap/patches/patch-ao')
-rw-r--r--mail/courier-imap/patches/patch-ao28
1 files changed, 28 insertions, 0 deletions
diff --git a/mail/courier-imap/patches/patch-ao b/mail/courier-imap/patches/patch-ao
new file mode 100644
index 00000000000..4eae4c7716a
--- /dev/null
+++ b/mail/courier-imap/patches/patch-ao
@@ -0,0 +1,28 @@
+$NetBSD: patch-ao,v 1.1 2008/02/19 18:45:14 jlam Exp $
+
+--- imap/mkpop3dcert.in.orig 2007-11-04 15:50:15.000000000 -0500
++++ imap/mkpop3dcert.in
+@@ -9,7 +9,13 @@
+ # POP3 over SSL. Normally this script would get called by an automatic
+ # package installation routine.
+
+-if test "@ssllib@" = "openssl"
++case "$1" in
++gnutls) ssllib="gnutls" ;;
++openssl) ssllib="openssl" ;;
++*) ssllib="@ssllib@" ;;
++esac
++
++if test "$ssllib" = "openssl"
+ then
+ test -x @OPENSSL@ || exit 0
+ else
+@@ -36,7 +42,7 @@ cleanup() {
+
+ cd @mydatadir@
+
+-if test "@ssllib@" = "openssl"
++if test "$ssllib" = "openssl"
+ then
+ cp /dev/null @mydatadir@/pop3d.pem
+ chmod 600 @mydatadir@/pop3d.pem