1 |
commit: ab72647a545673c67af6a0797b89b159d49954d2 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 13 22:31:58 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 13 22:31:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab72647a |
7 |
|
8 |
sys-apps/rng-tools: Bring back 6.11-r1 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
sys-apps/rng-tools/Manifest | 1 + |
14 |
sys-apps/rng-tools/rng-tools-6.11-r1.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 9498feec57d..426e7b32088 100644 |
19 |
--- a/sys-apps/rng-tools/Manifest |
20 |
+++ b/sys-apps/rng-tools/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST rng-tools-6.11.tar.gz 57366 BLAKE2B d613502bcb24560638c0abc956987e57ec54b6594bed414ce2b70086716f73a9a9eec4800c86097c4a14b91401f0f28be62f5182ee01c328c9a32cd79eaec561 SHA512 0058ca5d0c1ddb554284fe8e6b9c0b85f130e0b9e0b9f0f0219f434302766e07c321d4fc0c01bdeb59053d5cd14dab67dc1c306422ef35a62a267af9fbdf7deb |
23 |
DIST rng-tools-6.12.tar.gz 57309 BLAKE2B d7a12b50889065f885cb15cda9686d63950fcc1ac9099893ed9c9236a9a930627c9541980c410318b40104637df688f5622681ce1d80eee7d4aaaf696c6bc3c5 SHA512 56dd334b65dcec1456f8dbdbee5d83590de27cb6ee1b7715828b5316a913557fd178e264139dc92a82e09635ca15b1eb5f6169bfb4412fbe1b06ea28a5064c64 |
24 |
|
25 |
diff --git a/sys-apps/rng-tools/rng-tools-6.11-r1.ebuild b/sys-apps/rng-tools/rng-tools-6.11-r1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..8a63aedded7 |
28 |
--- /dev/null |
29 |
+++ b/sys-apps/rng-tools/rng-tools-6.11-r1.ebuild |
30 |
@@ -0,0 +1,84 @@ |
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 nistbeacon pkcs11 selinux" |
46 |
+ |
47 |
+DEPEND=" |
48 |
+ dev-libs/openssl:0= |
49 |
+ sys-fs/sysfsutils |
50 |
+ jitterentropy? ( |
51 |
+ app-crypt/jitterentropy:= |
52 |
+ ) |
53 |
+ nistbeacon? ( |
54 |
+ dev-libs/jansson |
55 |
+ dev-libs/libxml2:2= |
56 |
+ net-misc/curl[ssl] |
57 |
+ ) |
58 |
+ pkcs11? ( |
59 |
+ dev-libs/libp11:= |
60 |
+ ) |
61 |
+ elibc_musl? ( sys-libs/argp-standalone ) |
62 |
+" |
63 |
+RDEPEND="${DEPEND} |
64 |
+ selinux? ( sec-policy/selinux-rngd )" |
65 |
+BDEPEND=" |
66 |
+ virtual/pkgconfig |
67 |
+" |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ echo 'bin_PROGRAMS = randstat' >> contrib/Makefile.am || die |
71 |
+ |
72 |
+ default |
73 |
+ |
74 |
+ mv README.md README || die |
75 |
+ |
76 |
+ eautoreconf |
77 |
+ |
78 |
+ sed -i '/^AR /d' Makefile.in || die |
79 |
+ tc-export AR |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ local myeconfargs=( |
84 |
+ $(use_enable jitterentropy) |
85 |
+ $(use_with nistbeacon) |
86 |
+ $(use_with pkcs11) |
87 |
+ --without-rtlsdr # no librtlsdr in the tree |
88 |
+ ) |
89 |
+ |
90 |
+ econf "${myeconfargs[@]}" |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ default |
95 |
+ newinitd "${FILESDIR}"/rngd-initd-6.11 rngd |
96 |
+ newconfd "${FILESDIR}"/rngd-confd-6.11 rngd |
97 |
+ systemd_dounit "${S}"/rngd.service |
98 |
+ |
99 |
+ if use pkcs11; then |
100 |
+ local DISABLE_AUTOFORMATTING=1 |
101 |
+ local DOC_CONTENTS=" |
102 |
+The PKCS11 entropy source may require extra packages (e.g. 'dev-libs/opensc') |
103 |
+to support various smartcard readers. Make sure 'PKCS11_OPTIONS' in: |
104 |
+ '${EPREFIX}/etc/conf.d/rngd' |
105 |
+reflects the correct PKCS11 engine path to be used by rngd. |
106 |
+" |
107 |
+ readme.gentoo_create_doc |
108 |
+ fi |
109 |
+ |
110 |
+} |
111 |
+ |
112 |
+pkg_postinst() { |
113 |
+ use pkcs11 && readme.gentoo_print_elog |
114 |
+} |