blob: c686d84bd457d76c5b9e6aa94af29f32ee5304fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils linux-mod mercurial
DESCRIPTION="Live development version of the userspace-tuner project"
HOMEPAGE="http://mcentral.de/wiki/index.php/Userspace_tuner"
SRC_URI=""
EHG_REPO_URI="http://mcentral.de/hg/~mrec/userspace-tuner"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="sys-fs/udev"
S="${WORKDIR}/userspace-tuner"
pkg_setup() {
MODULE_NAMES="media-stub(kernel/drivers/media/userspace:${S}/kernel)"
BUILD_TARGETS="all"
linux-mod_pkg_setup
BUILD_PARAMS="KDIR=${KV_DIR}"
}
src_unpack() {
mercurial_src_unpack
cd "${S}"
EPATCH_SUFFIX="patch"
epatch "${FILESDIR}"
}
src_compile() {
cd "${S}/kernel"
linux-mod_src_compile || die "failed to build kernel module"
cd "${S}/userspace"
emake INCDIR="${KV_DIR}/include" || die "failed to build tuner daemon"
}
src_install() {
linux-mod_src_install || die "failed to install kernel module"
cd "${S}/userspace"
make DESTDIR="${D}" install || die "failed to install tuner daemon"
newinitd "${S}"/init.d/gentoo-tuner-daemon tuner-daemon
newconfd "${S}"/conf.d/tuner-daemon tuner-daemon
insinto /etc/udev/rules.d
doins "${S}"/udev/80-tuner.rules
cd "${S}"
dodoc README*
}
pkg_postinst() {
linux-mod_pkg_postinst
elog ""
elog "Currently supported tuners:"
elog "- Xceive XC2028, XC3028"
elog ""
elog "The /etc/init.d/tuner-daemon script does NOT have to be"
elog "added to any of the runlevels via rc-update, it will"
elog "be started by udev on demand."
elog ""
ewarn "WARNING: This work is highly experimental at the moment!"
ewarn ""
ewarn "Your TV-card's in-kernel driver has to be modified"
ewarn "to properly interface with this software."
ewarn ""
ewarn "For more information, see the project's homepage at:"
ewarn "${HOMEPAGE}"
ewarn ""
}
|