1 |
commit: 07628bb2188c4ce09f32bd8263987a107b794ce5 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 29 18:55:26 2020 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 29 19:14:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07628bb2 |
7 |
|
8 |
net-fs/openafs-kernel: remove last rited and vulnerable package |
9 |
|
10 |
All functionality is peserved within net-fs/openafs[modules]. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/719136 |
13 |
Closes: https://bugs.gentoo.org/703506 |
14 |
Closes: https://bugs.gentoo.org/707928 |
15 |
Closes: https://bugs.gentoo.org/724920 |
16 |
|
17 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
18 |
|
19 |
net-fs/openafs-kernel/Manifest | 3 - |
20 |
net-fs/openafs-kernel/metadata.xml | 11 -- |
21 |
.../openafs-kernel-1.6.22.1-r1.ebuild | 134 --------------------- |
22 |
.../openafs-kernel-1.6.22.2-r1.ebuild | 134 --------------------- |
23 |
4 files changed, 282 deletions(-) |
24 |
|
25 |
diff --git a/net-fs/openafs-kernel/Manifest b/net-fs/openafs-kernel/Manifest |
26 |
deleted file mode 100644 |
27 |
index 34c6a22cc32..00000000000 |
28 |
--- a/net-fs/openafs-kernel/Manifest |
29 |
+++ /dev/null |
30 |
@@ -1,3 +0,0 @@ |
31 |
-DIST openafs-1.6.22.1-src.tar.bz2 14682183 BLAKE2B a01e08f30f28dda9484407bbe0568df7b517e587b6e2475d669269e09745050bee955438dfeab9d86564dbc22821bc2fb417c15f8add0aae6acdde266c080df0 SHA512 901959051f60f7ffa2db8a253a16f9460713e3637a53f0b6b05e72247e08b633951116dc28b19db9c7448d8ebc7a20a8a851d5356c52f16c28f5c89209f8190e |
32 |
-DIST openafs-1.6.22.2-src.tar.bz2 14673379 BLAKE2B 06408ad98a1812608b14ee89ffa40ccbbf6aa7d41dc0741c9c7b9e2c59a3f88c1f6676aa2f996b888cb7f50c04f0c8fe2da15c3f3647e3998f70c973c18ea7d3 SHA512 e4f2ce326a1d04ec20b1fa4115509bf35f73d937ff77e6e017e851ce871542d935e5ae8a597efd14027c385869657cf538cffa2674878bd4d4da37f20626172c |
33 |
-DIST openafs-patches-20170822.tar.xz 11036 BLAKE2B e53d9e01c5808ca9876fd22f729e0e82cb0f6bc7c1f4875ad0607ac9d547e216c61cc2c3506eaafb7c81318958cd038c177e9e5b2c3728997d7f44e13bbbded4 SHA512 f4b574287bfe54881a70f3ccd4d4901b2f8f9ecbec7b3a4975b59050d5ef27c6de3da25f820b7b2b10f1a38034bb28e5c01ee094fb38cae80e244eeb04b29d0a |
34 |
|
35 |
diff --git a/net-fs/openafs-kernel/metadata.xml b/net-fs/openafs-kernel/metadata.xml |
36 |
deleted file mode 100644 |
37 |
index e76fe2c4c44..00000000000 |
38 |
--- a/net-fs/openafs-kernel/metadata.xml |
39 |
+++ /dev/null |
40 |
@@ -1,11 +0,0 @@ |
41 |
-<?xml version="1.0" encoding="UTF-8"?> |
42 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
43 |
-<pkgmetadata> |
44 |
-<maintainer type="person"> |
45 |
- <email>NP-Hardass@g.o</email> |
46 |
-</maintainer> |
47 |
-<maintainer type="person"> |
48 |
- <email>bircoph@g.o</email> |
49 |
- <name>Andrew Savchenko</name> |
50 |
-</maintainer> |
51 |
-</pkgmetadata> |
52 |
|
53 |
diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.22.1-r1.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.22.1-r1.ebuild |
54 |
deleted file mode 100644 |
55 |
index 8dbaaf5e78d..00000000000 |
56 |
--- a/net-fs/openafs-kernel/openafs-kernel-1.6.22.1-r1.ebuild |
57 |
+++ /dev/null |
58 |
@@ -1,134 +0,0 @@ |
59 |
-# Copyright 1999-2020 Gentoo Authors |
60 |
-# Distributed under the terms of the GNU General Public License v2 |
61 |
- |
62 |
-EAPI="6" |
63 |
- |
64 |
-inherit autotools linux-mod multilib toolchain-funcs versionator |
65 |
- |
66 |
-MY_PV=$(delete_version_separator '_') |
67 |
-MY_PN="${PN/-kernel}" |
68 |
-MY_P="${MY_PN}-${MY_PV}" |
69 |
-PVER="20170822" |
70 |
- |
71 |
-DESCRIPTION="The OpenAFS distributed file system kernel module" |
72 |
-HOMEPAGE="https://www.openafs.org/" |
73 |
-# We always d/l the doc tarball as man pages are not USE=doc material |
74 |
-[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE="" |
75 |
-SRC_URI=" |
76 |
- https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2 |
77 |
- https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz |
78 |
-" |
79 |
- |
80 |
-LICENSE="IBM BSD openafs-krb5-a APSL-2" |
81 |
-SLOT="0" |
82 |
-KEYWORDS="amd64 ~sparc x86 ~amd64-linux ~x86-linux" |
83 |
-IUSE="debug" |
84 |
- |
85 |
-S=${WORKDIR}/${MY_P} |
86 |
- |
87 |
-CONFIG_CHECK="~!AFS_FS KEYS" |
88 |
-ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!" |
89 |
-ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled" |
90 |
- |
91 |
-QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko" |
92 |
-QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko" |
93 |
- |
94 |
-PATCHES=( "${WORKDIR}/gentoo/patches" ) |
95 |
- |
96 |
-pkg_pretend() { |
97 |
- if use kernel_linux && kernel_is ge 4 15 ; then |
98 |
- ewarn "Gentoo supports kernels which are supported by OpenAFS" |
99 |
- ewarn "which are limited to the kernel versions: < 4.15" |
100 |
- ewarn "" |
101 |
- ewarn "You are free to utilize epatch_user to provide whatever" |
102 |
- ewarn "support you feel is appropriate, but will not receive" |
103 |
- ewarn "support as a result of those changes." |
104 |
- ewarn "" |
105 |
- ewarn "Please do not file a bug report about this." |
106 |
- fi |
107 |
-} |
108 |
- |
109 |
-pkg_setup() { |
110 |
- if use kernel_linux; then |
111 |
- linux-mod_pkg_setup |
112 |
- fi |
113 |
-} |
114 |
- |
115 |
-src_prepare() { |
116 |
- default |
117 |
- |
118 |
- # packaging is f-ed up, so we can't run eautoreconf |
119 |
- # run autotools commands based on what is listed in regen.sh |
120 |
- eaclocal -I src/cf |
121 |
- eautoconf |
122 |
- eautoconf -o configure-libafs configure-libafs.ac |
123 |
- eautoheader |
124 |
- einfo "Deleting autom4te.cache directory" |
125 |
- rm -rf autom4te.cache |
126 |
-} |
127 |
- |
128 |
-src_configure() { |
129 |
- local myconf="" |
130 |
- # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option |
131 |
- if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then |
132 |
- myconf="--enable-linux-d_splice_alias-extra-iput" |
133 |
- fi |
134 |
- |
135 |
- local ARCH="$(tc-arch-kernel)" |
136 |
- local MY_ARCH="$(tc-arch)" |
137 |
- local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC" |
138 |
- |
139 |
- if use kernel_linux; then |
140 |
- myconf+=( --with-linux-kernel-headers="${KV_DIR}" \ |
141 |
- --with-linux-kernel-build="${KV_OUT_DIR}" |
142 |
- ) |
143 |
- elif use kernel_FreeBSD; then |
144 |
- myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" ) |
145 |
- fi |
146 |
- econf \ |
147 |
- $(use_enable debug debug-kernel) \ |
148 |
- "${myconf[@]}" |
149 |
-} |
150 |
- |
151 |
-src_compile() { |
152 |
- ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs |
153 |
-} |
154 |
- |
155 |
-src_install() { |
156 |
- if use kernel_linux; then |
157 |
- local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*) |
158 |
- [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module" |
159 |
- |
160 |
- MODULE_NAMES="libafs(fs/openafs:${srcdir})" |
161 |
- |
162 |
- linux-mod_src_install |
163 |
- elif use kernel_FreeBSD; then |
164 |
- insinto /boot/modules |
165 |
- doins "${S}"/src/libafs/MODLOAD/libafs.ko |
166 |
- fi |
167 |
-} |
168 |
- |
169 |
-pkg_postinst() { |
170 |
- # Update linker.hints file |
171 |
- use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" |
172 |
- use kernel_linux && linux-mod_pkg_postinst |
173 |
- |
174 |
- if use kernel_linux; then |
175 |
- local v |
176 |
- for v in ${REPLACING_VERSIONS}; do |
177 |
- if ! version_is_at_least 1.6.18.2 ${v}; then |
178 |
- ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires" |
179 |
- ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config." |
180 |
- ewarn "If you only turned this option off for OpenAFS, please re-enable" |
181 |
- ewarn "it, as keeping it turned off is a security risk." |
182 |
- break |
183 |
- fi |
184 |
- done |
185 |
- fi |
186 |
-} |
187 |
- |
188 |
-pkg_postrm() { |
189 |
- # Update linker.hints file |
190 |
- use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" |
191 |
- use kernel_linux && linux-mod_pkg_postrm |
192 |
-} |
193 |
|
194 |
diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.22.2-r1.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.22.2-r1.ebuild |
195 |
deleted file mode 100644 |
196 |
index 0a6b70212ca..00000000000 |
197 |
--- a/net-fs/openafs-kernel/openafs-kernel-1.6.22.2-r1.ebuild |
198 |
+++ /dev/null |
199 |
@@ -1,134 +0,0 @@ |
200 |
-# Copyright 1999-2020 Gentoo Authors |
201 |
-# Distributed under the terms of the GNU General Public License v2 |
202 |
- |
203 |
-EAPI="6" |
204 |
- |
205 |
-inherit autotools linux-mod multilib toolchain-funcs versionator |
206 |
- |
207 |
-MY_PV=$(delete_version_separator '_') |
208 |
-MY_PN="${PN/-kernel}" |
209 |
-MY_P="${MY_PN}-${MY_PV}" |
210 |
-PVER="20170822" |
211 |
- |
212 |
-DESCRIPTION="The OpenAFS distributed file system kernel module" |
213 |
-HOMEPAGE="https://www.openafs.org/" |
214 |
-# We always d/l the doc tarball as man pages are not USE=doc material |
215 |
-[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE="" |
216 |
-SRC_URI=" |
217 |
- https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2 |
218 |
- https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz |
219 |
-" |
220 |
- |
221 |
-LICENSE="IBM BSD openafs-krb5-a APSL-2" |
222 |
-SLOT="0" |
223 |
-KEYWORDS="~amd64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
224 |
-IUSE="debug" |
225 |
- |
226 |
-S=${WORKDIR}/${MY_P} |
227 |
- |
228 |
-CONFIG_CHECK="~!AFS_FS KEYS" |
229 |
-ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!" |
230 |
-ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled" |
231 |
- |
232 |
-QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko" |
233 |
-QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko" |
234 |
- |
235 |
-PATCHES=( "${WORKDIR}/gentoo/patches" ) |
236 |
- |
237 |
-pkg_pretend() { |
238 |
- if use kernel_linux && kernel_is ge 4 16 ; then |
239 |
- ewarn "Gentoo supports kernels which are supported by OpenAFS" |
240 |
- ewarn "which are limited to the kernel versions: < 4.16" |
241 |
- ewarn "" |
242 |
- ewarn "You are free to utilize epatch_user to provide whatever" |
243 |
- ewarn "support you feel is appropriate, but will not receive" |
244 |
- ewarn "support as a result of those changes." |
245 |
- ewarn "" |
246 |
- ewarn "Please do not file a bug report about this." |
247 |
- fi |
248 |
-} |
249 |
- |
250 |
-pkg_setup() { |
251 |
- if use kernel_linux; then |
252 |
- linux-mod_pkg_setup |
253 |
- fi |
254 |
-} |
255 |
- |
256 |
-src_prepare() { |
257 |
- default |
258 |
- |
259 |
- # packaging is f-ed up, so we can't run eautoreconf |
260 |
- # run autotools commands based on what is listed in regen.sh |
261 |
- eaclocal -I src/cf |
262 |
- eautoconf |
263 |
- eautoconf -o configure-libafs configure-libafs.ac |
264 |
- eautoheader |
265 |
- einfo "Deleting autom4te.cache directory" |
266 |
- rm -rf autom4te.cache |
267 |
-} |
268 |
- |
269 |
-src_configure() { |
270 |
- local myconf="" |
271 |
- # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option |
272 |
- if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then |
273 |
- myconf="--enable-linux-d_splice_alias-extra-iput" |
274 |
- fi |
275 |
- |
276 |
- local ARCH="$(tc-arch-kernel)" |
277 |
- local MY_ARCH="$(tc-arch)" |
278 |
- local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC" |
279 |
- |
280 |
- if use kernel_linux; then |
281 |
- myconf+=( --with-linux-kernel-headers="${KV_DIR}" \ |
282 |
- --with-linux-kernel-build="${KV_OUT_DIR}" |
283 |
- ) |
284 |
- elif use kernel_FreeBSD; then |
285 |
- myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" ) |
286 |
- fi |
287 |
- econf \ |
288 |
- $(use_enable debug debug-kernel) \ |
289 |
- "${myconf[@]}" |
290 |
-} |
291 |
- |
292 |
-src_compile() { |
293 |
- ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs |
294 |
-} |
295 |
- |
296 |
-src_install() { |
297 |
- if use kernel_linux; then |
298 |
- local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*) |
299 |
- [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module" |
300 |
- |
301 |
- MODULE_NAMES="libafs(fs/openafs:${srcdir})" |
302 |
- |
303 |
- linux-mod_src_install |
304 |
- elif use kernel_FreeBSD; then |
305 |
- insinto /boot/modules |
306 |
- doins "${S}"/src/libafs/MODLOAD/libafs.ko |
307 |
- fi |
308 |
-} |
309 |
- |
310 |
-pkg_postinst() { |
311 |
- # Update linker.hints file |
312 |
- use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" |
313 |
- use kernel_linux && linux-mod_pkg_postinst |
314 |
- |
315 |
- if use kernel_linux; then |
316 |
- local v |
317 |
- for v in ${REPLACING_VERSIONS}; do |
318 |
- if ! version_is_at_least 1.6.18.2 ${v}; then |
319 |
- ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires" |
320 |
- ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config." |
321 |
- ewarn "If you only turned this option off for OpenAFS, please re-enable" |
322 |
- ewarn "it, as keeping it turned off is a security risk." |
323 |
- break |
324 |
- fi |
325 |
- done |
326 |
- fi |
327 |
-} |
328 |
- |
329 |
-pkg_postrm() { |
330 |
- # Update linker.hints file |
331 |
- use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" |
332 |
- use kernel_linux && linux-mod_pkg_postrm |
333 |
-} |