diff options
author | Sam James <sam@gentoo.org> | 2022-02-14 01:35:35 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-02-14 02:07:24 +0000 |
commit | d8d1806fa21741d550e0d4ad216cd464d387bac9 (patch) | |
tree | c59f9870ae3f051165d5905c277f0214f8744c58 /sys-apps/rng-tools/rng-tools-6.15.ebuild | |
parent | sci-libs/dealii: version bump to 9.3.3 (diff) | |
download | gentoo-d8d1806fa21741d550e0d4ad216cd464d387bac9.tar.gz gentoo-d8d1806fa21741d550e0d4ad216cd464d387bac9.tar.bz2 gentoo-d8d1806fa21741d550e0d4ad216cd464d387bac9.zip |
sys-apps/rng-tools: add 6.15
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/rng-tools/rng-tools-6.15.ebuild')
-rw-r--r-- | sys-apps/rng-tools/rng-tools-6.15.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/sys-apps/rng-tools/rng-tools-6.15.ebuild b/sys-apps/rng-tools/rng-tools-6.15.ebuild new file mode 100644 index 000000000000..fde3616954b5 --- /dev/null +++ b/sys-apps/rng-tools/rng-tools-6.15.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~x86" +IUSE="jitterentropy nistbeacon pkcs11 rtlsdr selinux" + +DEPEND=" + dev-libs/openssl:= + jitterentropy? ( app-crypt/jitterentropy:= ) + nistbeacon? ( + dev-libs/jansson:= + dev-libs/libxml2:2= + net-misc/curl[ssl] + ) + pkcs11? ( dev-libs/libp11:= ) + rtlsdr? ( net-wireless/rtl-sdr ) + elibc_musl? ( sys-libs/argp-standalone )" +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-rngd )" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable jitterentropy) + $(use_with nistbeacon) + $(use_with pkcs11) + $(use_with rtlsdr) + ) + + econf "${myeconfargs[@]}" +} + +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 +} |