summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/Makefile3
-rw-r--r--security/pkcs11-helper/patches/patch-aa34
2 files changed, 36 insertions, 1 deletions
diff --git a/security/Makefile b/security/Makefile
index bdc653eaa10..57cf013d437 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.358 2009/09/13 19:58:14 manu Exp $
+# $NetBSD: Makefile,v 1.359 2009/09/15 20:00:47 spz Exp $
#
COMMENT= Security tools
@@ -236,6 +236,7 @@ SUBDIR+= php-mhash
SUBDIR+= php-suhosin
SUBDIR+= pinentry
SUBDIR+= pinepgp
+SUBDIR+= pkcs11-helper
SUBDIR+= pks
SUBDIR+= policykit
SUBDIR+= policykit-gnome
diff --git a/security/pkcs11-helper/patches/patch-aa b/security/pkcs11-helper/patches/patch-aa
new file mode 100644
index 00000000000..062ffd39aa6
--- /dev/null
+++ b/security/pkcs11-helper/patches/patch-aa
@@ -0,0 +1,34 @@
+$NetBSD: patch-aa,v 1.1 2009/09/15 20:00:47 spz Exp $
+
+--- configure.ac.orig 2008-07-31 17:44:03.000000000 +0200
++++ configure.ac 2009-01-27 15:09:26.000000000 +0100
+@@ -281,10 +281,25 @@
+ AC_CHECK_LIB([pthread], [pthread_create])
+ fi
+
+-PKG_CHECK_MODULES([OPENSSL], [libcrypto >= 0.9.7], [have_openssl="yes"], [have_openssl="no"])
+-if test "${have_openssl}" = "no"; then
+- PKG_CHECK_MODULES([OPENSSL], [openssl >= 0.9.7], [have_openssl="yes"], [have_openssl="no"])
+-fi
++PKG_CHECK_MODULES(
++ [OPENSSL],
++ [libcrypto >= 0.9.7],
++ [have_openssl="yes"],
++ [PKG_CHECK_MODULES(
++ [OPENSSL],
++ [openssl >= 0.9.7],
++ [have_openssl="yes"],
++ [AC_CHECK_LIB(
++ [crypto],
++ [RSA_version],
++ [
++ have_openssl="yes"
++ OPENSSL_LIBS="-lcrypto"
++ ],
++ [have_openssl="no"]
++ )]
++ )]
++)
+
+ PKG_CHECK_MODULES([GNUTLS], [gnutls >= 1.4], [have_gnutls="yes"], [have_gnutls="no"])
+ PKG_CHECK_MODULES([NSS], [nss >= 3.11], [have_nss="yes"], [have_nss="no"])