Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/rng-tools/
Date: Mon, 01 Feb 2021 15:01:19
Message-Id: 1612191663.e797a6ba5e8648f09b4dbd410ab443e58de2ef4d.whissi@gentoo
1 commit: e797a6ba5e8648f09b4dbd410ab443e58de2ef4d
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 14:52:57 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 15:01:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e797a6ba
7
8 sys-apps/rng-tools: bump to v6.11
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-apps/rng-tools/Manifest | 1 +
14 sys-apps/rng-tools/rng-tools-6.11.ebuild | 85 ++++++++++++++++++++++++++++++++
15 2 files changed, 86 insertions(+)
16
17 diff --git a/sys-apps/rng-tools/Manifest b/sys-apps/rng-tools/Manifest
18 index 643b071dd52..932b7196a51 100644
19 --- a/sys-apps/rng-tools/Manifest
20 +++ b/sys-apps/rng-tools/Manifest
21 @@ -1 +1,2 @@
22 DIST rng-tools-6.10.tar.gz 56806 BLAKE2B 6cce0579a47f638cd90b51ba5216712fe39bf92dd59b288691a5e9783d520212cfb62e875a7e8f85de7a932568fdf0287cbea6f4869c9616a4c9325a111b0243 SHA512 b72d8918f709989ebc70cb9ea9c8b3dabf53041b24bc3f3a6de1bea318861dfd6c1a6110bd750041dc4819406db4a2b28f5137af5f5d5f2beb666f607913b389
23 +DIST rng-tools-6.11.tar.gz 57366 BLAKE2B d613502bcb24560638c0abc956987e57ec54b6594bed414ce2b70086716f73a9a9eec4800c86097c4a14b91401f0f28be62f5182ee01c328c9a32cd79eaec561 SHA512 0058ca5d0c1ddb554284fe8e6b9c0b85f130e0b9e0b9f0f0219f434302766e07c321d4fc0c01bdeb59053d5cd14dab67dc1c306422ef35a62a267af9fbdf7deb
24
25 diff --git a/sys-apps/rng-tools/rng-tools-6.11.ebuild b/sys-apps/rng-tools/rng-tools-6.11.ebuild
26 new file mode 100644
27 index 00000000000..3e3aa014ffe
28 --- /dev/null
29 +++ b/sys-apps/rng-tools/rng-tools-6.11.ebuild
30 @@ -0,0 +1,85 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit autotools systemd readme.gentoo-r1 toolchain-funcs
37 +
38 +DESCRIPTION="Daemon to use hardware random number generators"
39 +HOMEPAGE="https://github.com/nhorman/rng-tools"
40 +SRC_URI="https://github.com/nhorman/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~x86"
45 +IUSE="jitterentropy libressl nistbeacon pkcs11 selinux"
46 +
47 +DEPEND="
48 + !libressl? ( dev-libs/openssl:0= )
49 + libressl? ( dev-libs/libressl:0= )
50 + sys-fs/sysfsutils
51 + jitterentropy? (
52 + app-crypt/jitterentropy:=
53 + )
54 + nistbeacon? (
55 + dev-libs/jansson
56 + dev-libs/libxml2:2=
57 + net-misc/curl[ssl]
58 + )
59 + pkcs11? (
60 + dev-libs/libp11:=
61 + )
62 + elibc_musl? ( sys-libs/argp-standalone )
63 +"
64 +RDEPEND="${DEPEND}
65 + selinux? ( sec-policy/selinux-rngd )"
66 +BDEPEND="
67 + virtual/pkgconfig
68 +"
69 +
70 +src_prepare() {
71 + echo 'bin_PROGRAMS = randstat' >> contrib/Makefile.am || die
72 +
73 + default
74 +
75 + mv README.md README || die
76 +
77 + eautoreconf
78 +
79 + sed -i '/^AR /d' Makefile.in || die
80 + tc-export AR
81 +}
82 +
83 +src_configure() {
84 + local myeconfargs=(
85 + $(use_enable jitterentropy)
86 + $(use_with nistbeacon)
87 + $(use_with pkcs11)
88 + --without-rtlsdr # no librtlsdr in the tree
89 + )
90 +
91 + econf "${myeconfargs[@]}"
92 +}
93 +
94 +src_install() {
95 + default
96 + newinitd "${FILESDIR}"/rngd-initd-6.7-r1 rngd
97 + newconfd "${FILESDIR}"/rngd-confd-6.7 rngd
98 + systemd_dounit "${FILESDIR}"/rngd.service
99 +
100 + if use pkcs11; then
101 + local DISABLE_AUTOFORMATTING=1
102 + local DOC_CONTENTS="
103 +The PKCS11 entropy source may require extra packages (e.g. 'dev-libs/opensc')
104 +to support various smartcard readers. Make sure 'PKCS11_OPTIONS' in:
105 + '${EROOT}/etc/conf.d/rngd'
106 +reflects the correct PKCS11 engine path to be used by rngd.
107 +"
108 + readme.gentoo_create_doc
109 + fi
110 +
111 +}
112 +
113 +pkg_postinst() {
114 + use pkcs11 && readme.gentoo_print_elog
115 +}