From 2b9073eff507a14b7d3983a3819bf2af5fbed98a Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 2 May 2012 11:54:34 -0500
Subject: dvb-firmware: add modprobe option for xc5000

---
 abs/core/dvb-firmware/PKGBUILD             |   9 ++++++---
 abs/core/dvb-firmware/dvb-firmware.tar.bz2 | Bin 0 -> 13819768 bytes
 abs/core/dvb-firmware/xc5000.conf          |   4 ++++
 3 files changed, 10 insertions(+), 3 deletions(-)
 create mode 100644 abs/core/dvb-firmware/dvb-firmware.tar.bz2
 create mode 100644 abs/core/dvb-firmware/xc5000.conf

diff --git a/abs/core/dvb-firmware/PKGBUILD b/abs/core/dvb-firmware/PKGBUILD
index bbd7356..73a4d15 100644
--- a/abs/core/dvb-firmware/PKGBUILD
+++ b/abs/core/dvb-firmware/PKGBUILD
@@ -3,16 +3,19 @@
 
 pkgname=dvb-firmware
 pkgver=1
-pkgrel=14
+pkgrel=15
 pkgdesc="Firmware for DVB cards"
 replaces=('hd3000firmware')
 arch=('i586' 'i686' 'x86_64')
 url="http://linuxtv.org/"
-source=(ftp://ftp.knoppmyth.net/R6/sources/dvb-firmware.tar.bz2)
+source=(dvb-firmware.tar.bz2 xc5000.conf)
 
 build() {
   cd $startdir/src/
   mkdir -p $startdir/pkg/lib/firmware
   cp -a dvb-fw/* $startdir/pkg/lib/firmware
+  mkdir -p ${pkgdir}/etc/modprobe.d/
+  install -D -m644 "${srcdir}/xc5000.conf" "${pkgdir}/etc/modprobe.d/"
 }
-md5sums=('32e19e3f9f849e667c6f7db1186180b9')
+md5sums=('32e19e3f9f849e667c6f7db1186180b9'
+         '34dcdb3465572ca8e77325260763daa5')
diff --git a/abs/core/dvb-firmware/dvb-firmware.tar.bz2 b/abs/core/dvb-firmware/dvb-firmware.tar.bz2
new file mode 100644
index 0000000..e5b0d18
Binary files /dev/null and b/abs/core/dvb-firmware/dvb-firmware.tar.bz2 differ
diff --git a/abs/core/dvb-firmware/xc5000.conf b/abs/core/dvb-firmware/xc5000.conf
new file mode 100644
index 0000000..5b5dfa9
--- /dev/null
+++ b/abs/core/dvb-firmware/xc5000.conf
@@ -0,0 +1,4 @@
+*   xc5000
+*   Disable power cycling and firmware reloads
+*
+options xc5000 no_poweroff=1
-- 
cgit v0.12