780b055124
from courier-0.58.0. Changes from version 4.2.1 include: + Teach mkimapdcert and mkpop3dcert to generate certificaties and keys using either GNUTLS or OpenSSL tools. * Remove \Draft flag from messages moved to the trash folder upon expunge from the original folder. * Make clock-skew check more reliable.
28 lines
668 B
Text
28 lines
668 B
Text
$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
|