From e08f07df3a4a25b3fa69f44bd7fdbd695d1deb33 Mon Sep 17 00:00:00 2001 From: tnut Date: Sat, 27 Feb 2010 17:12:05 +0100 Subject: microdia dans test --- test/microdia/.footprint | 9 +++++++++ test/microdia/.md5sum | 0 test/microdia/Pkgfile | 23 +++++++++++++++++++++++ test/microdia/post-install | 8 ++++++++ 4 files changed, 40 insertions(+) create mode 100644 test/microdia/.footprint create mode 100644 test/microdia/.md5sum create mode 100644 test/microdia/Pkgfile create mode 100644 test/microdia/post-install (limited to 'test/microdia') 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// +drwxr-xr-x root/root lib/modules//kernel/ +drwxr-xr-x root/root lib/modules//kernel/drivers/ +drwxr-xr-x root/root lib/modules//kernel/drivers/media/ +drwxr-xr-x root/root lib/modules//kernel/drivers/media/video/ +drwxr-xr-x root/root lib/modules//kernel/drivers/media/video/videousb/ +-rw-r--r-- root/root lib/modules//kernel/drivers/media/video/videousb/sn9c20x.ko diff --git a/test/microdia/.md5sum b/test/microdia/.md5sum new file mode 100644 index 000000000..e69de29bb 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 + -- cgit v1.2.3-70-g09d2