blob: 042c2469c3c7496001a29bc6e4c4ce410e71bcc5 (
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-ag,v 1.3 2008/02/19 18:45:24 jlam Exp $
--- courier/module.esmtp/mkesmtpdcert.in.orig 2007-11-04 16:17:03.000000000 -0500
+++ courier/module.esmtp/mkesmtpdcert.in
@@ -9,7 +9,13 @@
# ESMTP STARTTLS. 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
@@ -32,7 +38,7 @@ cleanup() {
cd @mydatadir@
-if test "@ssllib@" = "openssl"
+if test "$ssllib" = "openssl"
then
cp /dev/null @mydatadir@/esmtpd.pem
chmod 600 @mydatadir@/esmtpd.pem
|