pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/pkcs11-helper pkcs11-helper: update to 1.27



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fa003f061e40
branches:  trunk
changeset: 450054:fa003f061e40
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Apr 10 08:39:23 2021 +0000

description:
pkcs11-helper: update to 1.27

- fixes build with openssl 1.1
- add support for mbedtls as an option
- avoids regenerating autoconf bits

2020-11-17 - Version 1.27

* core: handle PIN expiration after C_Login as C_Login may take a while
* core: return explict success when plugin&play and no threading and no
  safefork, thanks to Tunnelblick

2020-01-21 - Version 1.26

* openssl: build with openssl ec disabled
* openssl: support RSA_NO_PADDING padding, thanks to Selva Nair
* core: reduce mutex lock scope of add/remove provider, thanks to Frank Morgner
* core: improve the fork fixup sequence

2018-08-16 - Version 1.25.1

 * core: build with threading disabled

2018-08-04 - Version 1.25

 * core: do not attempt to initialize provider with fork mode is not safe. Too
   many providers do not follow the PKCS#11 spec.

2018-06-15 - Version 1.24

 * build: support libressl-2.7

2018-06-02 - Version 1.23

 * build: cleanups.
 * openssl: rework support 1.1.

2017-02-12 - Version 1.22

 * spec: minor cleanups.

2017-01-06 - Version 1.21

 * mbedtls: fix missing logic if issur certificate, thanks to Steffan Karger

2016-12-08 - Version 1.20

 * polarssl: support polarssl-1.3, thanks to Steffan Karger.
 * certificate: ignore certificate object without CKA_ID.
 * openssl: fix memory leak, thanks to ASPj.
 * openssl: support 1.1 and libressl, thanks to Daiki Ueno.

2013-10-11 - Version 1.11

 * openssl: support generic pkey.
 * openssl: add dsa support.
 * openssl: add ecdsa support, thanks for Sanaullah for testing.

diffstat:

 security/pkcs11-helper/Makefile         |  20 +++++++-----------
 security/pkcs11-helper/buildlink3.mk    |  11 ++++++---
 security/pkcs11-helper/distinfo         |  11 ++++-----
 security/pkcs11-helper/options.mk       |  12 ++++++++--
 security/pkcs11-helper/patches/patch-aa |  34 ---------------------------------
 5 files changed, 29 insertions(+), 59 deletions(-)

diffs (161 lines):

diff -r 45fd7972d8ec -r fa003f061e40 security/pkcs11-helper/Makefile
--- a/security/pkcs11-helper/Makefile   Sat Apr 10 08:36:03 2021 +0000
+++ b/security/pkcs11-helper/Makefile   Sat Apr 10 08:39:23 2021 +0000
@@ -1,22 +1,20 @@
-# $NetBSD: Makefile,v 1.26 2021/04/09 06:54:58 wiz Exp $
+# $NetBSD: Makefile,v 1.27 2021/04/10 08:39:23 nia Exp $
 
-DISTNAME=      pkcs11-helper-1.10
-PKGREVISION=   14
+DISTNAME=      pkcs11-helper-1.27.0
 CATEGORIES=    security
-MASTER_SITES=  https://github.com/downloads/alonbl/pkcs11-helper/
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=OpenSC/}
+GITHUB_RELEASE=        ${DISTNAME:R}
 EXTRACT_SUFX=  .tar.bz2
 
 MAINTAINER=    gdt%NetBSD.org@localhost
-HOMEPAGE=      https://github.com/OpenSC/OpenSC/wiki/pkcs11-helper
-COMMENT=       Library that simplifies the interaction with PKCS\#11
+HOMEPAGE=      https://github.com/OpenSC/pkcs11-helper
+COMMENT=       Library that simplifies the interaction with PKCS11
 LICENSE=       modified-bsd OR gnu-gpl-v2
 
-BROKEN=                "Fails to build with OpenSSL 1.1"
-
 # Not documented, but relatively clear from warnings.
 USE_LANGUAGES=         c99
 USE_LIBTOOL=           yes
-USE_TOOLS+=            autoconf autoreconf gmake pkg-config
+USE_TOOLS+=            gmake pkg-config
 GNU_CONFIGURE=         yes
 
 CONFIGURE_ARGS+=       --enable-strict
@@ -24,8 +22,6 @@
 
 PKGCONFIG_OVERRIDE+=   lib/libpkcs11-helper-1.pc.in
 
-pre-configure:
-       cd ${WRKSRC} && autoreconf
-
 .include "options.mk"
+.include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 45fd7972d8ec -r fa003f061e40 security/pkcs11-helper/buildlink3.mk
--- a/security/pkcs11-helper/buildlink3.mk      Sat Apr 10 08:36:03 2021 +0000
+++ b/security/pkcs11-helper/buildlink3.mk      Sat Apr 10 08:39:23 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.19 2021/04/09 06:54:58 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.20 2021/04/10 08:39:23 nia Exp $
 
 BUILDLINK_TREE+=       pkcs11-helper
 
@@ -12,13 +12,16 @@
 pkgbase := pkcs11-helper
 .include "../../mk/pkg-build-options.mk"
 
-.if !empty(PKG_BUILD_OPTIONS.pkcs11-helper:Mopenssl)
+.if ${PKG_BUILD_OPTIONS.pkcs11-helper:Mopenssl}
 .  include "../../security/openssl/buildlink3.mk"
 .endif
-.if !empty(PKG_BUILD_OPTIONS.pkcs11-helper:Mgnutls)
+.if ${PKG_BUILD_OPTIONS.pkcs11-helper:Mgnutls}
 .  include "../../security/gnutls/buildlink3.mk"
 .endif
-.if !empty(PKG_BUILD_OPTIONS.pkcs11-helper:Mnss)
+.if ${PKG_BUILD_OPTIONS.pkcs11-helper:Mmbedtls}
+.  include "../../security/mbedtls/buildlink3.mk"
+.endif
+.if ${PKG_BUILD_OPTIONS.pkcs11-helper:Mnss}
 .  include "../../devel/nss/buildlink3.mk"
 .endif
 
diff -r 45fd7972d8ec -r fa003f061e40 security/pkcs11-helper/distinfo
--- a/security/pkcs11-helper/distinfo   Sat Apr 10 08:36:03 2021 +0000
+++ b/security/pkcs11-helper/distinfo   Sat Apr 10 08:39:23 2021 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.4 2015/11/04 01:18:01 agc Exp $
+$NetBSD: distinfo,v 1.5 2021/04/10 08:39:23 nia Exp $
 
-SHA1 (pkcs11-helper-1.10.tar.bz2) = 8c1e6dde1f42e9bf59da429c5035950042b540f4
-RMD160 (pkcs11-helper-1.10.tar.bz2) = c1f8aed0ea956cc6ac84147223f4bf03db5e06eb
-SHA512 (pkcs11-helper-1.10.tar.bz2) = 7d1614cec8586779fe6c1fb15f66f1e33281675d1274677730b91a3188f07ec5809f043a597be2cea40113545d336a67ccbb2f7368556dab7173e33a01455287
-Size (pkcs11-helper-1.10.tar.bz2) = 375741 bytes
-SHA1 (patch-aa) = 05294e1f777717a54dc63425edd5cb8c13a70978
+SHA1 (pkcs11-helper-1.27.0.tar.bz2) = 1f7046c25968004ef176c0aace90ca6488fbb987
+RMD160 (pkcs11-helper-1.27.0.tar.bz2) = f30d78341e140ebeb45a27289b0afd55b7127363
+SHA512 (pkcs11-helper-1.27.0.tar.bz2) = 5799342cb755dae8b7ba0880d652e9d4b4f1e52a74043015e1185e1e059326cb2689bb51957db98060ac2257dee34e2f047dcf3d52ad59fd49b91fedcfc5332b
+Size (pkcs11-helper-1.27.0.tar.bz2) = 422425 bytes
diff -r 45fd7972d8ec -r fa003f061e40 security/pkcs11-helper/options.mk
--- a/security/pkcs11-helper/options.mk Sat Apr 10 08:36:03 2021 +0000
+++ b/security/pkcs11-helper/options.mk Sat Apr 10 08:39:23 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.2 2011/04/28 07:20:46 adam Exp $
+# $NetBSD: options.mk,v 1.3 2021/04/10 08:39:23 nia Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.pkcs11-helper
-PKG_SUPPORTED_OPTIONS= openssl gnutls nss
+PKG_SUPPORTED_OPTIONS= openssl gnutls nss mbedtls
 PKG_SUGGESTED_OPTIONS= openssl
 
 .include "../../mk/bsd.options.mk"
@@ -9,7 +9,6 @@
 # crypto engines to use
 
 .if !empty(PKG_OPTIONS:Mopenssl)
-.include "../../security/openssl/buildlink3.mk"
 CONFIGURE_ARGS+=--enable-crypto-engine-openssl
 .else
 CONFIGURE_ARGS+=--disable-crypto-engine-openssl
@@ -22,6 +21,13 @@
 CONFIGURE_ARGS+=--disable-crypto-engine-gnutls
 .endif
 
+.if !empty(PKG_OPTIONS:Mmbedtls)
+.include "../../security/mbedtls/buildlink3.mk"
+CONFIGURE_ARGS+=--enable-crypto-engine-mbedtls
+.else
+CONFIGURE_ARGS+=--disable-crypto-engine-mbedtls
+.endif
+
 .if !empty(PKG_OPTIONS:Mnss)
 .include "../../devel/nss/buildlink3.mk"
 CONFIGURE_ARGS+=--enable-crypto-engine-nss
diff -r 45fd7972d8ec -r fa003f061e40 security/pkcs11-helper/patches/patch-aa
--- a/security/pkcs11-helper/patches/patch-aa   Sat Apr 10 08:36:03 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-$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"])



Home | Main Index | Thread Index | Old Index