28 lines
665 B
Text
28 lines
665 B
Text
$NetBSD: patch-ak,v 1.4 2010/11/10 10:00:06 adam Exp $
|
|
|
|
--- imap/mkimapdcert.in.orig 2010-06-29 01:39:59.000000000 +0000
|
|
+++ 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 @certsdir@
|
|
|
|
-if test "@ssllib@" = "openssl"
|
|
+if test "$ssllib" = "openssl"
|
|
then
|
|
cp /dev/null @certsdir@/imapd.pem
|
|
chmod 600 @certsdir@/imapd.pem
|