1 |
commit: 438e36ddf944c86ce960fa17e9848ada2b2b6a74 |
2 |
Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 6 22:01:19 2018 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 6 22:06:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=438e36dd |
7 |
|
8 |
sys-apps/rng-tools: bump to v6.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
11 |
|
12 |
profiles/arch/amd64/package.use.mask | 4 ++ |
13 |
profiles/base/package.use.mask | 5 ++ |
14 |
sys-apps/rng-tools/Manifest | 1 + |
15 |
.../rng-tools-6.3-jitterentropy-linking-fix.patch | 36 +++++++++++ |
16 |
sys-apps/rng-tools/metadata.xml | 3 + |
17 |
sys-apps/rng-tools/rng-tools-6.3.ebuild | 69 ++++++++++++++++++++++ |
18 |
6 files changed, 118 insertions(+) |
19 |
|
20 |
diff --git a/profiles/arch/amd64/package.use.mask b/profiles/arch/amd64/package.use.mask |
21 |
index 17a74679451..e1df758480b 100644 |
22 |
--- a/profiles/arch/amd64/package.use.mask |
23 |
+++ b/profiles/arch/amd64/package.use.mask |
24 |
@@ -17,6 +17,10 @@ |
25 |
|
26 |
#--- END OF EXAMPLES --- |
27 |
|
28 |
+# Göktürk Yüksek <gokturk@g.o> (6 Jul 2018) |
29 |
+# Dependency app-crypt/jitterentropy is keyworded for amd64 |
30 |
+sys-apps/rng-tools -jitterentropy |
31 |
+ |
32 |
# Rick Farina <zerochaos@g.o> (27 Jun 2018) |
33 |
# Catalyst has support for assembling bootloader on this arch |
34 |
dev-util/catalyst -system-bootloader |
35 |
|
36 |
diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask |
37 |
index ed235414678..cff38ab6aaf 100644 |
38 |
--- a/profiles/base/package.use.mask |
39 |
+++ b/profiles/base/package.use.mask |
40 |
@@ -7,6 +7,11 @@ |
41 |
# This file is only for generic masks. For arch-specific masks (i.e. |
42 |
# mask everywhere, unmask on arch/*) use arch/base. |
43 |
|
44 |
+# Göktürk Yüksek <gokturk@g.o> (6 Jul 2018) |
45 |
+# Dependency app-crypt/jitterentropy is keyworded for |
46 |
+# only a subset of the archs rng-tools supports |
47 |
+sys-apps/rng-tools jitterentropy |
48 |
+ |
49 |
# Andreas Sturmlechner <asturm@g.o> (18 Jun 2018) |
50 |
# Qt4 is dead and going away. Bug #638260 |
51 |
sci-libs/ViSP qt4 |
52 |
|
53 |
diff --git a/sys-apps/rng-tools/Manifest b/sys-apps/rng-tools/Manifest |
54 |
index a72ffa68065..b5c76696588 100644 |
55 |
--- a/sys-apps/rng-tools/Manifest |
56 |
+++ b/sys-apps/rng-tools/Manifest |
57 |
@@ -1,4 +1,5 @@ |
58 |
DIST rng-tools-5.tar.gz 122182 BLAKE2B de7085d530e38de21a1c33792d67a72e0131b221082d690cdb299367b80b0a123c2976174aa3f895a4a2ab1216aacfaa8e09de485c85154dc4a5b8f960d05245 SHA512 58047c37cad4f5f1210b696e4dba122878f78e57d05d9cb822f79234240ecce31efd2d39061fea1eb5b2e81d48d8c3bf6b92d06451f1ce5d5db7117704e89c50 |
59 |
DIST rng-tools-6.1.tar.gz 29814 BLAKE2B 4102c03ced36b33f9db6f7e5f77e8f918c4b9286a4c94cfd9ea9645c394f054fb3165255c3beb0f73d897d066831301f69a64e2758296b4418808343c97f3269 SHA512 388593ffeef0b5f2770532629418cdf1b6421092ae9c5fe0a68d198a5cbd4ff733fbca8091d497e09620c61a9e8b982298fb064edfd05a0fc36fa49c22eef5c9 |
60 |
DIST rng-tools-6.2.tar.gz 30421 BLAKE2B 646628095cbc611aee4113198e0874b5f0672cd787f04f1649ff350883edebe6b31753aef3ac2bca1f05eedcf3c1400435c084382bde9f97fe6dcdd71adf18c2 SHA512 ffd8be5b232f092f8bcfdb6281580ce9053ec8bb87ff6bcae76585c38e3e91b9e464a9544a33ecd9814a9f244a89bac973d15c9bd3560d1164559685c720d174 |
61 |
+DIST rng-tools-6.3.tar.gz 31474 BLAKE2B 4d3924b3ca85d31d1999ceb45908cf64e8d2978d2e0aa638d9bbd3054a11a41251f9db54db35583c8fc080fd0667387cd63792c15486048d1f52300217e02fa9 SHA512 c00ac28c059ba689f114480958fe993e2199a1428137b151779a0331b9cc5a667f08770aa7b28d98c801166a509e8bd40d6b92f5c29b6ff73eb50a1cb0f2dd13 |
62 |
DIST rng-tools-6.tar.gz 26024 BLAKE2B a523328fcce56997e2847940cdc096abd5a539135f857f0a4cd3d782a1659f4d2978870149caac47b839c80788df6a3d891adcd39371d5968149dd29bc46bc62 SHA512 2aea947c4dba5e8c4df33396957f7224b62200be0e3d10aac08c84155fa473a67df5f49e07a07b2cbea4dfd772d90c1b194e8fce3d8eea762463a7f4a16d6ce4 |
63 |
|
64 |
diff --git a/sys-apps/rng-tools/files/rng-tools-6.3-jitterentropy-linking-fix.patch b/sys-apps/rng-tools/files/rng-tools-6.3-jitterentropy-linking-fix.patch |
65 |
new file mode 100644 |
66 |
index 00000000000..f7b87c88715 |
67 |
--- /dev/null |
68 |
+++ b/sys-apps/rng-tools/files/rng-tools-6.3-jitterentropy-linking-fix.patch |
69 |
@@ -0,0 +1,36 @@ |
70 |
+From c9f795da2dbeb0e85025f6264321aef1ba12059e Mon Sep 17 00:00:00 2001 |
71 |
+From: =?UTF-8?q?G=C3=B6kt=C3=BCrk=20Y=C3=BCksek?= <gokturk@g.o> |
72 |
+Date: Fri, 6 Jul 2018 17:20:28 -0400 |
73 |
+Subject: [PATCH] Makefile.am: use the libjitterentropy available on the system |
74 |
+ |
75 |
+--- |
76 |
+ Makefile.am | 6 ++---- |
77 |
+ 1 file changed, 2 insertions(+), 4 deletions(-) |
78 |
+ |
79 |
+diff --git a/Makefile.am b/Makefile.am |
80 |
+index b80e9a0..5d33aaf 100644 |
81 |
+--- a/Makefile.am |
82 |
++++ b/Makefile.am |
83 |
+@@ -2,9 +2,7 @@ |
84 |
+ ## Toplevel Makefile.am for rng-tools |
85 |
+ ## |
86 |
+ if JITTER |
87 |
+- JSUBDIR = jitterentropy-library |
88 |
+- JSUBLIB = ./jitterentropy-library/libjitterentropy.a |
89 |
+- AM_CPPFLAGS = -I./jitterentropy-library |
90 |
++ jitterentropy_LIBS = -ljitterentropy |
91 |
+ endif |
92 |
+ |
93 |
+ SUBDIRS = contrib tests $(JSUBDIR) |
94 |
+@@ -33,7 +31,7 @@ if JITTER |
95 |
+ rngd_SOURCES += rngd_jitter.c |
96 |
+ endif |
97 |
+ |
98 |
+-rngd_LDADD = librngd.a -lsysfs $(JSUBLIB) ${libcurl_LIBS} ${libxml2_LIBS} ${openssl_LIBS} |
99 |
++rngd_LDADD = librngd.a -lsysfs $(jitterentropy_LIBS) ${libcurl_LIBS} ${libxml2_LIBS} ${openssl_LIBS} |
100 |
+ |
101 |
+ rngd_CFLAGS = ${libxml2_CFLAGS} ${openssl_CFLAGS} |
102 |
+ |
103 |
+-- |
104 |
+2.17.0 |
105 |
+ |
106 |
|
107 |
diff --git a/sys-apps/rng-tools/metadata.xml b/sys-apps/rng-tools/metadata.xml |
108 |
index bda25e86a52..911b7587f66 100644 |
109 |
--- a/sys-apps/rng-tools/metadata.xml |
110 |
+++ b/sys-apps/rng-tools/metadata.xml |
111 |
@@ -10,6 +10,9 @@ |
112 |
<name>Gentoo Base System</name> |
113 |
</maintainer> |
114 |
<use> |
115 |
+ <flag name="jitterentropy"> |
116 |
+ Enable Jitter RNG entropy support |
117 |
+ </flag> |
118 |
<flag name="nistbeacon"> |
119 |
Enable NIST beacon entropy support |
120 |
</flag> |
121 |
|
122 |
diff --git a/sys-apps/rng-tools/rng-tools-6.3.ebuild b/sys-apps/rng-tools/rng-tools-6.3.ebuild |
123 |
new file mode 100644 |
124 |
index 00000000000..17386bfd005 |
125 |
--- /dev/null |
126 |
+++ b/sys-apps/rng-tools/rng-tools-6.3.ebuild |
127 |
@@ -0,0 +1,69 @@ |
128 |
+# Copyright 1999-2018 Gentoo Foundation |
129 |
+# Distributed under the terms of the GNU General Public License v2 |
130 |
+ |
131 |
+EAPI=6 |
132 |
+ |
133 |
+inherit autotools systemd toolchain-funcs |
134 |
+ |
135 |
+DESCRIPTION="Daemon to use hardware random number generators" |
136 |
+HOMEPAGE="https://github.com/nhorman/rng-tools" |
137 |
+SRC_URI="https://github.com/nhorman/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
138 |
+ |
139 |
+LICENSE="GPL-2" |
140 |
+SLOT="0" |
141 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~x86" |
142 |
+IUSE="jitterentropy nistbeacon selinux" |
143 |
+ |
144 |
+DEPEND="dev-libs/libgcrypt:0 |
145 |
+ dev-libs/libgpg-error |
146 |
+ sys-fs/sysfsutils |
147 |
+ jitterentropy? ( |
148 |
+ app-crypt/jitterentropy:= |
149 |
+ ) |
150 |
+ nistbeacon? ( |
151 |
+ net-misc/curl[ssl] |
152 |
+ dev-libs/libxml2:2= |
153 |
+ dev-libs/openssl:0= |
154 |
+ ) |
155 |
+" |
156 |
+RDEPEND="${DEPEND} |
157 |
+ selinux? ( sec-policy/selinux-rngd )" |
158 |
+DEPEND="${DEPEND} |
159 |
+ nistbeacon? ( |
160 |
+ virtual/pkgconfig |
161 |
+ ) |
162 |
+" |
163 |
+ |
164 |
+PATCHES=( |
165 |
+ "${FILESDIR}"/test-for-argp.patch |
166 |
+ "${FILESDIR}"/${PN}-5-fix-textrels-on-PIC-x86.patch #469962 |
167 |
+ "${FILESDIR}"/${PN}-6.3-jitterentropy-linking-fix.patch |
168 |
+) |
169 |
+ |
170 |
+src_prepare() { |
171 |
+ echo 'bin_PROGRAMS = randstat' >> contrib/Makefile.am || die |
172 |
+ default |
173 |
+ |
174 |
+ mv README.md README || die |
175 |
+ |
176 |
+ if use jitterentropy; then |
177 |
+ # Fool the build system into thinking that |
178 |
+ # jitterentropy source code exists |
179 |
+ touch "${S}"/jitterentropy-library/Makefile || die |
180 |
+ fi |
181 |
+ eautoreconf |
182 |
+ |
183 |
+ sed -i '/^AR /d' Makefile.in || die |
184 |
+ tc-export AR |
185 |
+} |
186 |
+ |
187 |
+src_configure() { |
188 |
+ econf $(use_with nistbeacon) |
189 |
+} |
190 |
+ |
191 |
+src_install() { |
192 |
+ default |
193 |
+ newinitd "${FILESDIR}"/rngd-initd-6 rngd |
194 |
+ newconfd "${FILESDIR}"/rngd-confd-4.1 rngd |
195 |
+ systemd_dounit "${FILESDIR}"/rngd.service |
196 |
+} |