Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 68441
Collapse All | Expand All

(-)/usr/portage/media-tv/linuxtv-dvb/linuxtv-dvb-1.1.1.ebuild (-15 / +10 lines)
Lines 12-18 Link Here
12
DEPEND="virtual/linux-sources"
12
DEPEND="virtual/linux-sources"
13
#RDEPEND=""
13
#RDEPEND=""
14
14
15
inherit eutils kmod
15
inherit eutils kernel-mod
16
16
17
pkg_setup() {
17
pkg_setup() {
18
	einfo ""
18
	einfo ""
Lines 27-48 Link Here
27
	# don't interfere with the kernel arch variables
27
	# don't interfere with the kernel arch variables
28
	unset ARCH
28
	unset ARCH
29
29
30
	#until kmod can be fudged for 
30
	emake || die "emake failed"
31
	#this to not have to be included
32
	addwrite /usr/src/linux
33
34
	emake
35
}
31
}
36
32
37
src_install() {
33
src_install() {
38
	# see what kernel directory we need to
34
	# see what kernel directory we need to
39
	# go to
35
	# go to
40
	get_kernel_info
36
	if kernel-mod_is_2_6_kernel; then
41
	if is_kernel 2 6
42
	then
43
		cd ${S}/build-2.6
37
		cd ${S}/build-2.6
38
		KV_OBJ="ko"
44
	else
39
	else
45
		cd ${S}/build-2.4
40
		cd ${S}/build-2.4
41
		KV_OBJ="o"
46
	fi
42
	fi
47
43
48
	#copy over the insmod.sh script
44
	#copy over the insmod.sh script
Lines 80-94 Link Here
80
}
76
}
81
77
82
pkg_postinst() {
78
pkg_postinst() {
83
	depmod -a
84
	einfo ""
85
	einfo "If you don't use devfs, execute MAKEDEV-DVB.sh to create"
79
	einfo "If you don't use devfs, execute MAKEDEV-DVB.sh to create"
86
	einfo "the device nodes. The file is in /usr/share/doc/${PF}/"
80
	einfo "the device nodes. The file is in /usr/share/doc/${PF}/"
87
	einfo ""
81
	einfo ""
88
	einfo "A file called dvb-module-load has been created to simplify loading all modules."
82
	einfo "A file called dvb-module-load has been created to simplify loading all modules."
89
	einfo "Call it using 'dvb-module-load {load|debug|unload}'."
83
	einfo "Call it using 'dvb-module-load {load|debug|unload}'."
90
}
84
	einfo ""
91
85
	
92
pkg_postrm() {
86
	einfo "Checking kernel module dependencies"
93
	depmod -a
87
	test -r "${ROOT}/usr/src/linux/System.map" && \
88
		depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
94
}
89
}

Return to bug 68441