diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-04-26 08:46:06 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-04-26 08:46:06 +0000 |
commit | 7021b88babb74a4e645e31a0cd69f85228c73c5b (patch) | |
tree | 9187468186ebb9f83c735f292fa964c9393eb2cf /media-tv/wis-go7007 | |
parent | fix deps (diff) | |
download | gentoo-2-7021b88babb74a4e645e31a0cd69f85228c73c5b.tar.gz gentoo-2-7021b88babb74a4e645e31a0cd69f85228c73c5b.tar.bz2 gentoo-2-7021b88babb74a4e645e31a0cd69f85228c73c5b.zip |
Added fixed udev rules, due to bug #163610.
(Portage version: 2.1.2.4)
Diffstat (limited to 'media-tv/wis-go7007')
-rw-r--r-- | media-tv/wis-go7007/ChangeLog | 10 | ||||
-rw-r--r-- | media-tv/wis-go7007/files/digest-wis-go7007-0.9.8-r1 | 3 | ||||
-rw-r--r-- | media-tv/wis-go7007/files/wis-go7007-0.9.8-fix-udev.diff | 20 | ||||
-rw-r--r-- | media-tv/wis-go7007/wis-go7007-0.9.8-r1.ebuild | 103 |
4 files changed, 134 insertions, 2 deletions
diff --git a/media-tv/wis-go7007/ChangeLog b/media-tv/wis-go7007/ChangeLog index 534be3b21047..cca814927770 100644 --- a/media-tv/wis-go7007/ChangeLog +++ b/media-tv/wis-go7007/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-tv/wis-go7007 -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/wis-go7007/ChangeLog,v 1.1 2006/12/02 20:32:04 beandog Exp $ +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/wis-go7007/ChangeLog,v 1.2 2007/04/26 08:46:06 zzam Exp $ + +*wis-go7007-0.9.8-r1 (26 Apr 2007) + + 26 Apr 2007; Matthias Schwarzott <zzam@gentoo.org> + +files/wis-go7007-0.9.8-fix-udev.diff, +wis-go7007-0.9.8-r1.ebuild: + Added fixed udev rules, due to bug #163610. *wis-go7007-0.9.8 (02 Dec 2006) diff --git a/media-tv/wis-go7007/files/digest-wis-go7007-0.9.8-r1 b/media-tv/wis-go7007/files/digest-wis-go7007-0.9.8-r1 new file mode 100644 index 000000000000..b7c4ef86d812 --- /dev/null +++ b/media-tv/wis-go7007/files/digest-wis-go7007-0.9.8-r1 @@ -0,0 +1,3 @@ +MD5 dbeaceae423972140d6a5107a1f586ec wis-go7007-linux-0.9.8.tar.bz2 136517 +RMD160 d3336efeac890848851506d6079df10d2ffd34a4 wis-go7007-linux-0.9.8.tar.bz2 136517 +SHA256 efd7600d881fc57e0484ddd7f0820c18a3bd98dce8060418dfba1626c8a79b1a wis-go7007-linux-0.9.8.tar.bz2 136517 diff --git a/media-tv/wis-go7007/files/wis-go7007-0.9.8-fix-udev.diff b/media-tv/wis-go7007/files/wis-go7007-0.9.8-fix-udev.diff new file mode 100644 index 000000000000..0ea6c4250ada --- /dev/null +++ b/media-tv/wis-go7007/files/wis-go7007-0.9.8-fix-udev.diff @@ -0,0 +1,20 @@ +diff -ru wis-go7007-linux-0.9.8-orig/udev/wis-ezusb.rules.in wis-go7007-linux-0.9.8/udev/wis-ezusb.rules.in +--- wis-go7007-linux-0.9.8-orig/udev/wis-ezusb.rules.in 2007-04-26 10:32:05.967814203 +0200 ++++ wis-go7007-linux-0.9.8/udev/wis-ezusb.rules.in 2007-04-26 10:38:00.372601940 +0200 +@@ -1,8 +1,8 @@ +-ACTION=="add", BUS=="usb", ENV{PRODUCT}=="93b/a002/*", \ +- RUN+="@FXLOAD@ -t fx2 -I @FIRMWARE_DIR@/ezusb/hpi_PX-M402U.hex" +-ACTION=="add", BUS=="usb", ENV{PRODUCT}=="93b/a004/*", \ +- RUN+="@FXLOAD@ -t fx2 -I @FIRMWARE_DIR@/ezusb/hpi_PX-TV402U.hex" +-ACTION=="add", BUS=="usb", ENV{PRODUCT}=="eb1/6666/*", \ +- RUN+="@FXLOAD@ -t fx2 -I @FIRMWARE_DIR@/ezusb/hpi_LR192.hex" +-ACTION=="add", BUS=="usb", ENV{PRODUCT}=="eb1/6668/*", \ +- RUN+="@FXLOAD@ -t fx2 -I @FIRMWARE_DIR@/ezusb/hpi_StarTrek.hex" ++ACTION=="add", SUBSYSTEM=="usb_device", ATTR{idVendor}=="093b", ATTR{idProduct}=="a002", \ ++ RUN+="@FXLOAD@ -t fx2 -I @FIRMWARE_DIR@/ezusb/hpi_PX-M402U.hex -D %N" ++ACTION=="add", SUBSYSTEM=="usb_device", ATTR{idVendor}=="093b", ATTR{idProduct}=="a004", \ ++ RUN+="@FXLOAD@ -t fx2 -I @FIRMWARE_DIR@/ezusb/hpi_PX-TV402U.hex -D %N" ++ACTION=="add", SUBSYSTEM=="usb_device", ATTR{idVendor}=="0eb1", ATTR{idProduct}=="6666", \ ++ RUN+="@FXLOAD@ -t fx2 -I @FIRMWARE_DIR@/ezusb/hpi_LR192.hex -D %N" ++ACTION=="add", SUBSYSTEM=="usb_device", ATTR{idVendor}=="0eb1", ATTR{idProduct}=="6668", \ ++ RUN+="@FXLOAD@ -t fx2 -I @FIRMWARE_DIR@/ezusb/hpi_StarTrek.hex -D %N" diff --git a/media-tv/wis-go7007/wis-go7007-0.9.8-r1.ebuild b/media-tv/wis-go7007/wis-go7007-0.9.8-r1.ebuild new file mode 100644 index 000000000000..e3088700de72 --- /dev/null +++ b/media-tv/wis-go7007/wis-go7007-0.9.8-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/wis-go7007/wis-go7007-0.9.8-r1.ebuild,v 1.1 2007/04/26 08:46:06 zzam Exp $ + +inherit eutils linux-mod + +MY_PN=${PN}-linux +DESCRIPTION="Linux drivers for go7007 chipsets (Plextor ConvertX PVR)" +HOMEPAGE="http://oss.wischip.com/" +SRC_URI="http://oss.wischip.com/${MY_PN}-${PV}.tar.bz2" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="alsa" +DEPEND="|| ( >=sys-fs/udev-103 sys-apps/hotplug ) + sys-apps/hotplug-base + sys-apps/fxload" + +S=${WORKDIR}/${MY_PN}-${PV} + +pkg_setup() { + BUILD_TARGETS="all" + BUILD_PARAMS="KDIR=${KERNEL_DIR}" + CONFIG_CHECK="HOTPLUG MODULES KMOD FW_LOADER I2C VIDEO_DEV SOUND SND USB + USB_DEVICEFS USB_EHCI_HCD" + + if use alsa; then + CONFIG_CHECK="${CONFIG_CHECK} SND_MIXER_OSS SND_PCM_OSS" + fi + + if ! kernel_is 2 6 16; then + eerror "These drivers will only work with a 2.6.16 kernel" + die "Needs a different kernel" + fi + + linux-mod_pkg_setup + MODULE_NAMES="go7007(extra:${S}:${S}/kernel) + go7007-usb(extra:${S}:${S}/kernel) + snd-go7007(extra:${S}:${S}/kernel) + wis-ov7640(extra:${S}:${S}/kernel) + wis-sony-tuner(extra:${S}:${S}/kernel) + wis-tw9903(extra:${S}:${S}/kernel) + wis-uda1342(extra:${S}:${S}/kernel) + wis-saa7113(extra:${S}:${S}/kernel) + wis-saa7115(extra:${S}:${S}/kernel)" +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch "${FILESDIR}/${P}-fix-udev.diff" +} + +src_compile() { + cd ${S} + linux-mod_src_compile || die "failed to build driver " +} + +src_install() { + cd ${S}/apps + make KERNELDIR=${KERNEL_DIR} DESTDIR=${D} PREFIX=/usr install || die "failed to install" + cd ${S} + dodir ${ROOT}/lib/modules + insinto ${ROOT}/lib/modules + dodoc README README.saa7134 RELEASE-NOTES + cd ${S}/kernel + linux-mod_src_install || die "failed to install modules" + + insinto ${KERNEL_DIR}/include/linux + doins ${S}/include/*.h + insinto ${ROOT}/lib/firmware + doins ${S}/firmware/*.bin + insinto ${ROOT}/lib/firmware/ezusb + doins ${S}/firmware/ezusb/*.hex + insinto ${ROOT}/etc/udev/rules.d + doins ${S}/udev/wis-ezusb.rules + + exeinto ${ROOT}/usr/bin + use alsa && doexe ${S}/apps/gorecord + doexe ${S}/apps/modet +} + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "" + einfo "For more information on how to use the Plextor devices with Gentoo" + einfo "you can follow this thread for tips and tricks:" + einfo "http://forums.gentoo.org/viewtopic-t-306559-highlight-.html" + einfo "" + einfo "Also, the unofficial Gentoo wiki has a HOWTO page:" + einfo "http://gentoo-wiki.com/HARDWARE_go7007" + einfo "" + ewarn "Don't forget to add your modules to /etc/modules.autoload.d/kernel.2.6" + ewarn "so they will load on startup:" + ewarn "" + ewarn "snd_go7007" + ewarn "go7007" + ewarn "go7007_usb" + ewarn "wis_saa7115" + ewarn "wis_uda1342" + ewarn "wis_sony_tuner" +} |