diff options
Diffstat (limited to 'dev-libs/softhsm')
-rw-r--r-- | dev-libs/softhsm/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/softhsm/metadata.xml | 3 | ||||
-rw-r--r-- | dev-libs/softhsm/softhsm-2.6.1-r3.ebuild | 61 |
3 files changed, 67 insertions, 1 deletions
diff --git a/dev-libs/softhsm/Manifest b/dev-libs/softhsm/Manifest index a30c37f39234..9c4162de27c6 100644 --- a/dev-libs/softhsm/Manifest +++ b/dev-libs/softhsm/Manifest @@ -1,3 +1,5 @@ +DIST softhsm-2.6.1-patches.tar.xz 7460 BLAKE2B e9c5496ff1a79121ab62e77ab6541a1678d4254395622aaf76c4b8fdcabbd6144caba5c171e28744ae181169826d2523c9ddf73859ca9ca6bb7a5fdf36a8ea8e SHA512 35330e969d7de532f3b6a0821dc5faa40726dcdd9c62f5e78d05cfec1c35057e183dba0ed638388f3d0ad1bd536b4fbb3cc1ff060e133109cee9681c8ac48052 DIST softhsm-2.6.1.tar.gz 1066766 BLAKE2B 0295c5f40235c8abd8879a8c6f7fbe8e8d686ee03355006e9c90c0f2f7135eaf6794a3d39febda1b1ed6e5d48dcacb1e14dae85fb0efb884d0d719bfc6624b92 SHA512 e77137096ff2ac2f5396971efbaa2007188855a8f723cb511182c6c5e5a353b3f98297442758e77a18c3a378c0ca3fce8abe090977f0f4f8d526de204fd523fb EBUILD softhsm-2.6.1-r2.ebuild 994 BLAKE2B 3ddc801e791ae90e198c60c2fa7db906be4b32d55157e9d9b63d7d162e1bf3071eabdb9a9a84f5713b5c44868909f623009dee67e4ea0bee6e7f396c479b978a SHA512 863e8bf2fe3beffad592ec8137c20cc29dda78f46a8713470f626aaa19974ce9948ab5d5c3af70959463b59cd0ad8ea2c34393e2f601c3c9443469ac61316099 -MISC metadata.xml 293 BLAKE2B 160341ef0b3359ef0db3bd7c78fc0fc0cb443d46c3e9d41fbb6b517c86a3f7afb7afee87d1afcf45b65b2e94b89c4b35e5a74dcb6ac4533be8c843d2190f228b SHA512 6994691430cb2953ff999558029f1e210d3b6f335c3637eb3d96e31310d706ca066b9cc7d94859a2a3559c8e9791b4d260decf240bb73401da9b19851b711bec +EBUILD softhsm-2.6.1-r3.ebuild 1468 BLAKE2B 16af6643cdd4be652ef664ff826505eb147277eebb0dbfadd57e07d4b7d192a70eda7df0d998036f41e6b1f54314d1a3b6c4b8e5d9466dde96a1c29fdc865762 SHA512 1b4d3bd86103ba8769a8eb0d2df23d7dd0b139217baeed685ef1b36621d601a8bc33faa5597bb4ffeef28944d5b9c26060c9776226424f0ad0a55dba3ce1954d +MISC metadata.xml 378 BLAKE2B 409f78dda08431fc3f1a48eade1c831716a59ab0bf43136b5a07003281404d075b9f0510010aa7d644c43673e8193f9755345a9c97a0da2e6ee9eac2be926562 SHA512 c0b5d304981ce1189969401bf609131b23977276977beaf61ab36d94417ee0f53d08baa82a1ba22b271d985d2357ee92eac41260c8395ef73b64e09a36706673 diff --git a/dev-libs/softhsm/metadata.xml b/dev-libs/softhsm/metadata.xml index 73e6a5df718a..61d4cdeef207 100644 --- a/dev-libs/softhsm/metadata.xml +++ b/dev-libs/softhsm/metadata.xml @@ -6,4 +6,7 @@ <flag name="gost">Enable gost algorithm</flag> <flag name="migration-tool">Build db migration tool</flag> </use> + <upstream> + <remote-id type="github">opendnssec/SoftHSMv2</remote-id> + </upstream> </pkgmetadata> diff --git a/dev-libs/softhsm/softhsm-2.6.1-r3.ebuild b/dev-libs/softhsm/softhsm-2.6.1-r3.ebuild new file mode 100644 index 000000000000..4e6bb2768abb --- /dev/null +++ b/dev-libs/softhsm/softhsm-2.6.1-r3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +DESCRIPTION="A software PKCS#11 implementation" +HOMEPAGE="https://www.opendnssec.org/" +SRC_URI="https://www.opendnssec.org/files/source/${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-2.6.1-patches.tar.xz" + +LICENSE="BSD" +SLOT="2" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" +IUSE="gost migration-tool test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + migration-tool? ( dev-db/sqlite:3= ) + dev-libs/openssl:= + !~dev-libs/softhsm-2.0.0:0 +" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/gcc:=[cxx] + virtual/pkgconfig + test? ( dev-util/cppunit ) +" + +DOCS=( NEWS README.md ) + +PATCHES=( + "${WORKDIR}"/${PN}-2.6.1-patches/${PN}-2.6.1-onexit.patch + "${WORKDIR}"/${PN}-2.6.1-patches/${PN}-2.6.1-openssl3-tests.patch + "${WORKDIR}"/${PN}-2.6.1-patches/${PN}-2.6.1-uninitialised.patch + "${WORKDIR}"/${PN}-2.6.1-patches/${PN}-2.6.1-prevent-global-deleted-objects-access.patch +) + +src_configure() { + # Test failures with LTO (bug #867637) + append-flags -fno-strict-aliasing + filter-lto + + econf \ + --with-crypto-backend=openssl \ + --disable-p11-kit \ + --localstatedir="${EPREFIX}/var" \ + --enable-ecc \ + $(use_enable gost) \ + $(use_with migration-tool migrate) +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die + + keepdir /var/lib/softhsm/tokens +} |