Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 425352 | Differences between
and this patch

Collapse All | Expand All

(-)openafs-kernel-1.6.1.ebuild (-5 / +26 lines)
Lines 29-42 Link Here
29
ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support.  Make sure not to load both at the same time!"
29
ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support.  Make sure not to load both at the same time!"
30
ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
30
ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
31
31
32
QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
33
QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
34
32
pkg_setup() {
35
pkg_setup() {
33
	linux-mod_pkg_setup
36
	if use kernel_linux; then
37
		linux-mod_pkg_setup
38
	fi
34
}
39
}
35
40
36
src_prepare() {
41
src_prepare() {
37
	EPATCH_EXCLUDE="012_all_kbuild.patch" \
42
	EPATCH_EXCLUDE="012_all_kbuild.patch" \
38
	EPATCH_SUFFIX="patch" \
43
	EPATCH_SUFFIX="patch" \
39
	epatch "${WORKDIR}"/gentoo/patches
44
	epatch "${WORKDIR}"/gentoo/patches
45
	epatch "${FILESDIR}"/patch
40
46
41
	# packaging is f-ed up, so we can't run automake (i.e. eautoreconf)
47
	# packaging is f-ed up, so we can't run automake (i.e. eautoreconf)
42
	sed -i 's/^\(\s*\)a/\1ea/' regen.sh
48
	sed -i 's/^\(\s*\)a/\1ea/' regen.sh
Lines 57-66 Link Here
57
}
63
}
58
64
59
src_install() {
65
src_install() {
60
	MOD_SRCDIR=$(expr "${S}"/src/libafs/MODLOAD-*)
66
	if use kernel_linux; then
61
	[ -f "${MOD_SRCDIR}"/libafs.${KV_OBJ} ] || die "Couldn't find compiled kernel module"
67
		MOD_SRCDIR=$(expr "${S}"/src/libafs/MODLOAD-*)
68
		[ -f "${MOD_SRCDIR}"/libafs.${KV_OBJ} ] || die "Couldn't find compiled kernel module"
69
70
		MODULE_NAMES='libafs(fs/openafs:$MOD_SRCDIR)'
71
72
		linux-mod_src_install
73
	elif use kernel_FreeBSD; then
74
		insinto /boot/modules
75
		doins "${S}"/src/libafs/MODLOAD/libafs.ko
76
	fi
77
}
62
78
63
	MODULE_NAMES='libafs(fs/openafs:$MOD_SRCDIR)'
79
pkg_postinst() {
80
	# Update linker.hints file
81
	use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
82
}
64
83
65
	linux-mod_src_install
84
pkg_postrm() {
85
	# Update linker.hints file
86
	use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
66
}
87
}

Return to bug 425352