diff options
author | James Meyer <james.meyer@operamail.com> | 2013-01-23 23:45:01 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2013-01-23 23:45:01 (GMT) |
commit | 608387a01077ddd0733a46e47cee06c304bf62e3 (patch) | |
tree | 250ebe3505655ac72f7b581174b2956ad2b5b7c4 /abs/core | |
parent | c20b59ce734c7f86cdc96370548dd4755fb16d6e (diff) | |
download | linhes_pkgbuild-608387a01077ddd0733a46e47cee06c304bf62e3.zip linhes_pkgbuild-608387a01077ddd0733a46e47cee06c304bf62e3.tar.gz linhes_pkgbuild-608387a01077ddd0733a46e47cee06c304bf62e3.tar.bz2 |
ceton_infinitv: new package that contains the drivers & udev rules both PCI and USB infinitv tuners.
Adding/removing a USB tuner will restart the userspace infinitv_usb program.
refs #899
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/ceton_infinitv/98-ctn91xx.rules | 1 | ||||
-rw-r--r-- | abs/core/ceton_infinitv/PKGBUILD | 44 | ||||
-rw-r--r-- | abs/core/ceton_infinitv/ceton.install | 23 | ||||
-rwxr-xr-x | abs/core/ceton_infinitv/ceton_usb_init.sh | 11 | ||||
-rw-r--r-- | abs/core/ceton_infinitv/ceton_usb_udev.rules | 1 |
5 files changed, 80 insertions, 0 deletions
diff --git a/abs/core/ceton_infinitv/98-ctn91xx.rules b/abs/core/ceton_infinitv/98-ctn91xx.rules new file mode 100644 index 0000000..c690c4b --- /dev/null +++ b/abs/core/ceton_infinitv/98-ctn91xx.rules @@ -0,0 +1 @@ +KERNEL=="ctn91xx_*", MODE="0666",OWNER="root",GROUP="root" SYMLINK+="ceton/%k" diff --git a/abs/core/ceton_infinitv/PKGBUILD b/abs/core/ceton_infinitv/PKGBUILD new file mode 100644 index 0000000..08956ff --- /dev/null +++ b/abs/core/ceton_infinitv/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Cecil Watson<knoppmyth@gmail.com> + +pkgname=ceton_infinitv +_kernver=3.6.7-1-ARCH +pkgver=2012_1116_1219 +pkgrel=1 +usb_pkgver=0.1.0 +pkgdesc="Drivers for Ceton InfiniTV4 - pci/usb " +arch=('i686' 'x86_64') +license=('GPL2') +url="http://linuxtv.org/" +depends=('linux' 'libgusb' 'libnl1') +makedepends=(linux-headers) +install=ceton.install +source=("http://cetoncorp.com/downloads/ceton_infinitv_linux_driver_$pkgver.tar.gz" + "98-ctn91xx.rules" + "http://cetoncorp.com/downloads/infinitv-usbd-$usb_pkgver.tar.gz" + "ceton_usb_init.sh" + "ceton_usb_udev.rules" + "http://cetoncorp.com/downloads/reset_network.py" ) + +build() { + cd $startdir/src/ceton_infinitv_linux_driver + make KERNEL_VERSION=$_kernver + install -Dm755 ctn91xx.ko ${pkgdir}/lib/modules/$_kernver/extra/ctn91xx.ko + install -Dm755 $srcdir/98-ctn91xx.rules $pkgdir/etc/udev/rules.d/98-ctn91xx.rules + #usb support + cp $srcdir/ceton_usb_udev.rules $pkgdir/etc/udev/rules.d/ + + cd $startdir/src/infinitv-usbd-$usb_pkgver + LDFLAGS="/usr/lib/libgthread-2.0.so" ./configure --prefix=/usr + make + make DESTDIR=${pkgdir} install + mkdir -p $pkgdir/usr/LH/bin + install -Dm755 $srcdir/ceton_usb_init.sh $pkgdir/usr/LH/bin/ + install -m755 $srcdir/reset_network.py $pkgdir/usr/bin/infinitv_reset_network.py + +} +md5sums=('7c56167bfa89d228bf170962bc42ac01' + '554f2c1bcc5d7169659f0ad3d8a513a5' + 'b5db78e2b9cccd65d6ea4c88dd028ace' + '9f95a08bdd8c2a9e8d62e7daf52a90f6' + '8da7dd477d7d47f03e85be4d6476e183' + 'e48d82ff70b05a74aaace9cdcb6875db') diff --git a/abs/core/ceton_infinitv/ceton.install b/abs/core/ceton_infinitv/ceton.install new file mode 100644 index 0000000..a0008f6 --- /dev/null +++ b/abs/core/ceton_infinitv/ceton.install @@ -0,0 +1,23 @@ +# arg 1: the new package version +KERNEL_VERSION=3.6.7-1-ARCH +post_install() { + depmod -ae -v $KERNEL_VERSION > /dev/null 2>&1 +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + depmod -ae -v $KERNEL_VERSION > /dev/null 2>&1 + rmmod ctn91xx + modprobe ctn91xx + +} + +# arg 1: the old package version +post_remove() { + depmod -ae -v $KERNEL_VERSION > /dev/null 2>&1 +} + +op=$1 +shift +$op $* diff --git a/abs/core/ceton_infinitv/ceton_usb_init.sh b/abs/core/ceton_infinitv/ceton_usb_init.sh new file mode 100755 index 0000000..d49cf9b --- /dev/null +++ b/abs/core/ceton_infinitv/ceton_usb_init.sh @@ -0,0 +1,11 @@ +#!/bin/bash +#Script to bring up the network for the usb ceton infinitv +#Will also start the infinitv_usb userspace program. +/etc/net/scripts/network.init start + +if [ ! -e /service/infinitv_usb ] +then + /sbin/add_service.sh infinitv_usb +else + /sbin/sv restart infinitv_usb +fi diff --git a/abs/core/ceton_infinitv/ceton_usb_udev.rules b/abs/core/ceton_infinitv/ceton_usb_udev.rules new file mode 100644 index 0000000..e4423b9 --- /dev/null +++ b/abs/core/ceton_infinitv/ceton_usb_udev.rules @@ -0,0 +1 @@ +KERNEL=="usb*", SUBSYSTEM=="net",ATTRS{manufacturer}=="Ceton Corporation" RUN+="/usr/LH/bin/ceton_usb_init.sh" |