1 |
commit: a900f982977d8baeb285abb510a080d7c035b374 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 14 12:09:06 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 14 13:35:44 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a900f982 |
7 |
|
8 |
sys-apps/rng-tools: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.7, Repoman-2.3.3 |
11 |
|
12 |
sys-apps/rng-tools/Manifest | 1 - |
13 |
.../rng-tools/files/fix-textrels-on-PIC-x86.patch | 71 ---------------------- |
14 |
sys-apps/rng-tools/files/rngd-initd-4.1 | 28 --------- |
15 |
sys-apps/rng-tools/rng-tools-4-r7.ebuild | 35 ----------- |
16 |
sys-apps/rng-tools/rng-tools-5-r1.ebuild | 39 ------------ |
17 |
sys-apps/rng-tools/rng-tools-5.ebuild | 37 ----------- |
18 |
6 files changed, 211 deletions(-) |
19 |
|
20 |
diff --git a/sys-apps/rng-tools/Manifest b/sys-apps/rng-tools/Manifest |
21 |
index 108daf63caa..cb68eb34d0c 100644 |
22 |
--- a/sys-apps/rng-tools/Manifest |
23 |
+++ b/sys-apps/rng-tools/Manifest |
24 |
@@ -1,3 +1,2 @@ |
25 |
-DIST rng-tools-4.tar.gz 110943 SHA256 b71bdfd4222c05e8316001556be90e1606f2a1bac3efde60153bd84e873cc195 SHA512 328627a9ede924026c7a7c391b04be05f098d713d35f7f38d939d52b794853b4f6db3ae125568710ab5a59640236b343f3e9fc0f735806b020cc675c02f80b08 WHIRLPOOL da58bc7d3b7d9cdf6d83d258717f22ba3552482a690311fa2c820e4ce125a5e6c6e498e0b63461ed6c9dc16dff77b2cb47377933845fb9397efa205183346e5b |
26 |
DIST rng-tools-5.tar.gz 122182 SHA256 60a102b6603bbcce2da341470cad42eeaa9564a16b4490e7867026ca11a3078e SHA512 58047c37cad4f5f1210b696e4dba122878f78e57d05d9cb822f79234240ecce31efd2d39061fea1eb5b2e81d48d8c3bf6b92d06451f1ce5d5db7117704e89c50 WHIRLPOOL 073dbeb9d27189db44658a9f25657b93a320b125fbfc8230f7ce7849b8e7c1f7802b4c3a53de3417525b02739194fab8a6e5eb03d5db317a23deb275d72fbb21 |
27 |
DIST rng-tools-6.tar.gz 26024 SHA256 6d9c3f72824d1ea15dd2a80bfcf71f6a73c8843c6344f7f774a97a4ca7641b4c SHA512 2aea947c4dba5e8c4df33396957f7224b62200be0e3d10aac08c84155fa473a67df5f49e07a07b2cbea4dfd772d90c1b194e8fce3d8eea762463a7f4a16d6ce4 WHIRLPOOL 4e53c626288219a7cb9c94cf29d22878df5ad3298ca5ebedea46978e519d9b5b0ad94f765e217563105258f4b02b72b0033e551a7d37939ced9ca5d92f0a1048 |
28 |
|
29 |
diff --git a/sys-apps/rng-tools/files/fix-textrels-on-PIC-x86.patch b/sys-apps/rng-tools/files/fix-textrels-on-PIC-x86.patch |
30 |
deleted file mode 100644 |
31 |
index 5ff34da861b..00000000000 |
32 |
--- a/sys-apps/rng-tools/files/fix-textrels-on-PIC-x86.patch |
33 |
+++ /dev/null |
34 |
@@ -1,71 +0,0 @@ |
35 |
-From: Francisco Blas Izquierdo Riera (klondike) <klondike@g.o> |
36 |
-Subject: [PATCH] Fix assemby textrels on rdrand_asm.S on PIC x86 |
37 |
- |
38 |
-This patch fixes the assembly in rdrand_asm.S so it won't generate textrels on PIC systems. |
39 |
-The main fixes are in the use of leal in SETPTR for such systems, the rest is the usual PIC |
40 |
-support stuff. |
41 |
- |
42 |
-This should fix Gentoo bug #469962 |
43 |
- |
44 |
-This patch is released under the GPLv2 or a higher version license as is the original file |
45 |
-as long as reference to the author and the tester are included in the final code. |
46 |
- |
47 |
-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=469962 |
48 |
-Upstream-status: Not sent yet |
49 |
-Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@g.o> |
50 |
-Reported-by: cilly <cilly@××××××××××.nu> |
51 |
-Tested-by: Anthony Basile <blueness@g.o> |
52 |
- |
53 |
---- rng-tools/rdrand_asm.S |
54 |
-+++ rng-tools/rdrand_asm.S |
55 |
-@@ -49,6 +49,7 @@ |
56 |
- ret |
57 |
- ENDPROC(x86_rdrand_nlong) |
58 |
- |
59 |
-+#define INIT_PIC() |
60 |
- #define SETPTR(var,ptr) leaq var(%rip),ptr |
61 |
- #define PTR0 %rdi |
62 |
- #define PTR1 %rsi |
63 |
-@@ -84,7 +85,16 @@ |
64 |
- ret |
65 |
- ENDPROC(x86_rdrand_nlong) |
66 |
- |
67 |
-+#if defined(__PIC__) |
68 |
-+#undef __i686 /* gcc builtin define gets in our way */ |
69 |
-+#define INIT_PIC() \ |
70 |
-+ call __i686.get_pc_thunk.bx ; \ |
71 |
-+ addl $_GLOBAL_OFFSET_TABLE_, %ebx |
72 |
-+#define SETPTR(var,ptr) leal (var)@GOTOFF(%ebx),ptr |
73 |
-+#else |
74 |
-+#define INIT_PIC() |
75 |
- #define SETPTR(var,ptr) movl $(var),ptr |
76 |
-+#endif |
77 |
- #define PTR0 %eax |
78 |
- #define PTR1 %edx |
79 |
- #define PTR2 %ecx |
80 |
-@@ -101,6 +111,7 @@ |
81 |
- movl 8(%ebp), %eax |
82 |
- movl 12(%ebp), %edx |
83 |
- #endif |
84 |
-+ INIT_PIC() |
85 |
- |
86 |
- SETPTR(aes_round_keys, PTR2) |
87 |
- |
88 |
-@@ -166,6 +177,17 @@ |
89 |
- #endif |
90 |
- ret |
91 |
- ENDPROC(x86_aes_mangle) |
92 |
-+ |
93 |
-+#if defined(__i386__) && defined(__PIC__) |
94 |
-+ .section .gnu.linkonce.t.__i686.get_pc_thunk.bx,"ax",@progbits |
95 |
-+.globl __i686.get_pc_thunk.bx |
96 |
-+ .hidden __i686.get_pc_thunk.bx |
97 |
-+ .type __i686.get_pc_thunk.bx,@function |
98 |
-+__i686.get_pc_thunk.bx: |
99 |
-+ movl (%esp), %ebx |
100 |
-+ ret |
101 |
-+#endif |
102 |
-+ |
103 |
- /* |
104 |
- * AES round keys for an arbitrary key: |
105 |
- * 00102030405060708090A0B0C0D0E0F0 |
106 |
|
107 |
diff --git a/sys-apps/rng-tools/files/rngd-initd-4.1 b/sys-apps/rng-tools/files/rngd-initd-4.1 |
108 |
deleted file mode 100644 |
109 |
index 20f581b50b4..00000000000 |
110 |
--- a/sys-apps/rng-tools/files/rngd-initd-4.1 |
111 |
+++ /dev/null |
112 |
@@ -1,28 +0,0 @@ |
113 |
-#!/sbin/openrc-run |
114 |
-# Copyright 1999-2013 Gentoo Foundation |
115 |
-# Distributed under the terms of the GNU General Public License v2 |
116 |
- |
117 |
-depend() { |
118 |
- need localmount |
119 |
- after urandom |
120 |
- provide entropy |
121 |
-} |
122 |
- |
123 |
-# Do NOT add /dev/tpm to this. |
124 |
-DEFAULT_DEVICE="/dev/hw_random* /dev/hwrandom* /dev/i810_rng /dev/hwrng*" |
125 |
- |
126 |
-find_device() { |
127 |
- local d |
128 |
- # The echo is to cause globbing |
129 |
- for d in $(echo ${DEFAULT_DEVICE}) ; do |
130 |
- [ -e "${d}" ] && echo "${d}" |
131 |
- done |
132 |
-} |
133 |
- |
134 |
-RNG_DEVICE="${DEVICE:-$(find_device)}" |
135 |
- |
136 |
-command=/usr/sbin/rngd |
137 |
-pidfile="/var/run/${SVCNAME}.pid" |
138 |
-command_args="--pid-file ${pidfile} --background --random-step ${STEP:-64} ${NO_TPM:+--no-tpm=1} ${NO_DRNG:+--no-drng=1} --fill-watermark ${WATERMARK} ${RNG_DEVICE:+--rng-device ${RNG_DEVICE}}" |
139 |
-start_stop_daemon_args="--wait 1000" |
140 |
-retry="SIGKILL/5000" |
141 |
|
142 |
diff --git a/sys-apps/rng-tools/rng-tools-4-r7.ebuild b/sys-apps/rng-tools/rng-tools-4-r7.ebuild |
143 |
deleted file mode 100644 |
144 |
index 5c0f35ceac0..00000000000 |
145 |
--- a/sys-apps/rng-tools/rng-tools-4-r7.ebuild |
146 |
+++ /dev/null |
147 |
@@ -1,35 +0,0 @@ |
148 |
-# Copyright 1999-2014 Gentoo Foundation |
149 |
-# Distributed under the terms of the GNU General Public License v2 |
150 |
- |
151 |
-EAPI="5" |
152 |
- |
153 |
-inherit eutils autotools systemd toolchain-funcs |
154 |
- |
155 |
-DESCRIPTION="Daemon to use hardware random number generators" |
156 |
-HOMEPAGE="http://gkernel.sourceforge.net/" |
157 |
-SRC_URI="mirror://sourceforge/gkernel/${P}.tar.gz" |
158 |
- |
159 |
-LICENSE="GPL-2" |
160 |
-SLOT="0" |
161 |
-KEYWORDS="alpha amd64 ia64 ppc x86" |
162 |
-IUSE="selinux" |
163 |
- |
164 |
-RDEPEND="selinux? ( sec-policy/selinux-rngd )" |
165 |
-DEPEND="" |
166 |
- |
167 |
-src_prepare() { |
168 |
- echo 'bin_PROGRAMS = randstat' >> contrib/Makefile.am |
169 |
- epatch "${FILESDIR}"/test-for-argp.patch |
170 |
- epatch "${FILESDIR}"/fix-textrels-on-PIC-x86.patch |
171 |
- eautoreconf |
172 |
- |
173 |
- sed -i '/^AR /d' Makefile.in |
174 |
- tc-export AR |
175 |
-} |
176 |
- |
177 |
-src_install() { |
178 |
- default |
179 |
- newinitd "${FILESDIR}"/rngd-initd-4.1 rngd |
180 |
- newconfd "${FILESDIR}"/rngd-confd-4.1 rngd |
181 |
- systemd_dounit "${FILESDIR}"/rngd.service |
182 |
-} |
183 |
|
184 |
diff --git a/sys-apps/rng-tools/rng-tools-5-r1.ebuild b/sys-apps/rng-tools/rng-tools-5-r1.ebuild |
185 |
deleted file mode 100644 |
186 |
index ba4a8314451..00000000000 |
187 |
--- a/sys-apps/rng-tools/rng-tools-5-r1.ebuild |
188 |
+++ /dev/null |
189 |
@@ -1,39 +0,0 @@ |
190 |
-# Copyright 1999-2015 Gentoo Foundation |
191 |
-# Distributed under the terms of the GNU General Public License v2 |
192 |
- |
193 |
-EAPI=5 |
194 |
- |
195 |
-inherit eutils autotools systemd toolchain-funcs |
196 |
- |
197 |
-DESCRIPTION="Daemon to use hardware random number generators" |
198 |
-HOMEPAGE="http://gkernel.sourceforge.net/" |
199 |
-SRC_URI="mirror://sourceforge/gkernel/${P}.tar.gz" |
200 |
- |
201 |
-LICENSE="GPL-2" |
202 |
-SLOT="0" |
203 |
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ppc ~x86" |
204 |
-IUSE="selinux" |
205 |
- |
206 |
-DEPEND="dev-libs/libgcrypt:0 |
207 |
- dev-libs/libgpg-error" |
208 |
-RDEPEND="${DEPEND} |
209 |
- selinux? ( sec-policy/selinux-rngd )" |
210 |
- |
211 |
-src_prepare() { |
212 |
- echo 'bin_PROGRAMS = randstat' >> contrib/Makefile.am |
213 |
- epatch "${FILESDIR}"/test-for-argp.patch |
214 |
- epatch "${FILESDIR}"/${P}-fix-textrels-on-PIC-x86.patch #469962 |
215 |
- epatch "${FILESDIR}"/${P}-man-fill-watermark.patch #555094 |
216 |
- epatch "${FILESDIR}"/${P}-man-rng-device.patch #555106 |
217 |
- eautoreconf |
218 |
- |
219 |
- sed -i '/^AR /d' Makefile.in || die |
220 |
- tc-export AR |
221 |
-} |
222 |
- |
223 |
-src_install() { |
224 |
- default |
225 |
- newinitd "${FILESDIR}"/rngd-initd-4.1 rngd |
226 |
- newconfd "${FILESDIR}"/rngd-confd-4.1 rngd |
227 |
- systemd_dounit "${FILESDIR}"/rngd.service |
228 |
-} |
229 |
|
230 |
diff --git a/sys-apps/rng-tools/rng-tools-5.ebuild b/sys-apps/rng-tools/rng-tools-5.ebuild |
231 |
deleted file mode 100644 |
232 |
index 0bda55df9f7..00000000000 |
233 |
--- a/sys-apps/rng-tools/rng-tools-5.ebuild |
234 |
+++ /dev/null |
235 |
@@ -1,37 +0,0 @@ |
236 |
-# Copyright 1999-2015 Gentoo Foundation |
237 |
-# Distributed under the terms of the GNU General Public License v2 |
238 |
- |
239 |
-EAPI=5 |
240 |
- |
241 |
-inherit eutils autotools systemd toolchain-funcs |
242 |
- |
243 |
-DESCRIPTION="Daemon to use hardware random number generators" |
244 |
-HOMEPAGE="http://gkernel.sourceforge.net/" |
245 |
-SRC_URI="mirror://sourceforge/gkernel/${P}.tar.gz" |
246 |
- |
247 |
-LICENSE="GPL-2" |
248 |
-SLOT="0" |
249 |
-KEYWORDS="~alpha amd64 ~arm ~ia64 ppc x86" |
250 |
-IUSE="selinux" |
251 |
- |
252 |
-DEPEND="dev-libs/libgcrypt:0 |
253 |
- dev-libs/libgpg-error" |
254 |
-RDEPEND="${DEPEND} |
255 |
- selinux? ( sec-policy/selinux-rngd )" |
256 |
- |
257 |
-src_prepare() { |
258 |
- echo 'bin_PROGRAMS = randstat' >> contrib/Makefile.am |
259 |
- epatch "${FILESDIR}"/test-for-argp.patch\ |
260 |
- "${FILESDIR}"/${P}-fix-textrels-on-PIC-x86.patch |
261 |
- eautoreconf |
262 |
- |
263 |
- sed -i '/^AR /d' Makefile.in || die |
264 |
- tc-export AR |
265 |
-} |
266 |
- |
267 |
-src_install() { |
268 |
- default |
269 |
- newinitd "${FILESDIR}"/rngd-initd-4.1 rngd |
270 |
- newconfd "${FILESDIR}"/rngd-confd-4.1 rngd |
271 |
- systemd_dounit "${FILESDIR}"/rngd.service |
272 |
-} |