1 |
stefaan 08/04/04 12:17:28 |
2 |
|
3 |
Added: openafs-kernel-1.4.7_pre2-r1.ebuild |
4 |
Log: |
5 |
Fix bug where OpenAFS hangs (see #215550) |
6 |
(Portage version: 2.1.4.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-fs/openafs-kernel/openafs-kernel-1.4.7_pre2-r1.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs-kernel/openafs-kernel-1.4.7_pre2-r1.ebuild?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/openafs-kernel/openafs-kernel-1.4.7_pre2-r1.ebuild?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: openafs-kernel-1.4.7_pre2-r1.ebuild |
15 |
=================================================================== |
16 |
# Copyright 1999-2008 Gentoo Foundation |
17 |
# Distributed under the terms of the GNU General Public License v2 |
18 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs-kernel/openafs-kernel-1.4.7_pre2-r1.ebuild,v 1.1 2008/04/04 12:17:27 stefaan Exp $ |
19 |
|
20 |
inherit eutils linux-mod versionator toolchain-funcs |
21 |
|
22 |
PATCHVER=0.14 |
23 |
MY_PN=${PN/-kernel} |
24 |
MY_PV=${PV/_pre/pre} |
25 |
MY_P=${MY_PN}-${MY_PV} |
26 |
S=${WORKDIR}/${MY_P} |
27 |
DESCRIPTION="The OpenAFS distributed file system kernel module" |
28 |
HOMEPAGE="http://www.openafs.org/" |
29 |
SRC_URI="http://openafs.org/dl/candidate/${MY_PV}/${MY_P}-src.tar.bz2 |
30 |
mirror://gentoo/${MY_PN}-gentoo-${PATCHVER}.tar.bz2" |
31 |
|
32 |
LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc" |
33 |
SLOT="0" |
34 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
35 |
IUSE="" |
36 |
|
37 |
PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2) |
38 |
|
39 |
CONFIG_CHECK="!DEBUG_RODATA ~!AFS_FS" |
40 |
ERROR_DEBUG_RODATA="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option" |
41 |
ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!" |
42 |
|
43 |
pkg_setup() { |
44 |
linux-mod_pkg_setup |
45 |
} |
46 |
|
47 |
src_unpack() { |
48 |
unpack ${MY_P}-src.tar.bz2 |
49 |
unpack ${MY_PN}-gentoo-${PATCHVER}.tar.bz2 |
50 |
cd "${S}" |
51 |
|
52 |
EPATCH_SUFFIX="patch" epatch ${PATCHDIR} |
53 |
|
54 |
# patch mistake in plain _pre2 |
55 |
epatch "${FILESDIR}"/STABLE14-linux-flush-unlock-20080402 |
56 |
epatch "${FILESDIR}"/STABLE14-linux-flush-compare-20080402 |
57 |
|
58 |
./regen.sh || die "Failed: regenerating configure script" |
59 |
} |
60 |
|
61 |
src_compile() { |
62 |
ARCH="$(tc-arch-kernel)" econf --with-linux-kernel-headers=${KV_OUT_DIR} || die "Failed: econf" |
63 |
|
64 |
ARCH="$(tc-arch-kernel)" emake -j1 only_libafs || die "Failed: emake" |
65 |
} |
66 |
|
67 |
src_install() { |
68 |
MOD_SRCDIR=$(expr ${S}/src/libafs/MODLOAD-*) |
69 |
[ -f ${MOD_SRCDIR}/libafs.${KV_OBJ} ] \ |
70 |
|| die "Couldn't find compiled kernel module" |
71 |
|
72 |
MODULE_NAMES='libafs(fs/openafs:$MOD_SRCDIR)' |
73 |
|
74 |
linux-mod_src_install |
75 |
} |
76 |
|
77 |
|
78 |
|
79 |
-- |
80 |
gentoo-commits@l.g.o mailing list |