summaryrefslogtreecommitdiff
path: root/app-crypt
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/jitterentropy/Manifest1
-rw-r--r--app-crypt/jitterentropy/jitterentropy-3.6.3.ebuild48
-rw-r--r--app-crypt/mit-krb5/mit-krb5-1.21.3-r1.ebuild2
-rw-r--r--app-crypt/zulucrypt/files/zulucrypt-7.0.0-fix_linking.patch19
-rw-r--r--app-crypt/zulucrypt/zulucrypt-7.0.0.ebuild7
5 files changed, 75 insertions, 2 deletions
diff --git a/app-crypt/jitterentropy/Manifest b/app-crypt/jitterentropy/Manifest
index 089c5f033c00..c22e7d60a77f 100644
--- a/app-crypt/jitterentropy/Manifest
+++ b/app-crypt/jitterentropy/Manifest
@@ -1 +1,2 @@
DIST jitterentropy-3.6.0.tar.gz 96456 BLAKE2B 5e4fc185f16b59456a681e37f90de3b1e381bd6269bf72294822c1b8db11bbd5fe48640f2f38257c9b1238df38df7d95c2d1b9136b12364dde6e5cf3395c2e6e SHA512 8b234d0ac8115d004e8b1f41318e42d72324dfcbea0b3ba96499a6f9d740e13659c5bea032f77baad8d8ea3846fcd628665df573ab12b6111785f4bb5954834c
+DIST jitterentropy-3.6.3.tar.gz 102126 BLAKE2B 2a6dae38c0347340515d8b1df6824e365c130f4f3329448ce0ed13ab1ba5e118b0f09bbae5a1b498ede28246ff289f1eba0adc3377a878dafc049e5ef182b3d1 SHA512 b4ddac5ca68da67ae1f8743313471c2ebb0965e76c7990c10d0f1d4a94fb100756f1ada5607fe7268efd696b7eebee9035c48d4035fd9eda6483de002ce9e0ff
diff --git a/app-crypt/jitterentropy/jitterentropy-3.6.3.ebuild b/app-crypt/jitterentropy/jitterentropy-3.6.3.ebuild
new file mode 100644
index 000000000000..1fce9535c7fc
--- /dev/null
+++ b/app-crypt/jitterentropy/jitterentropy-3.6.3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Hardware RNG based on CPU timing jitter"
+HOMEPAGE="https://github.com/smuellerDD/jitterentropy-library"
+SRC_URI="https://github.com/smuellerDD/jitterentropy-library/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-library-${PV}"
+
+# For future reference, tests/raw-entropy/validation-{restart,runtime}
+# have a weird license clause where it says:
+# The licensee IS NOT granted permission to redistribute the source code or
+# derivatives of the source code, and the binaries compiled from the source
+# code or its derivatives to any third parties.
+# Do not package these two components!
+LICENSE="BSD"
+SLOT="0/3"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="static-libs"
+
+src_prepare() {
+ default
+
+ # Disable man page compression on install
+ sed -e '/\tgzip.*man/ d' -i Makefile || die
+}
+
+src_compile() {
+ # Upstream defines some of CFLAGS in the Makefile using '?='
+ # This allows those default flags to be overwritten by
+ # user-defined CFLAGS. Restore some of the defaults.
+ append-cflags '-fwrapv' '-fvisibility=hidden' '-fPIE'
+ # Optimizations are not allowed by upstream, which already
+ # overrides CFLAGS in Makefile. We need to handle CPPFLAGS here.
+ append-cppflags '-O0'
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake PREFIX="${EPREFIX}/usr" \
+ LIBDIR="$(get_libdir)" \
+ DESTDIR="${D}" \
+ INSTALL_STRIP="install" \
+ install $(usex static-libs install-static '')
+}
diff --git a/app-crypt/mit-krb5/mit-krb5-1.21.3-r1.ebuild b/app-crypt/mit-krb5/mit-krb5-1.21.3-r1.ebuild
index 2a6b2320ac9b..7446719e3814 100644
--- a/app-crypt/mit-krb5/mit-krb5-1.21.3-r1.ebuild
+++ b/app-crypt/mit-krb5/mit-krb5-1.21.3-r1.ebuild
@@ -16,7 +16,7 @@ S=${WORKDIR}/${MY_P}/src
LICENSE="openafs-krb5-a BSD MIT OPENLDAP BSD-2 HPND BSD-4 ISC RSA CC-BY-SA-3.0 || ( BSD-2 GPL-2+ )"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~mips ppc ~ppc64 ~riscv ~s390 ~sparc x86"
IUSE="cpu_flags_x86_aes doc +keyutils lmdb nls openldap +pkinit selinux test xinetd"
RESTRICT="!test? ( test )"
diff --git a/app-crypt/zulucrypt/files/zulucrypt-7.0.0-fix_linking.patch b/app-crypt/zulucrypt/files/zulucrypt-7.0.0-fix_linking.patch
new file mode 100644
index 000000000000..0eba7da980ff
--- /dev/null
+++ b/app-crypt/zulucrypt/files/zulucrypt-7.0.0-fix_linking.patch
@@ -0,0 +1,19 @@
+PR pending https://github.com/mhogomchungu/zuluCrypt/pull/241.patch
+remove -pie for shared-libs zuluCrypt and zuluCrypt-exe
+see https://bugs.gentoo.org/961174
+--- a/zuluCrypt-cli/CMakeLists.txt
++++ b/zuluCrypt-cli/CMakeLists.txt
+@@ -132,11 +132,11 @@ endif()
+ TARGET_LINK_LIBRARIES( zuluCrypt String StringList Process ${cryptsetup_lib} ${blkid} ${uuid_lib} ${devmapper_lib} -lgcrypt -lzuluplay )
+ endif()
+
+- set_target_properties( zuluCrypt PROPERTIES LINK_FLAGS "-pie -Wl,-z,relro -Wl,-z,now" )
++ set_target_properties( zuluCrypt PROPERTIES LINK_FLAGS "-Wl,-z,relro -Wl,-z,now" )
+
+ TARGET_LINK_LIBRARIES( zuluCrypt-exe zuluCrypt zuluCryptPluginManager )
+
+- set_target_properties( zuluCrypt-exe PROPERTIES LINK_FLAGS "-pie -Wl,-z,relro -Wl,-z,now" )
++ set_target_properties( zuluCrypt-exe PROPERTIES LINK_FLAGS "-Wl,-z,relro -Wl,-z,now" )
+
+ #TARGET_LINK_LIBRARIES( zuluCrypt-static String StringList Process )
+ #TARGET_LINK_LIBRARIES( zuluCrypt-exe-static zuluCrypt-static zuluCryptPluginManager-static )
diff --git a/app-crypt/zulucrypt/zulucrypt-7.0.0.ebuild b/app-crypt/zulucrypt/zulucrypt-7.0.0.ebuild
index 46db21703bce..d065cb29d376 100644
--- a/app-crypt/zulucrypt/zulucrypt-7.0.0.ebuild
+++ b/app-crypt/zulucrypt/zulucrypt-7.0.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -29,6 +29,11 @@ RDEPEND="${DEPEND}
udev? ( virtual/udev )"
BDEPEND="virtual/pkgconfig"
+PATCHES=(
+ # PR pending https://github.com/mhogomchungu/zuluCrypt/pull/241.patch
+ "${FILESDIR}"/${PN}-7.0.0-fix_linking.patch
+)
+
src_configure() {
local mycmakeargs=(
-DBUILD_WITH_QT6=ON