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: Tue, 03 Nov 2015 19:07:08
Message-Id: 1446576629.a37e9749bbf4a863837081d613f98b69639c5279.bircoph@gentoo
1 commit: a37e9749bbf4a863837081d613f98b69639c5279
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 3 18:50:29 2015 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 3 18:50:29 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a37e9749
7
8 net-fs/openafs-kernel: remove vulnerable versions
9
10 See bug 556354.
11
12 Package-Manager: portage-2.2.23
13 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
14
15 net-fs/openafs-kernel/Manifest | 2 -
16 .../openafs-kernel/openafs-kernel-1.6.11.1.ebuild | 117 -------------------
17 net-fs/openafs-kernel/openafs-kernel-1.6.11.ebuild | 117 -------------------
18 net-fs/openafs-kernel/openafs-kernel-1.6.12.ebuild | 124 ---------------------
19 4 files changed, 360 deletions(-)
20
21 diff --git a/net-fs/openafs-kernel/Manifest b/net-fs/openafs-kernel/Manifest
22 index beb151c..a3f9875 100644
23 --- a/net-fs/openafs-kernel/Manifest
24 +++ b/net-fs/openafs-kernel/Manifest
25 @@ -1,5 +1,4 @@
26 DIST openafs-1.6.11-doc.tar.bz2 3530829 SHA256 d5cfa17ec06812a9961960bfdf54c1a753f512826fbbb41e3fdbb2310b5b5a59 SHA512 9bd792eae719c6cfa3d250ae31fcc2cd47e40d0b78f5e3453a5b242255bc64d88b9943ac5a7ab2565509904499d6b11a94d27e9c9b48b515aa51bd8f0670ec67 WHIRLPOOL 1a6bdc5d0920eb046c6b975b4f17caca2e30295d0b26993edda17bec09adffa9254bfb5897979beb92ccafe4e1fbfc36d82ed715d46e967a6a0b1cb4bf4e05f8
27 -DIST openafs-1.6.11-patches.tar.xz 9628 SHA256 16fdf63d81bd986aea4112f43f4005912dd62175aeb355e7b729b309842c970c SHA512 8227cb156f7498afa70e3086f4bfd26672576229a8f847d24a85b495942270e4964aa715536d43c2e63bbd3f4ced7cd19971c76007cb8e2e5aef17fe0ceb9d1d WHIRLPOOL 9ae675c36ec5fe07b7d095705dc6ee02f4a4ac227d9396e29299d94cde10f18e217c06e3c62f73d3d2b07a43410b35e464e7b328e25710e6c497d093381ce158
28 DIST openafs-1.6.11-src.tar.bz2 14605284 SHA256 cc42da08ef750a2363f7ea291e2264a9334c6ecf1400a75f5dabc170205bd01d SHA512 4e82553443009f899dfbd3eed0b9ed63c55aff5d5ce02f31657277385f0dfdef7e724b81a25fabb962d03b5a622d8d3fa9eca04879d1b84f4b253a52ea4ab90c WHIRLPOOL fbf188144643a71f7e505251033ed68c3d684dabd6647b4096c7a4010a76285db46c0cd586c5481635eb7da8406b5adee72c02528e59c4f89c6d923640cc93fb
29 DIST openafs-1.6.11.1-doc.tar.bz2 3530413 SHA256 cb398583931e7f0edf17b2321a858afc62cffa3c48cf69021eccc198d3e764f9 SHA512 bcf48ae1e4f12a758adf3f64b60738cce6853501d66dce594df75d28687e939b2f369b485e27fbe116bd14816277c39ebe213f65f20c9ca6ab76946742ee18f8 WHIRLPOOL 6d8f5a2e602d4388dfca8634b7f5a8545bb39e5859b012700e0a361b4d7151eb8a6493e7a18f408a1ab54f083dfc4b0e8ca310c7772f5144dd0083af5b7488af
30 DIST openafs-1.6.11.1-src.tar.bz2 14603197 SHA256 ae1a87faec8ee273f7d4baa69d1346f798415b38de72888decde011405423dc7 SHA512 43238d16d52498c62f6de944e030edeafdce9373074f961820d383bf82034511a484e79f1f655d5152f39abb38dfb744a9d02c47bb762c59e505de165bcc5579 WHIRLPOOL eb56015aaec4aa8c2a0d5aa901f4291a043e373d533bed5a48620e3b3a472226599dd083a4837ecc5a8763e7448ed1fb8c08aeec7ca53cf82db8be39d63dc522
31 @@ -7,6 +6,5 @@ DIST openafs-1.6.12-doc.tar.bz2 3531628 SHA256 1b5726f77ee98ae45b4b6d0142a65724e
32 DIST openafs-1.6.12-src.tar.bz2 14603726 SHA256 c47ffaa24bf2373264e330a624acafb5f509f4b00d63394b96e9bab131bf5802 SHA512 12c4b1ad12be7d44c56907f250b1d1ef94ca04f2b6e6d8c750da2a304cd0c60dd410516a3fa414442149e3a99c0cfd7aef283f09106889039035347793f01fc8 WHIRLPOOL f14e72aef41c47dd4e78b519b65fc01b67d709bd027a3004a501b621d71cc76f4d27ab5704421e39f05a611516ddcba9f1c2715fd4662cff13349be31b7a61a9
33 DIST openafs-1.6.14-doc.tar.bz2 3530481 SHA256 544fb3370465881bd1aadb24cf9e40610ff23d8445759c659d5354ce1e9358c3 SHA512 35de279fd61c657f5cd1b5fa26113a667155c2f2733fffb9bafeec1ac6be548fa335e5039e783cd6031fbc0ab8d27dd576e4571d76dd3f403283d5b32f75ca50 WHIRLPOOL 0663663a365f20448641093b1fc086219d395a7603c1658b69c083657ae0a2fec3d16a44e48adc3a7669b4a89ea07f0ce8e91d80134c5a5a1a193f304ced4a0b
34 DIST openafs-1.6.14-src.tar.bz2 14605615 SHA256 3e62c798a7f982c4f88d85d32e46bee6a47848d207b1e318fe661ce44ae4e01f SHA512 957178b1c3f6262e831ec497b7dd76e208a48f2107942d44ce72b062081e2932b93cb800b786eb88b770a647daf3585f659fdd1e715d0e724ac56eae011f3601 WHIRLPOOL 43e58a9e34ed2340c732b88261ecf4043f7a6e7db18bac7113b74455b1a2f1ed864d345bf41bac42d6d437ae18778e7f37a794b738a882c0fb5e36257af7d960
35 -DIST openafs-patches-20150503.tar.xz 9736 SHA256 066f61fe795e2cb3235a0a991abe8c5e876758bae7ea9bec61e98a3f601c9d7d SHA512 c687be78c7a6442b81c1362cab6ba215301911bdefcf39d2758ffeddecfa3efaa67990ea8277bbc1dedc14ad70a33213a37dbc45c43cd53871eec089759596c6 WHIRLPOOL 0935946c9a535f8e9ce6dd292801c671aef1c40f2a3f51aa4a85e5f4181fb46c3b2df55be56eec56c7fcab0eaf27d97cc6cef98c1b70178ba8cd7258174036cf
36 DIST openafs-patches-20150626.tar.xz 10588 SHA256 b221842e82e4807e6b8064454df3792b12f3d73104462d83aa88c79e3028fb4a SHA512 b77df9dc734965301585d5f66732fef119282e49cbd5c121f45aa9f0b64fc6c62e1cd93c8b7ff81702f6baece0df3cf9d99ab796e84f2c0c610dc2e2fd3cedf6 WHIRLPOOL 71778ab6f64a156f8f559d446e09cbb8278f2f0965225a21767a2a28883e228620c37241cd439426a3163ede8b04f676f2b4aea7c14394c82bdc47dc2643e6b2
37 DIST openafs-patches-20150813.tar.xz 15520 SHA256 209766f5e97e924eab91d862875f360e0ed9821b317ee609789a77d7fbdeb8f0 SHA512 2703f65e7c3f1a724e9330d8f2aedf80f9d0b8ba4b03a5f466cd523eb8d0a1692542df722b24e06ce4ced476fb8615e2caca6159de7b18f151ecf7a14a5f0565 WHIRLPOOL c4055a7c0cf19847ecd8679316a0146b41589f157996b2f15b807d272270e65c1a6ee5f916d3127803cd26370c392b1e751d100d2ab383a57530b768e1682d60
38
39 diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.11.1.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.11.1.ebuild
40 deleted file mode 100644
41 index 411b153..0000000
42 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.11.1.ebuild
43 +++ /dev/null
44 @@ -1,117 +0,0 @@
45 -# Copyright 1999-2015 Gentoo Foundation
46 -# Distributed under the terms of the GNU General Public License v2
47 -# $Id$
48 -
49 -EAPI="5"
50 -
51 -inherit autotools eutils linux-mod multilib toolchain-funcs versionator
52 -
53 -MY_PV=$(delete_version_separator '_')
54 -MY_PN="${PN/-kernel}"
55 -MY_P="${MY_PN}-${MY_PV}"
56 -PVER="20150503"
57 -
58 -DESCRIPTION="The OpenAFS distributed file system kernel module"
59 -HOMEPAGE="http://www.openafs.org/"
60 -# We always d/l the doc tarball as man pages are not USE=doc material
61 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
62 -SRC_URI="
63 - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
64 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
65 - https://dev.gentoo.org/~bircoph/patches/${MY_PN}-patches-${PVER}.tar.xz
66 -"
67 -
68 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
69 -SLOT="0"
70 -KEYWORDS="~amd64 ~amd64-fbsd ~amd64-linux ~sparc ~x86 ~x86-fbsd ~x86-linux"
71 -IUSE=""
72 -
73 -S=${WORKDIR}/${MY_P}
74 -
75 -CONFIG_CHECK="!DEBUG_RODATA ~!AFS_FS KEYS"
76 -ERROR_DEBUG_RODATA="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option"
77 -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
78 -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
79 -
80 -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
81 -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
82 -
83 -pkg_pretend() {
84 - if use kernel_linux && kernel_is ge 4 1 ; then
85 - ewarn "Gentoo supports kernels which are supported by OpenAFS"
86 - ewarn "which are limited to the kernel versions: <4.1"
87 - ewarn ""
88 - ewarn "You are free to utilize epatch_user to provide whatever"
89 - ewarn "support you feel is appropriate, but will not receive"
90 - ewarn "support as a result of those changes."
91 - ewarn ""
92 - ewarn "Please do not file a bug report about this."
93 - fi
94 -}
95 -
96 -pkg_setup() {
97 - if use kernel_linux; then
98 - linux-mod_pkg_setup
99 - fi
100 -}
101 -
102 -src_prepare() {
103 - # do not tamper with CFLAGS for the kernel module
104 - EPATCH_EXCLUDE="040_all_flags.patch" \
105 - EPATCH_SUFFIX="patch" \
106 - epatch "${WORKDIR}"/gentoo/patches
107 - epatch_user
108 -
109 - # packaging is f-ed up, so we can't run eautoreconf
110 - # run autotools commands based on what is listed in regen.sh
111 - eaclocal -I src/cf
112 - eautoconf
113 - eautoconf -o configure-libafs configure-libafs.ac
114 - eautoheader
115 - einfo "Deleting autom4te.cache directory"
116 - rm -rf autom4te.cache
117 -}
118 -
119 -src_configure() {
120 - local myconf=""
121 - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
122 - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
123 - myconf="--enable-linux-d_splice_alias-extra-iput"
124 - fi
125 -
126 - ARCH="$(tc-arch-kernel)" \
127 - econf \
128 - --with-linux-kernel-headers=${KV_DIR} \
129 - --with-linux-kernel-build=${KV_OUT_DIR} \
130 - ${myconf}
131 -}
132 -
133 -src_compile() {
134 - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
135 -}
136 -
137 -src_install() {
138 - if use kernel_linux; then
139 - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
140 - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
141 -
142 - MODULE_NAMES="libafs(fs/openafs:${srcdir})"
143 -
144 - linux-mod_src_install
145 - elif use kernel_FreeBSD; then
146 - insinto /boot/modules
147 - doins "${S}"/src/libafs/MODLOAD/libafs.ko
148 - fi
149 -}
150 -
151 -pkg_postinst() {
152 - # Update linker.hints file
153 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
154 - use kernel_linux && linux-mod_pkg_postinst
155 -}
156 -
157 -pkg_postrm() {
158 - # Update linker.hints file
159 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
160 - use kernel_linux && linux-mod_pkg_postrm
161 -}
162
163 diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.11.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.11.ebuild
164 deleted file mode 100644
165 index 101ca87..0000000
166 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.11.ebuild
167 +++ /dev/null
168 @@ -1,117 +0,0 @@
169 -# Copyright 1999-2015 Gentoo Foundation
170 -# Distributed under the terms of the GNU General Public License v2
171 -# $Id$
172 -
173 -EAPI="5"
174 -
175 -inherit autotools eutils linux-mod multilib toolchain-funcs versionator
176 -
177 -MY_PV=$(delete_version_separator '_')
178 -MY_P="${PN/-kernel}-${MY_PV}"
179 -PVER="1"
180 -OAFS_PVER="1.6.5"
181 -
182 -DESCRIPTION="The OpenAFS distributed file system kernel module"
183 -HOMEPAGE="http://www.openafs.org/"
184 -# We always d/l the doc tarball as man pages are not USE=doc material
185 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
186 -SRC_URI="
187 - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
188 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
189 - https://dev.gentoo.org/~bircoph/patches/${MY_P}-patches.tar.xz
190 -"
191 -
192 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
193 -SLOT="0"
194 -KEYWORDS="amd64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
195 -IUSE=""
196 -
197 -S=${WORKDIR}/${MY_P}
198 -
199 -CONFIG_CHECK="!DEBUG_RODATA ~!AFS_FS KEYS"
200 -ERROR_DEBUG_RODATA="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option"
201 -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
202 -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
203 -
204 -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
205 -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
206 -
207 -pkg_pretend() {
208 - if use kernel_linux && kernel_is ge 4 ; then
209 - ewarn "Gentoo supports kernels which are supported by OpenAFS"
210 - ewarn "which are limited to the kernel versions: <4.0"
211 - ewarn ""
212 - ewarn "You are free to utilize epatch_user to provide whatever"
213 - ewarn "support you feel is appropriate, but will not receive"
214 - ewarn "support as a result of those changes."
215 - ewarn ""
216 - ewarn "Please do not file a bug report about this."
217 - fi
218 -}
219 -
220 -pkg_setup() {
221 - if use kernel_linux; then
222 - linux-mod_pkg_setup
223 - fi
224 -}
225 -
226 -src_prepare() {
227 - # do not tamper with CFLAGS for the kernel module
228 - EPATCH_EXCLUDE="040_all_flags.patch" \
229 - EPATCH_SUFFIX="patch" \
230 - epatch "${WORKDIR}"/gentoo/patches
231 - epatch_user
232 -
233 - # packaging is f-ed up, so we can't run eautoreconf
234 - # run autotools commands based on what is listed in regen.sh
235 - eaclocal -I src/cf
236 - eautoconf
237 - eautoconf -o configure-libafs configure-libafs.ac
238 - eautoheader
239 - einfo "Deleting autom4te.cache directory"
240 - rm -rf autom4te.cache
241 -}
242 -
243 -src_configure() {
244 - local myconf=""
245 - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
246 - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
247 - myconf="--enable-linux-d_splice_alias-extra-iput"
248 - fi
249 -
250 - ARCH="$(tc-arch-kernel)" \
251 - econf \
252 - --with-linux-kernel-headers=${KV_DIR} \
253 - --with-linux-kernel-build=${KV_OUT_DIR} \
254 - ${myconf}
255 -}
256 -
257 -src_compile() {
258 - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
259 -}
260 -
261 -src_install() {
262 - if use kernel_linux; then
263 - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
264 - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
265 -
266 - MODULE_NAMES="libafs(fs/openafs:${srcdir})"
267 -
268 - linux-mod_src_install
269 - elif use kernel_FreeBSD; then
270 - insinto /boot/modules
271 - doins "${S}"/src/libafs/MODLOAD/libafs.ko
272 - fi
273 -}
274 -
275 -pkg_postinst() {
276 - # Update linker.hints file
277 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
278 - use kernel_linux && linux-mod_pkg_postinst
279 -}
280 -
281 -pkg_postrm() {
282 - # Update linker.hints file
283 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
284 - use kernel_linux && linux-mod_pkg_postrm
285 -}
286
287 diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.12.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.12.ebuild
288 deleted file mode 100644
289 index 30ad1f0..0000000
290 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.12.ebuild
291 +++ /dev/null
292 @@ -1,124 +0,0 @@
293 -# Copyright 1999-2015 Gentoo Foundation
294 -# Distributed under the terms of the GNU General Public License v2
295 -# $Id$
296 -
297 -EAPI="5"
298 -
299 -inherit autotools eutils linux-mod multilib toolchain-funcs versionator
300 -
301 -MY_PV=$(delete_version_separator '_')
302 -MY_PN="${PN/-kernel}"
303 -MY_P="${MY_PN}-${MY_PV}"
304 -PVER="20150626"
305 -
306 -DESCRIPTION="The OpenAFS distributed file system kernel module"
307 -HOMEPAGE="http://www.openafs.org/"
308 -# We always d/l the doc tarball as man pages are not USE=doc material
309 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
310 -SRC_URI="
311 - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
312 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
313 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz
314 -"
315 -
316 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
317 -SLOT="0"
318 -KEYWORDS="~amd64 ~amd64-fbsd ~amd64-linux ~sparc ~x86 ~x86-fbsd ~x86-linux"
319 -IUSE=""
320 -
321 -S=${WORKDIR}/${MY_P}
322 -
323 -CONFIG_CHECK="!DEBUG_RODATA ~!AFS_FS KEYS"
324 -ERROR_DEBUG_RODATA="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option"
325 -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
326 -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
327 -
328 -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
329 -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
330 -
331 -pkg_pretend() {
332 - if use kernel_linux && kernel_is ge 4 2 ; then
333 - ewarn "Gentoo supports kernels which are supported by OpenAFS"
334 - ewarn "which are limited to the kernel versions: <4.2"
335 - ewarn ""
336 - ewarn "You are free to utilize epatch_user to provide whatever"
337 - ewarn "support you feel is appropriate, but will not receive"
338 - ewarn "support as a result of those changes."
339 - ewarn ""
340 - ewarn "Please do not file a bug report about this."
341 - fi
342 -}
343 -
344 -pkg_setup() {
345 - if use kernel_linux; then
346 - linux-mod_pkg_setup
347 - fi
348 -}
349 -
350 -src_prepare() {
351 - # do not tamper with CFLAGS for the kernel module
352 - EPATCH_EXCLUDE="040_all_flags.patch" \
353 - EPATCH_SUFFIX="patch" \
354 - epatch "${WORKDIR}"/gentoo/patches
355 - epatch_user
356 -
357 - # packaging is f-ed up, so we can't run eautoreconf
358 - # run autotools commands based on what is listed in regen.sh
359 - eaclocal -I src/cf
360 - eautoconf
361 - eautoconf -o configure-libafs configure-libafs.ac
362 - eautoheader
363 - einfo "Deleting autom4te.cache directory"
364 - rm -rf autom4te.cache
365 -}
366 -
367 -src_configure() {
368 - local myconf=""
369 - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
370 - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
371 - myconf="--enable-linux-d_splice_alias-extra-iput"
372 - fi
373 -
374 - local ARCH="$(tc-arch-kernel)"
375 - local MY_ARCH="$(tc-arch)"
376 - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC"
377 -
378 - if use kernel_linux; then
379 - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \
380 - --with-linux-kernel-build="${KV_OUT_DIR}"
381 - )
382 - elif use kernel_FreeBSD; then
383 - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" )
384 - fi
385 - econf "${myconf[@]}"
386 -}
387 -
388 -src_compile() {
389 - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
390 -}
391 -
392 -src_install() {
393 - if use kernel_linux; then
394 - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
395 - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
396 -
397 - MODULE_NAMES="libafs(fs/openafs:${srcdir})"
398 -
399 - linux-mod_src_install
400 - elif use kernel_FreeBSD; then
401 - insinto /boot/modules
402 - doins "${S}"/src/libafs/MODLOAD/libafs.ko
403 - fi
404 -}
405 -
406 -pkg_postinst() {
407 - # Update linker.hints file
408 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
409 - use kernel_linux && linux-mod_pkg_postinst
410 -}
411 -
412 -pkg_postrm() {
413 - # Update linker.hints file
414 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
415 - use kernel_linux && linux-mod_pkg_postrm
416 -}