# 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)
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX wis-go7007-0.9.8-fix-udev.diff 1459 RMD160 5cd0f53a49dae54160a209b2fd1172f1f2293b30 SHA1 cf1254d6e3cdeb1094f23d015010143a8baf47ed SHA256 78c25a7d45c2ebdf0d4360f5a2619a32ad8ee13586c3dc8b58ce5ad4b223f949
+MD5 8061c929ce66d2e825d7830363874b44 files/wis-go7007-0.9.8-fix-udev.diff 1459
+RMD160 5cd0f53a49dae54160a209b2fd1172f1f2293b30 files/wis-go7007-0.9.8-fix-udev.diff 1459
+SHA256 78c25a7d45c2ebdf0d4360f5a2619a32ad8ee13586c3dc8b58ce5ad4b223f949 files/wis-go7007-0.9.8-fix-udev.diff 1459
DIST wis-go7007-linux-0.9.8.tar.bz2 136517 RMD160 d3336efeac890848851506d6079df10d2ffd34a4 SHA1 6732d890f964a086ea5c3116a921a9eafce40c26 SHA256 efd7600d881fc57e0484ddd7f0820c18a3bd98dce8060418dfba1626c8a79b1a
+EBUILD wis-go7007-0.9.8-r1.ebuild 2821 RMD160 149a7cc679faf0cd53a526bd929ee2d99e347a10 SHA1 8550f458a6c903b8a1e332dc09af8fb5749c2828 SHA256 8ed0f3939bac58869ccc6f63b13a337eadeabfbb5bfdd1c7bd5f0671ab32e15f
+MD5 5d749c800cc7762300e049564c33476e wis-go7007-0.9.8-r1.ebuild 2821
+RMD160 149a7cc679faf0cd53a526bd929ee2d99e347a10 wis-go7007-0.9.8-r1.ebuild 2821
+SHA256 8ed0f3939bac58869ccc6f63b13a337eadeabfbb5bfdd1c7bd5f0671ab32e15f wis-go7007-0.9.8-r1.ebuild 2821
EBUILD wis-go7007-0.9.8.ebuild 2740 RMD160 4f2af67daec9284ccd8c384c80efd239cd95003f SHA1 7a9fd57a3e01b46a2c67e3e13da564753a6217b0 SHA256 37e971a896f9b5947a74bcce3982be49681cc46b72600c52687022048d2937e0
MD5 b89fa3abe686a8480d29108c883a4ad1 wis-go7007-0.9.8.ebuild 2740
RMD160 4f2af67daec9284ccd8c384c80efd239cd95003f wis-go7007-0.9.8.ebuild 2740
SHA256 37e971a896f9b5947a74bcce3982be49681cc46b72600c52687022048d2937e0 wis-go7007-0.9.8.ebuild 2740
-MISC ChangeLog 415 RMD160 f6ad10da99e1b336f98a78d2d0a9382253c4c377 SHA1 ae50c311dc24065521d773fc393a6879172b6737 SHA256 e69907abd3c0ea99fb041af7355ddfbe5174de14e70a8d00b9dad7859b031866
-MD5 813c2c40ea4a31f26f024e539d651545 ChangeLog 415
-RMD160 f6ad10da99e1b336f98a78d2d0a9382253c4c377 ChangeLog 415
-SHA256 e69907abd3c0ea99fb041af7355ddfbe5174de14e70a8d00b9dad7859b031866 ChangeLog 415
+MISC ChangeLog 618 RMD160 3b856aae0d2a7b00d59b64dd6a58dfe2ddcd1e76 SHA1 1b15dd10c6f64dd81ea5ac8f0533690b0c1bde4a SHA256 c9a27f3b20200e9a049d69ada7ecf793db5d970ff94fbefc2a8ead835cff52d0
+MD5 53282ef2222845a58c4d13db9b0f301d ChangeLog 618
+RMD160 3b856aae0d2a7b00d59b64dd6a58dfe2ddcd1e76 ChangeLog 618
+SHA256 c9a27f3b20200e9a049d69ada7ecf793db5d970ff94fbefc2a8ead835cff52d0 ChangeLog 618
MISC metadata.xml 246 RMD160 0f200b959fe440bc003682c4a1dd9ee1d3779fe3 SHA1 308bc54fe4d0cf8ef74b640816059455b7cd8922 SHA256 976fea96fe7879e5ed46a894977803c4927461d0763bf2a08cc17c25bdffa731
MD5 864b7b7362c88dc173a6bfb88a4d0eb1 metadata.xml 246
RMD160 0f200b959fe440bc003682c4a1dd9ee1d3779fe3 metadata.xml 246
MD5 2f67c7eb5ce713df4429fe6d8bb77857 files/digest-wis-go7007-0.9.8 271
RMD160 545bb4c590681822b74b84d4c6da16a1444f4da6 files/digest-wis-go7007-0.9.8 271
SHA256 fc9dcae83131f6a710ae5f33325d1af4a7bb96444b71139f46b0b8065502a260 files/digest-wis-go7007-0.9.8 271
+MD5 2f67c7eb5ce713df4429fe6d8bb77857 files/digest-wis-go7007-0.9.8-r1 271
+RMD160 545bb4c590681822b74b84d4c6da16a1444f4da6 files/digest-wis-go7007-0.9.8-r1 271
+SHA256 fc9dcae83131f6a710ae5f33325d1af4a7bb96444b71139f46b0b8065502a260 files/digest-wis-go7007-0.9.8-r1 271
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.3 (GNU/Linux)
+
+iD8DBQFGMGbXt2vP6XvVdOcRAqxaAKCw9d1iDJgET9hdx3mmCC2O/mKoFQCg3e0o
+Aqlti4mxfx1H7gM6In9oDJU=
+=3RDt
+-----END PGP SIGNATURE-----
--- /dev/null
+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
--- /dev/null
+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"
--- /dev/null
+# 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"
+}