summaryrefslogtreecommitdiff
path: root/mail/courier-imap/patches/patch-ak
blob: 3c2f627891ecf675eaf85e767b870019e7e690e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-ak,v 1.3 2008/02/19 18:45:14 jlam Exp $

--- imap/mkimapdcert.in.orig	2007-11-04 15:50:15.000000000 -0500
+++ imap/mkimapdcert.in
@@ -9,7 +9,13 @@
 # IMAP 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@/imapd.pem
 	chmod 600 @mydatadir@/imapd.pem