Gentoo Archives: gentoo-commits

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