1 |
commit: 5ce35bfa52b985b99359bf8c67392c9030be2b0b |
2 |
Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 2 04:36:45 2018 +0000 |
4 |
Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 2 04:41:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ce35bfa |
7 |
|
8 |
net-fs/openafs-kernel: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
net-fs/openafs-kernel/Manifest | 1 - |
13 |
net-fs/openafs-kernel/openafs-kernel-1.6.22.ebuild | 134 --------------------- |
14 |
2 files changed, 135 deletions(-) |
15 |
|
16 |
diff --git a/net-fs/openafs-kernel/Manifest b/net-fs/openafs-kernel/Manifest |
17 |
index 922ed87a9d2..34c6a22cc32 100644 |
18 |
--- a/net-fs/openafs-kernel/Manifest |
19 |
+++ b/net-fs/openafs-kernel/Manifest |
20 |
@@ -1,4 +1,3 @@ |
21 |
-DIST openafs-1.6.22-src.tar.bz2 14606745 BLAKE2B ee406ac0bc2f91862b916fe2c84bb5b1887b43bfb396a0d4b4d3349420b4af397344a2c4d585698fe6f3870fba2090df7b7da85431275b5d1c28b01168221557 SHA512 7a533462175e79aa48339c5105d2dbddde284e23e5d5bcff58a4893839fc7bcfdd779d1d65abfc5217b185624bf88fe1ef02d0c37d29b6ff96616e96f54a6d87 |
22 |
DIST openafs-1.6.22.1-src.tar.bz2 14682183 BLAKE2B a01e08f30f28dda9484407bbe0568df7b517e587b6e2475d669269e09745050bee955438dfeab9d86564dbc22821bc2fb417c15f8add0aae6acdde266c080df0 SHA512 901959051f60f7ffa2db8a253a16f9460713e3637a53f0b6b05e72247e08b633951116dc28b19db9c7448d8ebc7a20a8a851d5356c52f16c28f5c89209f8190e |
23 |
DIST openafs-1.6.22.2-src.tar.bz2 14673379 BLAKE2B 06408ad98a1812608b14ee89ffa40ccbbf6aa7d41dc0741c9c7b9e2c59a3f88c1f6676aa2f996b888cb7f50c04f0c8fe2da15c3f3647e3998f70c973c18ea7d3 SHA512 e4f2ce326a1d04ec20b1fa4115509bf35f73d937ff77e6e017e851ce871542d935e5ae8a597efd14027c385869657cf538cffa2674878bd4d4da37f20626172c |
24 |
DIST openafs-patches-20170822.tar.xz 11036 BLAKE2B e53d9e01c5808ca9876fd22f729e0e82cb0f6bc7c1f4875ad0607ac9d547e216c61cc2c3506eaafb7c81318958cd038c177e9e5b2c3728997d7f44e13bbbded4 SHA512 f4b574287bfe54881a70f3ccd4d4901b2f8f9ecbec7b3a4975b59050d5ef27c6de3da25f820b7b2b10f1a38034bb28e5c01ee094fb38cae80e244eeb04b29d0a |
25 |
|
26 |
diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.22.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.22.ebuild |
27 |
deleted file mode 100644 |
28 |
index 406275e0ca5..00000000000 |
29 |
--- a/net-fs/openafs-kernel/openafs-kernel-1.6.22.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,134 +0,0 @@ |
32 |
-# Copyright 1999-2017 Gentoo Foundation |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI="6" |
36 |
- |
37 |
-inherit autotools linux-mod multilib toolchain-funcs versionator |
38 |
- |
39 |
-MY_PV=$(delete_version_separator '_') |
40 |
-MY_PN="${PN/-kernel}" |
41 |
-MY_P="${MY_PN}-${MY_PV}" |
42 |
-PVER="20170822" |
43 |
- |
44 |
-DESCRIPTION="The OpenAFS distributed file system kernel module" |
45 |
-HOMEPAGE="https://www.openafs.org/" |
46 |
-# We always d/l the doc tarball as man pages are not USE=doc material |
47 |
-[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE="" |
48 |
-SRC_URI=" |
49 |
- https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2 |
50 |
- https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz |
51 |
-" |
52 |
- |
53 |
-LICENSE="IBM BSD openafs-krb5-a APSL-2" |
54 |
-SLOT="0" |
55 |
-KEYWORDS="amd64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
56 |
-IUSE="debug" |
57 |
- |
58 |
-S=${WORKDIR}/${MY_P} |
59 |
- |
60 |
-CONFIG_CHECK="~!AFS_FS KEYS" |
61 |
-ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!" |
62 |
-ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled" |
63 |
- |
64 |
-QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko" |
65 |
-QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko" |
66 |
- |
67 |
-PATCHES=( "${WORKDIR}/gentoo/patches" ) |
68 |
- |
69 |
-pkg_pretend() { |
70 |
- if use kernel_linux && kernel_is ge 4 14 ; then |
71 |
- ewarn "Gentoo supports kernels which are supported by OpenAFS" |
72 |
- ewarn "which are limited to the kernel versions: < 4.14" |
73 |
- ewarn "" |
74 |
- ewarn "You are free to utilize epatch_user to provide whatever" |
75 |
- ewarn "support you feel is appropriate, but will not receive" |
76 |
- ewarn "support as a result of those changes." |
77 |
- ewarn "" |
78 |
- ewarn "Please do not file a bug report about this." |
79 |
- fi |
80 |
-} |
81 |
- |
82 |
-pkg_setup() { |
83 |
- if use kernel_linux; then |
84 |
- linux-mod_pkg_setup |
85 |
- fi |
86 |
-} |
87 |
- |
88 |
-src_prepare() { |
89 |
- default |
90 |
- |
91 |
- # packaging is f-ed up, so we can't run eautoreconf |
92 |
- # run autotools commands based on what is listed in regen.sh |
93 |
- eaclocal -I src/cf |
94 |
- eautoconf |
95 |
- eautoconf -o configure-libafs configure-libafs.ac |
96 |
- eautoheader |
97 |
- einfo "Deleting autom4te.cache directory" |
98 |
- rm -rf autom4te.cache |
99 |
-} |
100 |
- |
101 |
-src_configure() { |
102 |
- local myconf="" |
103 |
- # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option |
104 |
- if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then |
105 |
- myconf="--enable-linux-d_splice_alias-extra-iput" |
106 |
- fi |
107 |
- |
108 |
- local ARCH="$(tc-arch-kernel)" |
109 |
- local MY_ARCH="$(tc-arch)" |
110 |
- local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC" |
111 |
- |
112 |
- if use kernel_linux; then |
113 |
- myconf+=( --with-linux-kernel-headers="${KV_DIR}" \ |
114 |
- --with-linux-kernel-build="${KV_OUT_DIR}" |
115 |
- ) |
116 |
- elif use kernel_FreeBSD; then |
117 |
- myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" ) |
118 |
- fi |
119 |
- econf \ |
120 |
- $(use_enable debug debug-kernel) \ |
121 |
- "${myconf[@]}" |
122 |
-} |
123 |
- |
124 |
-src_compile() { |
125 |
- ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs |
126 |
-} |
127 |
- |
128 |
-src_install() { |
129 |
- if use kernel_linux; then |
130 |
- local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*) |
131 |
- [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module" |
132 |
- |
133 |
- MODULE_NAMES="libafs(fs/openafs:${srcdir})" |
134 |
- |
135 |
- linux-mod_src_install |
136 |
- elif use kernel_FreeBSD; then |
137 |
- insinto /boot/modules |
138 |
- doins "${S}"/src/libafs/MODLOAD/libafs.ko |
139 |
- fi |
140 |
-} |
141 |
- |
142 |
-pkg_postinst() { |
143 |
- # Update linker.hints file |
144 |
- use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" |
145 |
- use kernel_linux && linux-mod_pkg_postinst |
146 |
- |
147 |
- if use kernel_linux; then |
148 |
- local v |
149 |
- for v in ${REPLACING_VERSIONS}; do |
150 |
- if ! version_is_at_least 1.6.18.2 ${v}; then |
151 |
- ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires" |
152 |
- ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config." |
153 |
- ewarn "If you only turned this option off for OpenAFS, please re-enable" |
154 |
- ewarn "it, as keeping it turned off is a security risk." |
155 |
- break |
156 |
- fi |
157 |
- done |
158 |
- fi |
159 |
-} |
160 |
- |
161 |
-pkg_postrm() { |
162 |
- # Update linker.hints file |
163 |
- use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" |
164 |
- use kernel_linux && linux-mod_pkg_postrm |
165 |
-} |