diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-29 12:00:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-29 12:00:47 +0100 |
commit | adcf4f8116a4a850dae301fb4dbcd7b71cb35975 (patch) | |
tree | 41af0dd08b04c7d619cdfed205b03ff2cc201b26 /sys-apps/rng-tools | |
parent | 7166f3a0a0b7886d340010458d0b130013cb9989 (diff) |
gentoo auto-resync : 29:08:2024 - 12:00:47
Diffstat (limited to 'sys-apps/rng-tools')
-rw-r--r-- | sys-apps/rng-tools/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/rng-tools/rng-tools-6.17.ebuild | 86 |
2 files changed, 88 insertions, 0 deletions
diff --git a/sys-apps/rng-tools/Manifest b/sys-apps/rng-tools/Manifest index d4ae53354cc8..c2a7c7e5cc3d 100644 --- a/sys-apps/rng-tools/Manifest +++ b/sys-apps/rng-tools/Manifest @@ -2,5 +2,7 @@ AUX rng-tools-6.16-c99.patch 854 BLAKE2B 5d533c9b84a16f7c68b9f084779e2de2930aac3 AUX rngd-confd-6.11 2321 BLAKE2B 6cdf4cf7d61e33415df1c41933d1c38c398fd96370cb4c4e257f60479a3e69428d3735802d480e1a25714854de9bc6ed997856c1c4dbbf289b7a014026522aea SHA512 32c52316ebdffef7ec07dd97b45f124c2ecced3d0f49d75ad8d226f6eff478739dab6b008e0b1f4e55bc81bf615feee9860c45f35f0994c7c65d4d439501621f AUX rngd-initd-6.11 1789 BLAKE2B 317c6d3d1b7ad10e137c6b5b615354ba7a6deb256da5ef9d75253a7f84c265536db1b70b290e0029cfaf40e565c8b280e3b1ec79ab93c8f659c969b5dedc7dab SHA512 60bf2c2d4984a1db8fcfaeaebd5249ed6d428c9ccb8412813ce97e146f3143efae23058475ac8baa1c2e88b00012fc119411bcfc14b04a0128696ee69641d98d DIST rng-tools-6.16.tar.gz 67401 BLAKE2B ab1a84c9a298e71ea5cdc1e91004ac069199a0128ee9701b1b3e24b6c705c63a642ab3db260a2c6c910c185e8fc75d5775caa3b7c370f102c75fac496e9bca17 SHA512 f4155dca8a54f47227f49ccf5f8453ddd50bd91a37b3b1659b5ad02278ed119028cee42918dd48552c79e19f2e2477277a41afa8e422395b2778b17fab09484d +DIST rng-tools-6.17.tar.gz 69979 BLAKE2B 4e5a654369ef21ffe19c50fc60bb0242d48ee91c9ea839cde18379aba01fc3648019c610526a51d75094578e25f94a4aa23566bb2dc723b2ff447b9800bfc03f SHA512 fe874e578c0d5916c271ed5a96b87ed8bb5ce4238cc158471d390ca32864959206b0657dd5910ebb0730a3987f3bf9656690759f5a910d1c4a5891a27678e60d EBUILD rng-tools-6.16-r1.ebuild 1961 BLAKE2B e49ba175246021c0346c7cc2f4dcd59b3e96180235b2ff9b7b4902be029b57e07145a152ef5bcbc8de51f1a5a2cdb164d0da369ef06dae9c7224ab74d0991b1f SHA512 267be54518e8f39bb2726cb7cfb855bb9118a2d87e354485f29d4174c9eeaabc45a5d81b591e894565f1b76423c9354ecf911d609b5e4ac0ab910ed7f0793597 +EBUILD rng-tools-6.17.ebuild 1918 BLAKE2B 30155e013e6b14d775f8524ba710e563607b8b3041726dd53ec978f30990f1a0b4ceca2e2ddea159efeee6ae5ce3e43e8a607db8ffe2aea2cf6cfc51184d28de SHA512 22507917073a8b33c570c32a9c83fa341db1e3703c13efe2a342e252363389cefdc8c6e8a9d52a8426535cf9e4b28666e17a47036a578ffe97e087228f6e26b8 MISC metadata.xml 894 BLAKE2B 8a337d1832bc0c80ae7869fcd8b390594beb17514f792ddeee1e3544e76f99b70022ff63c6766befc79a1acc4f0f48651d7b52ac4a3995fd4bc4fc81916ecabd SHA512 c678013dd0a4882c1be0b7d4784910e52ec13118237f9f488fb53ce363e8d51c7a3ddbf50feca00f1c7b99a604754201687f512947b5aca64eefa331d3c2532f diff --git a/sys-apps/rng-tools/rng-tools-6.17.ebuild b/sys-apps/rng-tools/rng-tools-6.17.ebuild new file mode 100644 index 000000000000..d09d31b02b80 --- /dev/null +++ b/sys-apps/rng-tools/rng-tools-6.17.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools readme.gentoo-r1 systemd + +DESCRIPTION="Daemon to use hardware random number generators" +HOMEPAGE="https://github.com/nhorman/rng-tools" +SRC_URI="https://github.com/nhorman/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="jitterentropy nistbeacon pkcs11 qrypt rtlsdr selinux test" +REQUIRED_USE="test? ( jitterentropy )" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-libs/openssl:= + sys-libs/libcap + jitterentropy? ( app-crypt/jitterentropy:= ) + nistbeacon? ( + dev-libs/jansson:= + dev-libs/libxml2:2= + net-misc/curl[ssl] + ) + pkcs11? ( dev-libs/libp11:= ) + qrypt? ( + dev-libs/jansson:= + net-misc/curl[ssl] + ) + rtlsdr? ( net-wireless/rtl-sdr ) + elibc_musl? ( sys-libs/argp-standalone ) +" +RDEPEND=" + ${DEPEND} + selinux? ( sec-policy/selinux-rngd ) +" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + sed -i "s/sleep 30/sleep 120/g" tests/rngtestjitter.sh || die + default + + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable jitterentropy) + $(use_with nistbeacon) + $(use_with pkcs11) + $(use_with rtlsdr) + $(use_with qrypt) + ) + + econf "${myeconfargs[@]}" +} + +src_test() { + RNGD_JITTER_TIMEOUT=90 default +} + +src_install() { + default + + newinitd "${FILESDIR}"/rngd-initd-6.11 rngd + newconfd "${FILESDIR}"/rngd-confd-6.11 rngd + systemd_dounit rngd.service + + if use pkcs11; then + local DISABLE_AUTOFORMATTING=1 + local DOC_CONTENTS=" +The PKCS11 entropy source may require extra packages (e.g. 'dev-libs/opensc') +to support various smartcard readers. Make sure 'PKCS11_OPTIONS' in: + '${EPREFIX}/etc/conf.d/rngd' +reflects the correct PKCS11 engine path to be used by rngd. +" + readme.gentoo_create_doc + fi +} + +pkg_postinst() { + use pkcs11 && readme.gentoo_print_elog +} |