diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2006-01-09 19:09:31 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2006-01-09 19:09:31 +0000 |
commit | 62c906d60399600e179c8b6377326a0f493969e9 (patch) | |
tree | ab48b5511c681022334da6ca9fc9cba100476ef1 /media-tv/linuxtv-dvb/linuxtv-dvb-1.1.1_p20060108.ebuild | |
parent | added media-tv/linuxtv-dvb-1.1.1_p20060108 for testing (diff) | |
download | gentoo-2-62c906d60399600e179c8b6377326a0f493969e9.tar.gz gentoo-2-62c906d60399600e179c8b6377326a0f493969e9.tar.bz2 gentoo-2-62c906d60399600e179c8b6377326a0f493969e9.zip |
added cvs snapshot of dvb-kernel branch linux_2_4
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'media-tv/linuxtv-dvb/linuxtv-dvb-1.1.1_p20060108.ebuild')
-rw-r--r-- | media-tv/linuxtv-dvb/linuxtv-dvb-1.1.1_p20060108.ebuild | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/media-tv/linuxtv-dvb/linuxtv-dvb-1.1.1_p20060108.ebuild b/media-tv/linuxtv-dvb/linuxtv-dvb-1.1.1_p20060108.ebuild new file mode 100644 index 000000000000..a9ecb0fbda06 --- /dev/null +++ b/media-tv/linuxtv-dvb/linuxtv-dvb-1.1.1_p20060108.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb/linuxtv-dvb-1.1.1_p20060108.ebuild,v 1.1 2006/01/09 19:09:31 zzam Exp $ + +inherit eutils linux-mod + +MY_PV=${PV#*_p} + +DVB_TTPCI_FW="dvb-ttpci-01.fw-2622" +DESCRIPTION="Standalone DVB driver for Linux kernel 2.4.x" +HOMEPAGE="http://www.linuxtv.org" +SRC_URI="mirror://gentoo/dvb-kernel_linux_2_4-${MY_PV}.tar.bz2 + http://www.linuxtv.org/download/dvb/firmware/${DVB_TTPCI_FW}" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86" +IUSE="" +DEPEND="virtual/linux-sources" +RDEPEND="" + +S=${WORKDIR}/dvb-kernel/build-2.4 + +pkg_setup() { + linux-mod_pkg_setup + if [[ ${KV_MAJOR}.${KV_MINOR} != 2.4 ]]; then + einfo "This ebuild only provides drivers for Kernel 2.4" + einfo "Kernel 2.6 has included drivers for DVB devices." + einfo "please use these" + die "Kernel 2.6 not supported" + fi + + einfo "Please make sure that the following option is enabled" + einfo "in your current kernel 'Multimedia devices'" + einfo "and /usr/src/linux points to your current kernel" + einfo "or make will die." + einfo + MODULE_NAMES="dvb(dvb:${S})" + BUILD_PARAMS="KDIR=${KERNEL_DIR}" + BUILD_TARGETS="build" +} + +src_unpack() { + unpack ${A} + cp ${DISTDIR}/${DVB_TTPCI_FW} ${S}/dvb-ttpci-01.fw +} + +src_install() { + #copy over the insmod.sh script + #for loading all modules + sed -e "s:insmod ./:modprobe :" -i insmod.sh + sed -e "s:.${KV_OBJ}::" -i insmod.sh + newsbin insmod.sh dvb-module-load + + # install the modules + make install DESTDIR="${D}" DEST="/lib/modules/${KV_FULL}/dvb" + + # install the header files + cd ${S}/../linux/include/linux/dvb + insinto /usr/include/linux/dvb + doins *.h + + #install the main docs + cd ${S} + dodoc MAKEDEV-DVB.sh NEWS README README.bt8xx TODO TROUBLESHOOTING + + #install the other docs + cd ${S}/doc + dodoc HOWTO-use-the-demux-api \ + README.valgrind HOWTO-use-the-frontend-api \ + convert.sh valgrind-2.1.0-dvb.patch +} + +pkg_postinst() { + linux-mod_pkg_postinst + einfo "If you don't use devfs, execute MAKEDEV-DVB.sh to create" + einfo "the device nodes. The file is in /usr/share/doc/${PF}/" + einfo + einfo "A file called dvb-module-load has been created to simplify loading all modules." + einfo "Call it using 'dvb-module-load {load|debug|unload}'." + einfo + einfo "For information about firmware please see /usr/share/doc/${PF}/README." + einfo + einfo "Firmware-files can be found in media-tv/linuxtv-dvb-firmware" + einfo +} |