Gentoo Archives: gentoo-commits

From: NP Hardass <np-hardass@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/openafs-kernel/
Date: Mon, 11 Dec 2017 19:16:33
Message-Id: 1513019765.775ef9dfac3c9a07e5ec226d0de448a8cdf95501.np-hardass@gentoo
1 commit: 775ef9dfac3c9a07e5ec226d0de448a8cdf95501
2 Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 11 19:16:05 2017 +0000
4 Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 11 19:16:05 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=775ef9df
7
8 net-fs/openafs-kernel: Drop older versions
9
10 Bug: https://bugs.gentoo.org/640536
11 Package-Manager: Portage-2.3.16, Repoman-2.3.6
12
13 net-fs/openafs-kernel/Manifest | 5 -
14 .../openafs-kernel/openafs-kernel-1.6.20.1.ebuild | 134 ---------------------
15 .../openafs-kernel-1.6.20.2-r1.ebuild | 134 ---------------------
16 .../openafs-kernel/openafs-kernel-1.6.21-r1.ebuild | 134 ---------------------
17 .../openafs-kernel/openafs-kernel-1.6.21.1.ebuild | 134 ---------------------
18 5 files changed, 541 deletions(-)
19
20 diff --git a/net-fs/openafs-kernel/Manifest b/net-fs/openafs-kernel/Manifest
21 index ce512c9c6ad..57d545818ef 100644
22 --- a/net-fs/openafs-kernel/Manifest
23 +++ b/net-fs/openafs-kernel/Manifest
24 @@ -1,7 +1,2 @@
25 -DIST openafs-1.6.20.1-src.tar.bz2 14672548 BLAKE2B e558a43be0dc0098b726f5a969cf1cf0d64dafdc9405b605c9eea2ce6ed8c4fa3026b3ee5e7277609286e25bf9db69f2e10789fd78aef2693ac4d67ae4311bfe SHA512 cd6a0cd5d48fffaf37d143a9f8f7cd84c78ada6a645ac1a6cd3cf5b4a8a5af602e84133506c797e62ef2e61180a1c89915ea8657ac95bb872ada018b1baf0d59
26 -DIST openafs-1.6.20.2-src.tar.bz2 14676861 BLAKE2B 538534c451e51e449d225772cfb38a119b2297aee82bf5758434a8d5784b08afb08996f7dd80d78e11c9da8a55165815aa138bdb4aba4bda86549a1d2e5ab8d4 SHA512 74c50fa71a98e7ad8bfed0610ab1dbf5c6669cdbd1e240c7b155f345fc511d9e51b4d9caa8d235223ad929b711577a192ca0841c92279bf16991cace8f19a575
27 -DIST openafs-1.6.21-src.tar.bz2 14682997 BLAKE2B 304a1ad57528f933dcf12d40b30325a58cbee21edfae5d043098cdf77b620fb321bcab01d28300ecc380486d87bb1925e2f030d9bd23afb58432fd0d0782736a SHA512 451c38ed5031b8a962da3276bf5d0f1b74c5956c2d10cdb8bbd22ea633880ebf35cf5fc71feb5d2eca4306762f6c2376a46f4522150291acfc469f8be2da757f
28 -DIST openafs-1.6.21.1-src.tar.bz2 14679991 BLAKE2B 7c18dccb638ed24b33d188f9e58447135a06aed4cf1f4ce8d5c985f1efcb418d891187b4492f2f50111994801852db080c6dec4d0c5629771dcea3393f90add5 SHA512 a8c496657a59ee00411717aac8b6c4ca64f7ffeef400ae84ff902c8b2d81d19a367f78fbe105512ec7ec7181e8b0158fc359565eb99e2beb39d6a93ed1b28f98
29 DIST openafs-1.6.22-src.tar.bz2 14606745 BLAKE2B ee406ac0bc2f91862b916fe2c84bb5b1887b43bfb396a0d4b4d3349420b4af397344a2c4d585698fe6f3870fba2090df7b7da85431275b5d1c28b01168221557 SHA512 7a533462175e79aa48339c5105d2dbddde284e23e5d5bcff58a4893839fc7bcfdd779d1d65abfc5217b185624bf88fe1ef02d0c37d29b6ff96616e96f54a6d87
30 -DIST openafs-patches-20170212.tar.xz 11008 BLAKE2B 6a51a849a61dbc8486a78ba44ced693f76dcb79f1db0131e82e81d16f66bee658b9604064b7c828545dcc4984d4c0f25c5972cf2e61c2036d1d093662068d539 SHA512 13e525a3f612b43318ad2fefaa3edf15ad572153494e94826815400f90a253678d2ade44d6adae08b1cb0dc8f311f5407f5aa540ed0df7a2d2d6024695bd917f
31 DIST openafs-patches-20170822.tar.xz 11036 BLAKE2B e53d9e01c5808ca9876fd22f729e0e82cb0f6bc7c1f4875ad0607ac9d547e216c61cc2c3506eaafb7c81318958cd038c177e9e5b2c3728997d7f44e13bbbded4 SHA512 f4b574287bfe54881a70f3ccd4d4901b2f8f9ecbec7b3a4975b59050d5ef27c6de3da25f820b7b2b10f1a38034bb28e5c01ee094fb38cae80e244eeb04b29d0a
32
33 diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.20.1.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.20.1.ebuild
34 deleted file mode 100644
35 index cff675598aa..00000000000
36 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.20.1.ebuild
37 +++ /dev/null
38 @@ -1,134 +0,0 @@
39 -# Copyright 1999-2017 Gentoo Foundation
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI="6"
43 -
44 -inherit autotools linux-mod multilib toolchain-funcs versionator
45 -
46 -MY_PV=$(delete_version_separator '_')
47 -MY_PN="${PN/-kernel}"
48 -MY_P="${MY_PN}-${MY_PV}"
49 -PVER="20170212"
50 -
51 -DESCRIPTION="The OpenAFS distributed file system kernel module"
52 -HOMEPAGE="https://www.openafs.org/"
53 -# We always d/l the doc tarball as man pages are not USE=doc material
54 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
55 -SRC_URI="
56 - https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
57 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz
58 -"
59 -
60 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
61 -SLOT="0"
62 -KEYWORDS="amd64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
63 -IUSE="debug"
64 -
65 -S=${WORKDIR}/${MY_P}
66 -
67 -CONFIG_CHECK="~!AFS_FS KEYS"
68 -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
69 -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
70 -
71 -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
72 -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
73 -
74 -PATCHES=( "${WORKDIR}/gentoo/patches" )
75 -
76 -pkg_pretend() {
77 - if use kernel_linux && kernel_is ge 4 10 ; then
78 - ewarn "Gentoo supports kernels which are supported by OpenAFS"
79 - ewarn "which are limited to the kernel versions: < 4.10"
80 - ewarn ""
81 - ewarn "You are free to utilize epatch_user to provide whatever"
82 - ewarn "support you feel is appropriate, but will not receive"
83 - ewarn "support as a result of those changes."
84 - ewarn ""
85 - ewarn "Please do not file a bug report about this."
86 - fi
87 -}
88 -
89 -pkg_setup() {
90 - if use kernel_linux; then
91 - linux-mod_pkg_setup
92 - fi
93 -}
94 -
95 -src_prepare() {
96 - default
97 -
98 - # packaging is f-ed up, so we can't run eautoreconf
99 - # run autotools commands based on what is listed in regen.sh
100 - eaclocal -I src/cf
101 - eautoconf
102 - eautoconf -o configure-libafs configure-libafs.ac
103 - eautoheader
104 - einfo "Deleting autom4te.cache directory"
105 - rm -rf autom4te.cache
106 -}
107 -
108 -src_configure() {
109 - local myconf=""
110 - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
111 - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
112 - myconf="--enable-linux-d_splice_alias-extra-iput"
113 - fi
114 -
115 - local ARCH="$(tc-arch-kernel)"
116 - local MY_ARCH="$(tc-arch)"
117 - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC"
118 -
119 - if use kernel_linux; then
120 - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \
121 - --with-linux-kernel-build="${KV_OUT_DIR}"
122 - )
123 - elif use kernel_FreeBSD; then
124 - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" )
125 - fi
126 - econf \
127 - $(use_enable debug debug-kernel) \
128 - "${myconf[@]}"
129 -}
130 -
131 -src_compile() {
132 - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
133 -}
134 -
135 -src_install() {
136 - if use kernel_linux; then
137 - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
138 - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
139 -
140 - MODULE_NAMES="libafs(fs/openafs:${srcdir})"
141 -
142 - linux-mod_src_install
143 - elif use kernel_FreeBSD; then
144 - insinto /boot/modules
145 - doins "${S}"/src/libafs/MODLOAD/libafs.ko
146 - fi
147 -}
148 -
149 -pkg_postinst() {
150 - # Update linker.hints file
151 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
152 - use kernel_linux && linux-mod_pkg_postinst
153 -
154 - if use kernel_linux; then
155 - local v
156 - for v in ${REPLACING_VERSIONS}; do
157 - if ! version_is_at_least 1.6.18.2 ${v}; then
158 - ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires"
159 - ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config."
160 - ewarn "If you only turned this option off for OpenAFS, please re-enable"
161 - ewarn "it, as keeping it turned off is a security risk."
162 - break
163 - fi
164 - done
165 - fi
166 -}
167 -
168 -pkg_postrm() {
169 - # Update linker.hints file
170 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
171 - use kernel_linux && linux-mod_pkg_postrm
172 -}
173
174 diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.20.2-r1.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.20.2-r1.ebuild
175 deleted file mode 100644
176 index 4098bbf1821..00000000000
177 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.20.2-r1.ebuild
178 +++ /dev/null
179 @@ -1,134 +0,0 @@
180 -# Copyright 1999-2017 Gentoo Foundation
181 -# Distributed under the terms of the GNU General Public License v2
182 -
183 -EAPI="6"
184 -
185 -inherit autotools linux-mod multilib toolchain-funcs versionator
186 -
187 -MY_PV=$(delete_version_separator '_')
188 -MY_PN="${PN/-kernel}"
189 -MY_P="${MY_PN}-${MY_PV}"
190 -PVER="20170822"
191 -
192 -DESCRIPTION="The OpenAFS distributed file system kernel module"
193 -HOMEPAGE="https://www.openafs.org/"
194 -# We always d/l the doc tarball as man pages are not USE=doc material
195 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
196 -SRC_URI="
197 - https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
198 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz
199 -"
200 -
201 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
202 -SLOT="0"
203 -KEYWORDS="~amd64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
204 -IUSE="debug"
205 -
206 -S=${WORKDIR}/${MY_P}
207 -
208 -CONFIG_CHECK="~!AFS_FS KEYS"
209 -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
210 -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
211 -
212 -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
213 -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
214 -
215 -PATCHES=( "${WORKDIR}/gentoo/patches" )
216 -
217 -pkg_pretend() {
218 - if use kernel_linux && kernel_is ge 4 12 ; then
219 - ewarn "Gentoo supports kernels which are supported by OpenAFS"
220 - ewarn "which are limited to the kernel versions: < 4.12"
221 - ewarn ""
222 - ewarn "You are free to utilize epatch_user to provide whatever"
223 - ewarn "support you feel is appropriate, but will not receive"
224 - ewarn "support as a result of those changes."
225 - ewarn ""
226 - ewarn "Please do not file a bug report about this."
227 - fi
228 -}
229 -
230 -pkg_setup() {
231 - if use kernel_linux; then
232 - linux-mod_pkg_setup
233 - fi
234 -}
235 -
236 -src_prepare() {
237 - default
238 -
239 - # packaging is f-ed up, so we can't run eautoreconf
240 - # run autotools commands based on what is listed in regen.sh
241 - eaclocal -I src/cf
242 - eautoconf
243 - eautoconf -o configure-libafs configure-libafs.ac
244 - eautoheader
245 - einfo "Deleting autom4te.cache directory"
246 - rm -rf autom4te.cache
247 -}
248 -
249 -src_configure() {
250 - local myconf=""
251 - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
252 - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
253 - myconf="--enable-linux-d_splice_alias-extra-iput"
254 - fi
255 -
256 - local ARCH="$(tc-arch-kernel)"
257 - local MY_ARCH="$(tc-arch)"
258 - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC"
259 -
260 - if use kernel_linux; then
261 - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \
262 - --with-linux-kernel-build="${KV_OUT_DIR}"
263 - )
264 - elif use kernel_FreeBSD; then
265 - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" )
266 - fi
267 - econf \
268 - $(use_enable debug debug-kernel) \
269 - "${myconf[@]}"
270 -}
271 -
272 -src_compile() {
273 - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
274 -}
275 -
276 -src_install() {
277 - if use kernel_linux; then
278 - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
279 - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
280 -
281 - MODULE_NAMES="libafs(fs/openafs:${srcdir})"
282 -
283 - linux-mod_src_install
284 - elif use kernel_FreeBSD; then
285 - insinto /boot/modules
286 - doins "${S}"/src/libafs/MODLOAD/libafs.ko
287 - fi
288 -}
289 -
290 -pkg_postinst() {
291 - # Update linker.hints file
292 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
293 - use kernel_linux && linux-mod_pkg_postinst
294 -
295 - if use kernel_linux; then
296 - local v
297 - for v in ${REPLACING_VERSIONS}; do
298 - if ! version_is_at_least 1.6.18.2 ${v}; then
299 - ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires"
300 - ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config."
301 - ewarn "If you only turned this option off for OpenAFS, please re-enable"
302 - ewarn "it, as keeping it turned off is a security risk."
303 - break
304 - fi
305 - done
306 - fi
307 -}
308 -
309 -pkg_postrm() {
310 - # Update linker.hints file
311 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
312 - use kernel_linux && linux-mod_pkg_postrm
313 -}
314
315 diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.21-r1.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.21-r1.ebuild
316 deleted file mode 100644
317 index cd28b79075b..00000000000
318 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.21-r1.ebuild
319 +++ /dev/null
320 @@ -1,134 +0,0 @@
321 -# Copyright 1999-2017 Gentoo Foundation
322 -# Distributed under the terms of the GNU General Public License v2
323 -
324 -EAPI="6"
325 -
326 -inherit autotools linux-mod multilib toolchain-funcs versionator
327 -
328 -MY_PV=$(delete_version_separator '_')
329 -MY_PN="${PN/-kernel}"
330 -MY_P="${MY_PN}-${MY_PV}"
331 -PVER="20170822"
332 -
333 -DESCRIPTION="The OpenAFS distributed file system kernel module"
334 -HOMEPAGE="https://www.openafs.org/"
335 -# We always d/l the doc tarball as man pages are not USE=doc material
336 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
337 -SRC_URI="
338 - https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
339 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz
340 -"
341 -
342 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
343 -SLOT="0"
344 -KEYWORDS="amd64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
345 -IUSE="debug"
346 -
347 -S=${WORKDIR}/${MY_P}
348 -
349 -CONFIG_CHECK="~!AFS_FS KEYS"
350 -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
351 -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
352 -
353 -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
354 -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
355 -
356 -PATCHES=( "${WORKDIR}/gentoo/patches" )
357 -
358 -pkg_pretend() {
359 - if use kernel_linux && kernel_is ge 4 13 ; then
360 - ewarn "Gentoo supports kernels which are supported by OpenAFS"
361 - ewarn "which are limited to the kernel versions: < 4.13"
362 - ewarn ""
363 - ewarn "You are free to utilize epatch_user to provide whatever"
364 - ewarn "support you feel is appropriate, but will not receive"
365 - ewarn "support as a result of those changes."
366 - ewarn ""
367 - ewarn "Please do not file a bug report about this."
368 - fi
369 -}
370 -
371 -pkg_setup() {
372 - if use kernel_linux; then
373 - linux-mod_pkg_setup
374 - fi
375 -}
376 -
377 -src_prepare() {
378 - default
379 -
380 - # packaging is f-ed up, so we can't run eautoreconf
381 - # run autotools commands based on what is listed in regen.sh
382 - eaclocal -I src/cf
383 - eautoconf
384 - eautoconf -o configure-libafs configure-libafs.ac
385 - eautoheader
386 - einfo "Deleting autom4te.cache directory"
387 - rm -rf autom4te.cache
388 -}
389 -
390 -src_configure() {
391 - local myconf=""
392 - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
393 - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
394 - myconf="--enable-linux-d_splice_alias-extra-iput"
395 - fi
396 -
397 - local ARCH="$(tc-arch-kernel)"
398 - local MY_ARCH="$(tc-arch)"
399 - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC"
400 -
401 - if use kernel_linux; then
402 - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \
403 - --with-linux-kernel-build="${KV_OUT_DIR}"
404 - )
405 - elif use kernel_FreeBSD; then
406 - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" )
407 - fi
408 - econf \
409 - $(use_enable debug debug-kernel) \
410 - "${myconf[@]}"
411 -}
412 -
413 -src_compile() {
414 - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
415 -}
416 -
417 -src_install() {
418 - if use kernel_linux; then
419 - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
420 - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
421 -
422 - MODULE_NAMES="libafs(fs/openafs:${srcdir})"
423 -
424 - linux-mod_src_install
425 - elif use kernel_FreeBSD; then
426 - insinto /boot/modules
427 - doins "${S}"/src/libafs/MODLOAD/libafs.ko
428 - fi
429 -}
430 -
431 -pkg_postinst() {
432 - # Update linker.hints file
433 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
434 - use kernel_linux && linux-mod_pkg_postinst
435 -
436 - if use kernel_linux; then
437 - local v
438 - for v in ${REPLACING_VERSIONS}; do
439 - if ! version_is_at_least 1.6.18.2 ${v}; then
440 - ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires"
441 - ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config."
442 - ewarn "If you only turned this option off for OpenAFS, please re-enable"
443 - ewarn "it, as keeping it turned off is a security risk."
444 - break
445 - fi
446 - done
447 - fi
448 -}
449 -
450 -pkg_postrm() {
451 - # Update linker.hints file
452 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
453 - use kernel_linux && linux-mod_pkg_postrm
454 -}
455
456 diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.21.1.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.21.1.ebuild
457 deleted file mode 100644
458 index 4d7d351471f..00000000000
459 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.21.1.ebuild
460 +++ /dev/null
461 @@ -1,134 +0,0 @@
462 -# Copyright 1999-2017 Gentoo Foundation
463 -# Distributed under the terms of the GNU General Public License v2
464 -
465 -EAPI="6"
466 -
467 -inherit autotools linux-mod multilib toolchain-funcs versionator
468 -
469 -MY_PV=$(delete_version_separator '_')
470 -MY_PN="${PN/-kernel}"
471 -MY_P="${MY_PN}-${MY_PV}"
472 -PVER="20170822"
473 -
474 -DESCRIPTION="The OpenAFS distributed file system kernel module"
475 -HOMEPAGE="https://www.openafs.org/"
476 -# We always d/l the doc tarball as man pages are not USE=doc material
477 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
478 -SRC_URI="
479 - https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
480 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz
481 -"
482 -
483 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
484 -SLOT="0"
485 -KEYWORDS="~amd64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
486 -IUSE="debug"
487 -
488 -S=${WORKDIR}/${MY_P}
489 -
490 -CONFIG_CHECK="~!AFS_FS KEYS"
491 -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
492 -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
493 -
494 -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
495 -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
496 -
497 -PATCHES=( "${WORKDIR}/gentoo/patches" )
498 -
499 -pkg_pretend() {
500 - if use kernel_linux && kernel_is ge 4 14 ; then
501 - ewarn "Gentoo supports kernels which are supported by OpenAFS"
502 - ewarn "which are limited to the kernel versions: < 4.14"
503 - ewarn ""
504 - ewarn "You are free to utilize epatch_user to provide whatever"
505 - ewarn "support you feel is appropriate, but will not receive"
506 - ewarn "support as a result of those changes."
507 - ewarn ""
508 - ewarn "Please do not file a bug report about this."
509 - fi
510 -}
511 -
512 -pkg_setup() {
513 - if use kernel_linux; then
514 - linux-mod_pkg_setup
515 - fi
516 -}
517 -
518 -src_prepare() {
519 - default
520 -
521 - # packaging is f-ed up, so we can't run eautoreconf
522 - # run autotools commands based on what is listed in regen.sh
523 - eaclocal -I src/cf
524 - eautoconf
525 - eautoconf -o configure-libafs configure-libafs.ac
526 - eautoheader
527 - einfo "Deleting autom4te.cache directory"
528 - rm -rf autom4te.cache
529 -}
530 -
531 -src_configure() {
532 - local myconf=""
533 - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
534 - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
535 - myconf="--enable-linux-d_splice_alias-extra-iput"
536 - fi
537 -
538 - local ARCH="$(tc-arch-kernel)"
539 - local MY_ARCH="$(tc-arch)"
540 - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC"
541 -
542 - if use kernel_linux; then
543 - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \
544 - --with-linux-kernel-build="${KV_OUT_DIR}"
545 - )
546 - elif use kernel_FreeBSD; then
547 - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" )
548 - fi
549 - econf \
550 - $(use_enable debug debug-kernel) \
551 - "${myconf[@]}"
552 -}
553 -
554 -src_compile() {
555 - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
556 -}
557 -
558 -src_install() {
559 - if use kernel_linux; then
560 - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
561 - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
562 -
563 - MODULE_NAMES="libafs(fs/openafs:${srcdir})"
564 -
565 - linux-mod_src_install
566 - elif use kernel_FreeBSD; then
567 - insinto /boot/modules
568 - doins "${S}"/src/libafs/MODLOAD/libafs.ko
569 - fi
570 -}
571 -
572 -pkg_postinst() {
573 - # Update linker.hints file
574 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
575 - use kernel_linux && linux-mod_pkg_postinst
576 -
577 - if use kernel_linux; then
578 - local v
579 - for v in ${REPLACING_VERSIONS}; do
580 - if ! version_is_at_least 1.6.18.2 ${v}; then
581 - ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires"
582 - ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config."
583 - ewarn "If you only turned this option off for OpenAFS, please re-enable"
584 - ewarn "it, as keeping it turned off is a security risk."
585 - break
586 - fi
587 - done
588 - fi
589 -}
590 -
591 -pkg_postrm() {
592 - # Update linker.hints file
593 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
594 - use kernel_linux && linux-mod_pkg_postrm
595 -}