$NetBSD: patch-ak,v 1.5 2024/02/12 21:36:09 hans Exp $ --- libs/imap/mkimapdcert.in.orig 2013-11-11 02:56:33.000000000 +0000 +++ libs/imap/mkimapdcert.in @@ -8,7 +8,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 @@ -38,7 +44,7 @@ cleanup() { cd @certsdir@ -if test "@ssllib@" = "openssl" +if test "$ssllib" = "openssl" then cp /dev/null @certsdir@/imapd.pem chmod 600 @certsdir@/imapd.pem