* [gentoo-commits] repo/gentoo:master commit in: app-crypt/yubihsm-shell/
@ 2023-04-07 14:07 Jason A. Donenfeld
0 siblings, 0 replies; 2+ messages in thread
From: Jason A. Donenfeld @ 2023-04-07 14:07 UTC (permalink / raw
To: gentoo-commits
commit: 451da421988530af29720f14e51738871b576f4c
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 7 13:39:06 2023 +0000
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Fri Apr 7 14:07:23 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=451da421
app-crypt/yubihsm-shell: new package, add 2.4.0
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org>
app-crypt/yubihsm-shell/Manifest | 1 +
app-crypt/yubihsm-shell/metadata.xml | 11 +++++++++
app-crypt/yubihsm-shell/yubihsm-shell-2.4.0.ebuild | 27 ++++++++++++++++++++++
3 files changed, 39 insertions(+)
diff --git a/app-crypt/yubihsm-shell/Manifest b/app-crypt/yubihsm-shell/Manifest
new file mode 100644
index 000000000000..06ca5892b1cc
--- /dev/null
+++ b/app-crypt/yubihsm-shell/Manifest
@@ -0,0 +1 @@
+DIST yubihsm-shell-2.4.0.tar.gz 334956 BLAKE2B 93a86baa1e463aa5200e31e9cc657642f37e05ec6e9897bb35f0b518df83b38c69e365766170d76aeeae6da357f3c2fce736c03665861c7ed4f2b56805a7eb3a SHA512 2b08e6e8932ff3bc12d1233d88147264a9875ce145290e29fb6b8f25eeb8e502afff9e7d02714a50454b85b0f01b09c0321d830a483d6b4f7afb962adce882d5
diff --git a/app-crypt/yubihsm-shell/metadata.xml b/app-crypt/yubihsm-shell/metadata.xml
new file mode 100644
index 000000000000..2914927d575f
--- /dev/null
+++ b/app-crypt/yubihsm-shell/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zx2c4@gentoo.org</email>
+ <name>Jason A. Donenfeld</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Yubico/yubihsm-shell</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-crypt/yubihsm-shell/yubihsm-shell-2.4.0.ebuild b/app-crypt/yubihsm-shell/yubihsm-shell-2.4.0.ebuild
new file mode 100644
index 000000000000..6ff4ec262044
--- /dev/null
+++ b/app-crypt/yubihsm-shell/yubihsm-shell-2.4.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Components used to interact with the YubiHSM 2"
+HOMEPAGE="https://developers.yubico.com/yubihsm-shell/"
+SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ dev-libs/openssl:=
+ net-misc/curl
+ dev-libs/libedit
+ virtual/libusb:1
+ sys-apps/pcsc-lite
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-util/gengetopt
+ virtual/pkgconfig
+"
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-crypt/yubihsm-shell/
@ 2025-05-11 0:35 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2025-05-11 0:35 UTC (permalink / raw
To: gentoo-commits
commit: 875bcd2e2e7d8738018303d6b2a71289fc782f58
Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Fri May 9 16:00:45 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 11 00:29:34 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=875bcd2e
app-crypt/yubihsm-shell: hook up atleast some tests
Most tests require a running connector, but any test is a better than no
tests. So lets leave the rest to a TODO.
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42005
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-crypt/yubihsm-shell/yubihsm-shell-2.6.0.ebuild | 45 +++++++++++++++++++++-
1 file changed, 44 insertions(+), 1 deletion(-)
diff --git a/app-crypt/yubihsm-shell/yubihsm-shell-2.6.0.ebuild b/app-crypt/yubihsm-shell/yubihsm-shell-2.6.0.ebuild
index e3ab00ef57ef..7ea1e4b8c1fc 100644
--- a/app-crypt/yubihsm-shell/yubihsm-shell-2.6.0.ebuild
+++ b/app-crypt/yubihsm-shell/yubihsm-shell-2.6.0.ebuild
@@ -12,7 +12,6 @@ SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
-RESTRICT="test"
DEPEND="
dev-libs/openssl:=
@@ -41,3 +40,47 @@ src_configure() {
cmake_src_configure
}
+
+src_test() {
+ # TODO: hook up more tests. Requires unpackaged dependencies and hosting a connector.
+ # See https://github.com/Yubico/yubihsm-shell/issues/381 and the github workflow.
+ local CMAKE_SKIP_TESTS=(
+ # main: Assertion `yrc == YHR_SUCCESS' failed.
+ attest
+ generate_ec
+ generate_hmac
+ import_authkey
+ import_rsa
+ info
+ wrap
+ wrap_data
+ yubico_otp
+ echo
+ asym_auth
+ import_ec
+ generate_rsa
+ logs
+ ssh
+ decrypt_rsa
+ decrypt_ec
+ import_ed
+ change_authkey
+ encrypt_aes
+ # Unpackaged
+ # https://github.com/YubicoLabs/pkcs11test
+ # line 42: pkcs11test: command not found
+ pkcs11test
+ # open_session: Assertion `rv == CKR_OK' failed.
+ aes_encrypt_test
+ ecdh_derive_test
+ ecdh_sp800_test
+ rsa_enc_test
+ pss_sign_test
+ asym_wrap_test
+ # Requires unpackaged ghostunnel to host connector locally
+ # Failed connecting 'http://localhost:12345': Unable to find a suitable connector
+ bash_tests
+ wrapped_tests
+ )
+ cmake_src_test
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-11 0:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-11 0:35 [gentoo-commits] repo/gentoo:master commit in: app-crypt/yubihsm-shell/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2023-04-07 14:07 Jason A. Donenfeld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox