Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/openafs-kernel/
Date: Sun, 25 Dec 2016 22:45:21
Message-Id: 1482705793.8474baf9a13b26b61d8c630a8db9bcdd03518fcb.bircoph@gentoo
1 commit: 8474baf9a13b26b61d8c630a8db9bcdd03518fcb
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 25 22:43:13 2016 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 25 22:43:13 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8474baf9
7
8 net-fs/openafs-kernel: remove old
9
10 Package-Manager: portage-2.3.3
11 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
12
13 net-fs/openafs-kernel/Manifest | 3 -
14 net-fs/openafs-kernel/openafs-kernel-1.6.17.ebuild | 121 ------------------
15 .../openafs-kernel/openafs-kernel-1.6.18.2.ebuild | 135 ---------------------
16 3 files changed, 259 deletions(-)
17
18 diff --git a/net-fs/openafs-kernel/Manifest b/net-fs/openafs-kernel/Manifest
19 index f8b2010..e0417e3 100644
20 --- a/net-fs/openafs-kernel/Manifest
21 +++ b/net-fs/openafs-kernel/Manifest
22 @@ -1,5 +1,2 @@
23 -DIST openafs-1.6.17-src.tar.bz2 14607107 SHA256 96413a2dbffdc9170cc5dde6aa5ad0ae2383c6106994285ed8f186928813a398 SHA512 3ca61a7731c9bd9bae7da2f7b3900438fcc9f75c95b354574389c2203af2ec0a7b4dcaaf13a437743477fcad8a46c3bbb8c68255a976b9a9917b8f0a0cdf028f WHIRLPOOL 92de51878836a721e6fadbe2f6c7a8069ecf622a08fd05e3a01d8fef376bd2e18e9f3b4715d42a26e8d5f1d665f91924520ed6928ed1f460bac49b1bc906e129
24 -DIST openafs-1.6.18.2-src.tar.bz2 14652869 SHA256 1e0749b33a20700651ec61436a25ad8d047ffc189a2d024614e7aeedaef57483 SHA512 a9690349c665baa29171d8256e41cac817599e742880bbb02382bdda67a1adc0b4910aa2a1e92dea4867cc25832b27b6561c4ff05f5103a0da952e60b6facfac WHIRLPOOL 830ee1e4285c3e8f5f6b5eac2dcecfb75d5007a9960525d53438ee71135aed269f558ef1fa6a07bd72dd911f496597db6bc085ef2cc342f543cd0e2edfde53b4
25 DIST openafs-1.6.18.3-src.tar.bz2 14668811 SHA256 b9cb45fdfd2aab543363e64da0b56167bfc1a302afdbcd5a076fb704a0c16a70 SHA512 679b463109c47fd252853e6f12c7e60148cf78f6d2699d468b1e1f85bbd5b392a909c3f2201460e3192ad7a60bad64c58489980c2efcd904ab4851df8724d47f WHIRLPOOL 8180188e3ecc87f002d5a4b4c4641949869a09b88474a75850e27dea1134dca1156ae4533f997494d64b8820aa4dc0f0ceb7b4dda01648c95f70408c190d353b
26 -DIST openafs-patches-20160801-1.tar.xz 10908 SHA256 d81c46d12e49fc917dc5171ddabd838d3c8c16dcb272edc533f6dbdda4dccadf SHA512 fc2ae985a69718ae4e12412059ed9431fccf854540e5b59112ea13be057b47695f8f14213d1c87d1eab2ff0d0c34407febfd37dbf8794cac6e3de223beb693fd WHIRLPOOL ea3e7e70f3f469561ef48d11bfa3f481c9d34265c78b45e1578b012432f7ff49463dacc938aee98060404baa79bed980a07b01422f076a2626308a842b99cbad
27 DIST openafs-patches-20160801-2.tar.xz 11004 SHA256 7037d9657bd3c90725fd8b2b063bef80cedcc9fbf0605c7a3bf3543b64eecb58 SHA512 42768bc54cbeafea2c8042b84368d9fcfc4e54681d1077eb1fd6a3d1633aa1a0ba2f6fd291a182a9f2f930f111d2ff587be9fe8a8b941b1e9535136ee344633b WHIRLPOOL 786c2155142916594f178cdc66631da5514f60ee0155e4420d702b4a934968e99ebb5d2de03beb8e22f00742972aeb3d9fb84d9051d9d67091264781deaa2108
28
29 diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.17.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.17.ebuild
30 deleted file mode 100644
31 index 5031548..00000000
32 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.17.ebuild
33 +++ /dev/null
34 @@ -1,121 +0,0 @@
35 -# Copyright 1999-2016 Gentoo Foundation
36 -# Distributed under the terms of the GNU General Public License v2
37 -# $Id$
38 -
39 -EAPI="6"
40 -
41 -inherit autotools linux-mod multilib toolchain-funcs versionator
42 -
43 -MY_PV=$(delete_version_separator '_')
44 -MY_PN="${PN/-kernel}"
45 -MY_P="${MY_PN}-${MY_PV}"
46 -PVER="20160801-1"
47 -
48 -DESCRIPTION="The OpenAFS distributed file system kernel module"
49 -HOMEPAGE="https://www.openafs.org/"
50 -# We always d/l the doc tarball as man pages are not USE=doc material
51 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
52 -SRC_URI="
53 - https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
54 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz
55 -"
56 -
57 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
58 -SLOT="0"
59 -KEYWORDS="amd64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
60 -IUSE=""
61 -
62 -S=${WORKDIR}/${MY_P}
63 -
64 -CONFIG_CHECK="!DEBUG_RODATA ~!AFS_FS KEYS"
65 -ERROR_DEBUG_RODATA="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option"
66 -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
67 -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
68 -
69 -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
70 -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
71 -
72 -PATCHES=( "${WORKDIR}/gentoo/patches" )
73 -
74 -pkg_pretend() {
75 - if use kernel_linux && kernel_is ge 4 3 ; then
76 - ewarn "Gentoo supports kernels which are supported by OpenAFS"
77 - ewarn "which are limited to the kernel versions: <4.3"
78 - ewarn ""
79 - ewarn "You are free to utilize epatch_user to provide whatever"
80 - ewarn "support you feel is appropriate, but will not receive"
81 - ewarn "support as a result of those changes."
82 - ewarn ""
83 - ewarn "Please do not file a bug report about this."
84 - fi
85 -}
86 -
87 -pkg_setup() {
88 - if use kernel_linux; then
89 - linux-mod_pkg_setup
90 - fi
91 -}
92 -
93 -src_prepare() {
94 - default
95 -
96 - # packaging is f-ed up, so we can't run eautoreconf
97 - # run autotools commands based on what is listed in regen.sh
98 - eaclocal -I src/cf
99 - eautoconf
100 - eautoconf -o configure-libafs configure-libafs.ac
101 - eautoheader
102 - einfo "Deleting autom4te.cache directory"
103 - rm -rf autom4te.cache
104 -}
105 -
106 -src_configure() {
107 - local myconf=""
108 - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
109 - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
110 - myconf="--enable-linux-d_splice_alias-extra-iput"
111 - fi
112 -
113 - local ARCH="$(tc-arch-kernel)"
114 - local MY_ARCH="$(tc-arch)"
115 - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC"
116 -
117 - if use kernel_linux; then
118 - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \
119 - --with-linux-kernel-build="${KV_OUT_DIR}"
120 - )
121 - elif use kernel_FreeBSD; then
122 - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" )
123 - fi
124 - econf "${myconf[@]}"
125 -}
126 -
127 -src_compile() {
128 - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
129 -}
130 -
131 -src_install() {
132 - if use kernel_linux; then
133 - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
134 - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
135 -
136 - MODULE_NAMES="libafs(fs/openafs:${srcdir})"
137 -
138 - linux-mod_src_install
139 - elif use kernel_FreeBSD; then
140 - insinto /boot/modules
141 - doins "${S}"/src/libafs/MODLOAD/libafs.ko
142 - fi
143 -}
144 -
145 -pkg_postinst() {
146 - # Update linker.hints file
147 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
148 - use kernel_linux && linux-mod_pkg_postinst
149 -}
150 -
151 -pkg_postrm() {
152 - # Update linker.hints file
153 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
154 - use kernel_linux && linux-mod_pkg_postrm
155 -}
156
157 diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild
158 deleted file mode 100644
159 index 82f4bf2..00000000
160 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild
161 +++ /dev/null
162 @@ -1,135 +0,0 @@
163 -# Copyright 1999-2016 Gentoo Foundation
164 -# Distributed under the terms of the GNU General Public License v2
165 -# $Id$
166 -
167 -EAPI="6"
168 -
169 -inherit autotools linux-mod multilib toolchain-funcs versionator
170 -
171 -MY_PV=$(delete_version_separator '_')
172 -MY_PN="${PN/-kernel}"
173 -MY_P="${MY_PN}-${MY_PV}"
174 -PVER="20160801-2"
175 -
176 -DESCRIPTION="The OpenAFS distributed file system kernel module"
177 -HOMEPAGE="https://www.openafs.org/"
178 -# We always d/l the doc tarball as man pages are not USE=doc material
179 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
180 -SRC_URI="
181 - https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
182 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz
183 -"
184 -
185 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
186 -SLOT="0"
187 -KEYWORDS="~amd64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
188 -IUSE="debug"
189 -
190 -S=${WORKDIR}/${MY_P}
191 -
192 -CONFIG_CHECK="~!AFS_FS KEYS"
193 -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
194 -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
195 -
196 -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
197 -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
198 -
199 -PATCHES=( "${WORKDIR}/gentoo/patches" )
200 -
201 -pkg_pretend() {
202 - if use kernel_linux && kernel_is ge 4 7 ; then
203 - ewarn "Gentoo supports kernels which are supported by OpenAFS"
204 - ewarn "which are limited to the kernel versions: < 4.7"
205 - ewarn ""
206 - ewarn "You are free to utilize epatch_user to provide whatever"
207 - ewarn "support you feel is appropriate, but will not receive"
208 - ewarn "support as a result of those changes."
209 - ewarn ""
210 - ewarn "Please do not file a bug report about this."
211 - fi
212 -}
213 -
214 -pkg_setup() {
215 - if use kernel_linux; then
216 - linux-mod_pkg_setup
217 - fi
218 -}
219 -
220 -src_prepare() {
221 - default
222 -
223 - # packaging is f-ed up, so we can't run eautoreconf
224 - # run autotools commands based on what is listed in regen.sh
225 - eaclocal -I src/cf
226 - eautoconf
227 - eautoconf -o configure-libafs configure-libafs.ac
228 - eautoheader
229 - einfo "Deleting autom4te.cache directory"
230 - rm -rf autom4te.cache
231 -}
232 -
233 -src_configure() {
234 - local myconf=""
235 - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
236 - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
237 - myconf="--enable-linux-d_splice_alias-extra-iput"
238 - fi
239 -
240 - local ARCH="$(tc-arch-kernel)"
241 - local MY_ARCH="$(tc-arch)"
242 - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC"
243 -
244 - if use kernel_linux; then
245 - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \
246 - --with-linux-kernel-build="${KV_OUT_DIR}"
247 - )
248 - elif use kernel_FreeBSD; then
249 - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" )
250 - fi
251 - econf \
252 - $(use_enable debug debug-kernel) \
253 - "${myconf[@]}"
254 -}
255 -
256 -src_compile() {
257 - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
258 -}
259 -
260 -src_install() {
261 - if use kernel_linux; then
262 - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
263 - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
264 -
265 - MODULE_NAMES="libafs(fs/openafs:${srcdir})"
266 -
267 - linux-mod_src_install
268 - elif use kernel_FreeBSD; then
269 - insinto /boot/modules
270 - doins "${S}"/src/libafs/MODLOAD/libafs.ko
271 - fi
272 -}
273 -
274 -pkg_postinst() {
275 - # Update linker.hints file
276 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
277 - use kernel_linux && linux-mod_pkg_postinst
278 -
279 - if use kernel_linux; then
280 - local v
281 - for v in ${REPLACING_VERSIONS}; do
282 - if ! version_is_at_least 1.6.18.2 ${v}; then
283 - ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires"
284 - ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config."
285 - ewarn "If you only turned this option off for OpenAFS, please re-enable"
286 - ewarn "it, as keeping it turned off is a security risk."
287 - break
288 - fi
289 - done
290 - fi
291 -}
292 -
293 -pkg_postrm() {
294 - # Update linker.hints file
295 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
296 - use kernel_linux && linux-mod_pkg_postrm
297 -}