mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-28 06:26:12 -04:00
29 lines
705 B
Plaintext
29 lines
705 B
Plaintext
$NetBSD: patch-ag,v 1.4 2012/06/09 11:45:38 adam Exp $
|
|
|
|
--- courier/module.esmtp/mkesmtpdcert.in.orig 2007-11-04 16:17:03.000000000 -0500
|
|
+++ courier/module.esmtp/mkesmtpdcert.in
|
|
@@ -8,7 +8,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
|
|
@@ -31,7 +37,7 @@ cleanup() {
|
|
|
|
cd @mydatadir@
|
|
|
|
-if test "@ssllib@" = "openssl"
|
|
+if test "$ssllib" = "openssl"
|
|
then
|
|
cp /dev/null @mydatadir@/esmtpd.pem
|
|
chmod 600 @mydatadir@/esmtpd.pem
|