mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-07 05:57:07 -08:00
sys-apps/rng-tools: add 6.16
Closes: https://bugs.gentoo.org/872536 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST rng-tools-6.15.tar.gz 60731 BLAKE2B 693056ca600448d07413661498ca33893e99648c6344e02f2f0babb014878b9452e024904f5b58efc6cfe72201e582a6b458664d11160bb1b0dbdc28ba6325c5 SHA512 44146d891c4f46675a031f2e5ff7755cfaf1abe3252f241c16e042d3bb5e988b77ff840382caca49d8cb9854af1e49369398a506de5e819167739ad33b58d180
|
||||
DIST rng-tools-6.16.tar.gz 67401 BLAKE2B ab1a84c9a298e71ea5cdc1e91004ac069199a0128ee9701b1b3e24b6c705c63a642ab3db260a2c6c910c185e8fc75d5775caa3b7c370f102c75fac496e9bca17 SHA512 f4155dca8a54f47227f49ccf5f8453ddd50bd91a37b3b1659b5ad02278ed119028cee42918dd48552c79e19f2e2477277a41afa8e422395b2778b17fab09484d
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
<flag name="pkcs11">
|
||||
Enable PKCS11 entropy support
|
||||
</flag>
|
||||
<flag name="qrypt">
|
||||
Enable qrypt beacon entropy support
|
||||
</flag>
|
||||
<flag name="rtlsdr">
|
||||
Enable atmospheric-static entropy support with <pkg>net-wireless/rtl-sdr</pkg>
|
||||
</flag>
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2023 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"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~x86"
|
||||
IUSE="jitterentropy nistbeacon pkcs11 qrypt rtlsdr selinux"
|
||||
|
||||
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() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable jitterentropy)
|
||||
$(use_with nistbeacon)
|
||||
$(use_with pkcs11)
|
||||
$(use_with rtlsdr)
|
||||
$(use_with qrypt)
|
||||
)
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user