summaryrefslogtreecommitdiffstats
path: root/test/microdia
diff options
context:
space:
mode:
authorsibel <sibel@free.fr>2010-02-27 17:31:58 +0100
committersibel <sibel@free.fr>2010-02-27 17:31:58 +0100
commitc358c642bd4185f58d9b857ada9e22124c4c9727 (patch)
tree32f666d8d53b1ee1818d8b3398ca7fddab5b5fd9 /test/microdia
parent85d3ce156f6d881866e3d84f1e86507c3ffbf993 (diff)
parentb56d5e93a30ffa49194f96f521695bbdbebcbedd (diff)
downloadnutyx-pakxe-c358c642bd4185f58d9b857ada9e22124c4c9727.tar.gz
nutyx-pakxe-c358c642bd4185f58d9b857ada9e22124c4c9727.tar.bz2
nutyx-pakxe-c358c642bd4185f58d9b857ada9e22124c4c9727.tar.xz
nutyx-pakxe-c358c642bd4185f58d9b857ada9e22124c4c9727.zip
Merge remote branch 'nutyx-2009/master'
Diffstat (limited to 'test/microdia')
-rw-r--r--test/microdia/.footprint9
-rw-r--r--test/microdia/.md5sum0
-rw-r--r--test/microdia/Pkgfile23
-rw-r--r--test/microdia/post-install8
4 files changed, 40 insertions, 0 deletions
diff --git a/test/microdia/.footprint b/test/microdia/.footprint
new file mode 100644
index 000000000..111e2fa58
--- /dev/null
+++ b/test/microdia/.footprint
@@ -0,0 +1,9 @@
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/modules/
+drwxr-xr-x root/root lib/modules/<kernel-version>/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/media/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/media/video/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/drivers/media/video/videousb/
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/media/video/videousb/sn9c20x.ko
diff --git a/test/microdia/.md5sum b/test/microdia/.md5sum
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/test/microdia/.md5sum
diff --git a/test/microdia/Pkgfile b/test/microdia/Pkgfile
new file mode 100644
index 000000000..0450e9950
--- /dev/null
+++ b/test/microdia/Pkgfile
@@ -0,0 +1,23 @@
+# Description:microdia webcams
+# URL: http://wiki.archlinux.fr/howto:materiel:microdia
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: ctags
+
+name=microdia
+version=20091122
+release=1
+_kernver=`uname -r`
+source=()
+
+
+
+build() {
+ git clone http://repo.or.cz/r/microdia.git
+ cd $name
+ sed -i -e "s/KERNEL_VERSION = .*/KERNEL_VERSION = ${_kernver}/" Makefile
+ make KVER=${_kernver}
+ mkdir -p $PKG/lib/modules/${_kernver}/kernel/drivers/media/video/videousb
+ cp sn9c20x.ko \
+ $PKG/lib/modules/${_kernver}/kernel/drivers/media/video/videousb/
+}
diff --git a/test/microdia/post-install b/test/microdia/post-install
new file mode 100644
index 000000000..81a8d1263
--- /dev/null
+++ b/test/microdia/post-install
@@ -0,0 +1,8 @@
+#!/bin/bash
+# MAJ modules
+depmod
+# Ajout du module dans /etc/sysconfig/modules
+if ! grep "sn9c20x" /etc/sysconfig/modules >/dev/null; then
+ sed -i '/End/ i sn9c20x' /etc/sysconfig/modules
+fi
+