sys-apps/rng-tools: add 6.15

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-02-14 01:35:35 +00:00
parent 743c1d1963
commit d8d1806fa2
2 changed files with 71 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST rng-tools-6.14.tar.gz 60277 BLAKE2B 177065f9ea68b68459d034d38278f866a0c9d5c499578fabcc29ceb387b49667393f23dcae9f13ff401599846e872dbada73f5e319a99dfa4605cdb77ee3e896 SHA512 6a267257292697023cd349a5bda4998e39e874969f2b437eb2498f2d7d70a7ed293ca76b4c83aebf80955e33f6c8f8bbb65c6636cc0979e0e0d80d148380b8c7
DIST rng-tools-6.15.tar.gz 60731 BLAKE2B 693056ca600448d07413661498ca33893e99648c6344e02f2f0babb014878b9452e024904f5b58efc6cfe72201e582a6b458664d11160bb1b0dbdc28ba6325c5 SHA512 44146d891c4f46675a031f2e5ff7755cfaf1abe3252f241c16e042d3bb5e988b77ff840382caca49d8cb9854af1e49369398a506de5e819167739ad33b58d180

View File

@@ -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
}