summaryrefslogtreecommitdiff
path: root/dev-libs/pkcs11-helper
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/pkcs11-helper')
-rw-r--r--dev-libs/pkcs11-helper/Manifest3
-rw-r--r--dev-libs/pkcs11-helper/files/pkcs11-helper-1.27.0-nss.patch14
-rw-r--r--dev-libs/pkcs11-helper/pkcs11-helper-1.27.0.ebuild47
3 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/pkcs11-helper/Manifest b/dev-libs/pkcs11-helper/Manifest
index 501f98d2d730..6fba5eb4bc69 100644
--- a/dev-libs/pkcs11-helper/Manifest
+++ b/dev-libs/pkcs11-helper/Manifest
@@ -1,4 +1,7 @@
AUX pkcs11-helper-1.25.1-build.patch 932 BLAKE2B 792082e48c6566c47ec4b043ccd7762d2c94d8c6f6d7fe8233f91e8f17c2361cb1786644ad7e77f8f0c398cc8d86167f675257a9dbf62a40bd56f1e7c9cb6d40 SHA512 81494d947f62b9cf4aa45fe35a88afb0044a5b36fa89e7f175cb9ab4e1d17ffc6afc81a8da17ab18f087b47894460d0d8c26ca8024c98a73a4bc2a14bbf00346
+AUX pkcs11-helper-1.27.0-nss.patch 614 BLAKE2B 68db71f025aebd620d278fa3847b1ead5645220c6a1b0f16f98b2e9f22ca6153b133ab5d8c236a24bbc6527a4e2ae084ea58a1c3c9cce7feb20a32861859a56b SHA512 9e6787822d003e0f6d959ce02308e23231dfb75e711cbf1887684e8dd479f10da5d123e47ed48ace84d6d8eb04754f0729c3847080074f34a49a4c484ad1a618
DIST pkcs11-helper-1.25.1.tar.bz2 425719 BLAKE2B 527b387a981dbfd855d4eb0024dd7625388cda27c3a0e993b49315e311d46f1735afc8d436361ac1b75a7b3d7f1f712d7dda8eb546ab7adc3dc046bc85fd4c5a SHA512 a5954f4d07a166ed7e711b7a0aa84b454b25774b2fb187ca65bba439f59539c8074bda8ddd5f579d635fe0dc27d8415d8bd22707dc91327bbe05ce03e277b499
+DIST pkcs11-helper-1.27.0.tar.bz2 422425 BLAKE2B a9fd7ef04dce1abbae57b09a12b4be560465ae0cf2910443332882967d00b6380c62944820aa9580e101459d1c35edaae68cd7abbafa308a8b152921ac32f04c SHA512 5799342cb755dae8b7ba0880d652e9d4b4f1e52a74043015e1185e1e059326cb2689bb51957db98060ac2257dee34e2f047dcf3d52ad59fd49b91fedcfc5332b
EBUILD pkcs11-helper-1.25.1-r1.ebuild 1006 BLAKE2B d1eb0f02e05bd907a02026f5ad13203e16a1aa982d89f4007bbe7f868af5d2247d5a3548a75b96ab132ed5408c897ed4efbe5810665edb1759fd6841e8d54fb7 SHA512 334b7ca21009081a71d987961f8373140961d5f3bb826e6142f2d795c48fccfbba8a3f3ee027cd649d4fa48aac5ab14f96dbff3028cafe634ee7889298be5c7b
+EBUILD pkcs11-helper-1.27.0.ebuild 1099 BLAKE2B 8609d785830da6d3769d80a22dcffda05da883a28a6507889b1b83f6e6dc27fbd8c6c3d2457c722bb05f5735348be355560f312240e16c5328dcad20bb5e07e0 SHA512 6bb8d6d64015188938840082a40f8361cbdf66d7cfbb06413e9097e2121263489650275f09f86f29db27a35c2ab7a34ee5804234650a5b07eafbd5d86855f4a4
MISC metadata.xml 434 BLAKE2B 0f814ae964f39284cc9ca255744de6eb6cb9b268d9710e6f820562691f482dfde9ec1c3caa547ec65350a883a528a0c8858d3bb4225fa7a0f43225647652db96 SHA512 f38336f8c6e9716b560fe2ee16bf2fe0a670f757981651ece38f82a8028ad457dab6d99fac2bdb76a7f69cb807e3885b6933a82e5c82b387b9d822ce7ff518da
diff --git a/dev-libs/pkcs11-helper/files/pkcs11-helper-1.27.0-nss.patch b/dev-libs/pkcs11-helper/files/pkcs11-helper-1.27.0-nss.patch
new file mode 100644
index 000000000000..a283121b8119
--- /dev/null
+++ b/dev-libs/pkcs11-helper/files/pkcs11-helper-1.27.0-nss.patch
@@ -0,0 +1,14 @@
+--- pkcs11-helper-1.27.0/include/pkcs11-helper-1.0/pkcs11.h.orig 2020-11-17 19:38:56.000000000 +0100
++++ pkcs11-helper-1.27.0/include/pkcs11-helper-1.0/pkcs11.h 2021-06-12 20:53:07.127234688 +0200
+@@ -1262,6 +1262,11 @@
+
+ #define NULL_PTR NULL
+
++typedef CK_RV (*CK_NSS_GetFIPSStatus)(CK_SESSION_HANDLE hSession,
++ CK_OBJECT_HANDLE hObject,
++ CK_ULONG ulOperationType,
++ CK_ULONG *pulFIPSStatus);
++
+ /* Delete the helper macros defined at the top of the file. */
+ #undef ck_flags_t
+ #undef ck_version
diff --git a/dev-libs/pkcs11-helper/pkcs11-helper-1.27.0.ebuild b/dev-libs/pkcs11-helper/pkcs11-helper-1.27.0.ebuild
new file mode 100644
index 000000000000..83f7f2e9921c
--- /dev/null
+++ b/dev-libs/pkcs11-helper/pkcs11-helper-1.27.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="PKCS#11 helper library"
+HOMEPAGE="https://github.com/OpenSC/pkcs11-helper"
+
+if [[ $(ver_cut 3) -eq 0 ]]; then
+ MY_PV=$(ver_cut 1-2)
+else
+ MY_PV=${PV}
+fi
+
+SRC_URI="https://github.com/OpenSC/${PN}/releases/download/${PN}-${MY_PV}/${P}.tar.bz2"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="bindist doc gnutls nss static-libs"
+
+RDEPEND="
+ >=dev-libs/openssl-0.9.7:0=[bindist(-)=]
+ gnutls? ( >=net-libs/gnutls-1.4.4 )
+ nss? ( dev-libs/nss )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig
+ doc? ( >=app-doc/doxygen-1.4.7 )"
+
+PATCHES=(
+ "${FILESDIR}/${P}-nss.patch"
+)
+
+src_configure() {
+ econf \
+ --disable-crypto-engine-polarssl \
+ --disable-crypto-engine-mbedtls \
+ $(use_enable doc) \
+ $(use_enable gnutls crypto-engine-gnutls) \
+ $(use_enable nss crypto-engine-nss) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}