diff options
author | geantbrun <geantbrun at gmail dot com> | 2010-11-14 21:59:19 +0100 |
---|---|---|
committer | geantbrun <geantbrun at gmail dot com> | 2010-11-14 21:59:19 +0100 |
commit | 3ab55f011ef4890a7539edd4e27c04e2fbe8954e (patch) | |
tree | 08f87163a943b55dc85114e440d694e9dd452c47 | |
parent | 40b114afcd34dd9ccf216a1f7b157271d450764b (diff) | |
download | nutyx-pakxe-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.tar.gz nutyx-pakxe-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.tar.bz2 nutyx-pakxe-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.tar.xz nutyx-pakxe-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.zip |
acerhk, nouveau port version 0.5.35-1
-rw-r--r-- | acompiler/acerhk/.footprint | 28 | ||||
-rw-r--r-- | acompiler/acerhk/.md5sum | 5 | ||||
-rw-r--r-- | acompiler/acerhk/Pkgfile | 47 | ||||
-rwxr-xr-x | acompiler/acerhk/acerhk | 50 | ||||
-rw-r--r-- | acompiler/acerhk/acerhk#0.5.35-1.pkg.tar.xz | bin | 0 -> 14632 bytes | |||
-rw-r--r-- | acompiler/acerhk/acerhk-0.5.35-kernel-2.6.30.patch | 72 | ||||
-rw-r--r-- | acompiler/acerhk/acerhk-0.5.35-kernelversion-01.patch | 12 | ||||
-rw-r--r-- | acompiler/acerhk/post-install | 6 |
8 files changed, 220 insertions, 0 deletions
diff --git a/acompiler/acerhk/.footprint b/acompiler/acerhk/.footprint new file mode 100644 index 000000000..f8afdadff --- /dev/null +++ b/acompiler/acerhk/.footprint @@ -0,0 +1,28 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/rc.d/ +drwxr-xr-x root/root etc/rc.d/init.d/ +-rwxr-xr-x root/root etc/rc.d/init.d/acerhk +drwxr-xr-x root/root etc/rc.d/rc0.d/ +lrwxrwxrwx root/root etc/rc.d/rc0.d/K85acerhk -> ../init.d/acerk +drwxr-xr-x root/root etc/rc.d/rc1.d/ +lrwxrwxrwx root/root etc/rc.d/rc1.d/K85acerhk -> ../init.d/acerk +drwxr-xr-x root/root etc/rc.d/rc2.d/ +lrwxrwxrwx root/root etc/rc.d/rc2.d/S25acerhk -> ../init.d/acerhk +drwxr-xr-x root/root etc/rc.d/rc3.d/ +lrwxrwxrwx root/root etc/rc.d/rc3.d/S25acerhk -> ../init.d/acerhk +drwxr-xr-x root/root etc/rc.d/rc4.d/ +lrwxrwxrwx root/root etc/rc.d/rc4.d/S25acerhk -> ../init.d/acerhk +drwxr-xr-x root/root etc/rc.d/rc5.d/ +lrwxrwxrwx root/root etc/rc.d/rc5.d/S25acerhk -> ../init.d/acerhk +drwxr-xr-x root/root etc/rc.d/rc6.d/ +lrwxrwxrwx root/root etc/rc.d/rc6.d/K85acerhk -> ../init.d/acerk +drwxr-xr-x root/root lib/ +drwxr-xr-x root/root lib/firmware/ +-rw-r--r-- root/root lib/firmware/1.0.4.3.arm +lrwxrwxrwx root/root lib/firmware/isl3890 -> 1.0.4.3.arm +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/block/ +-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/drivers/block/acerhk.ko diff --git a/acompiler/acerhk/.md5sum b/acompiler/acerhk/.md5sum new file mode 100644 index 000000000..2fae638ea --- /dev/null +++ b/acompiler/acerhk/.md5sum @@ -0,0 +1,5 @@ +8bd4310971772a486b9784c77f8a6df9 1.0.4.3.arm +801b5bd8afa559b7909ce57a30b18b19 acerhk +2a0bc99e5b12e25096441df4d53d7df7 acerhk-0.5.35-kernel-2.6.30.patch +fd2ef062ecbc9d670e1b42aa5866d32d acerhk-0.5.35-kernelversion-01.patch +05255919f312cb76af473a760c284433 acerhk-0.5.35.tgz diff --git a/acompiler/acerhk/Pkgfile b/acompiler/acerhk/Pkgfile new file mode 100644 index 000000000..61e5133b8 --- /dev/null +++ b/acompiler/acerhk/Pkgfile @@ -0,0 +1,47 @@ +# Description: Pilote hotkey pour Acer +# URL: "http://www.cakey.de/acerhk/index.html" +# Maintainer: nutyx core team +# Packager: geantbrun +# Depends on: +name=acerhk +version=0.5.35 +release=1 +source=(http://www.cakey.de/acerhk/archives/$name-$version.tgz \ + http://nutyx.meticul.eu/files/patch/$name/1.0.4.3.arm \ + $name $name-$version-kernel-2.6.30.patch $name-$version-kernelversion-01.patch) + +_kernver=`uname -r` + +build() { + + # firmware + mkdir -p $PKG/lib/firmware + cp $SRC/1.0.4.3.arm $PKG/lib/firmware/ + ln -s 1.0.4.3.arm $PKG/lib/firmware/isl3890 + + # module kernel + cd $SRC/$name-$version + sed -i 's/CFLAGS/EXTRA_CFLAGS/' Makefile + patch -Np1 -i $SRC/acerhk-0.5.35-kernel-2.6.30.patch + patch -N -p1 < $SRC/acerhk-0.5.35-kernelversion-01.patch + + # Set KERNELSRC. The makefile tries to autodetect it with uname, + # but that is unreliable. + + make KERNELSRC="/lib/modules/${_kernver}/build" acerhk.ko + + install -Dm644 "$SRC/$name-$version/acerhk.ko" \ + $PKG/lib/modules/${_kernver}/kernel/drivers/block/acerhk.ko + + # Service + install -Dm755 $SRC/acerhk $PKG/etc/rc.d/init.d/acerhk + mkdir -p $PKG/etc/rc.d/rc{0,1,2,3,4,5,6}.d + for i in 2 3 4 5 + do + ln -s ../init.d/acerhk $PKG/etc/rc.d/rc$i.d/S25acerhk + done + for i in 0 1 6 + do + ln -s ../init.d/acerk $PKG/etc/rc.d/rc$i.d/K85acerhk + done +} diff --git a/acompiler/acerhk/acerhk b/acompiler/acerhk/acerhk new file mode 100755 index 000000000..b54018f84 --- /dev/null +++ b/acompiler/acerhk/acerhk @@ -0,0 +1,50 @@ +#!/bin/sh +######################################################################## +# Begin $rc_base/init.d/acerhk +# +# Description : Lance le service pour les acer hotkey +# +# Authors : geantbrun +# +# Version : 00.00 +# +# Notes : +# +######################################################################## + +. /etc/sysconfig/rc +. ${rc_functions} + +case "${1}" in + start) + boot_mesg "Starting Acer Hotkey Wireless LED..." + if [ ! -f /proc/driver/acerhk/wirelessled ]; then + echo_failure + else + echo 1 > /proc/driver/acerhk/wirelessled + echo_ok + fi;; + + stop) + boot_mesg "Stopping Acer Hotkey Wireless LED..." + if [ ! -f /proc/driver/acerhk/wirelessled ]; then + echo_failure + else + echo 0 > /proc/driver/acerhk/wirelessled + echo_ok + fi;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + + *) + echo "Usage: ${0} {start|stop|restart}" + exit 1 + ;; +esac + +# End $rc_base/init.d/acerhk diff --git a/acompiler/acerhk/acerhk#0.5.35-1.pkg.tar.xz b/acompiler/acerhk/acerhk#0.5.35-1.pkg.tar.xz Binary files differnew file mode 100644 index 000000000..c3f3bf86a --- /dev/null +++ b/acompiler/acerhk/acerhk#0.5.35-1.pkg.tar.xz diff --git a/acompiler/acerhk/acerhk-0.5.35-kernel-2.6.30.patch b/acompiler/acerhk/acerhk-0.5.35-kernel-2.6.30.patch new file mode 100644 index 000000000..eec5a5cf3 --- /dev/null +++ b/acompiler/acerhk/acerhk-0.5.35-kernel-2.6.30.patch @@ -0,0 +1,72 @@ +--- a/acerhk.c ++++ b/acerhk.c +@@ -2668,7 +2668,9 @@ static int acerhk_proc_init(void) + printk(KERN_INFO"acerhk: could not create /proc/driver/acerhk\n"); + } + else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) + proc_acer_dir->owner = THIS_MODULE; ++#endif + /* now create several files, first general info ... */ + entry = create_proc_read_entry("info", + 0444, proc_acer_dir, acerhk_proc_info, NULL); +@@ -2677,7 +2679,9 @@ static int acerhk_proc_init(void) + remove_proc_entry("driver/acerhk", NULL); + retval = 0; + } else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) + entry->owner = THIS_MODULE; ++#endif + /* ... last pressed key ... */ + entry = create_proc_read_entry("key", + 0444, proc_acer_dir, acerhk_proc_key, NULL); +@@ -2687,7 +2691,9 @@ static int acerhk_proc_init(void) + remove_proc_entry("driver/acerhk", NULL); + retval = 0; + } else { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) + entry->owner = THIS_MODULE; ++#endif + /* ... and led control file */ + entry = create_proc_entry("led", 0222, proc_acer_dir); + if (entry == NULL) { +@@ -2699,7 +2705,9 @@ static int acerhk_proc_init(void) + } + else { + entry->write_proc = acerhk_proc_led; ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) + entry->owner = THIS_MODULE; ++#endif + /* ... and wireless led controll file */ + entry = create_proc_entry("wirelessled", 0222, proc_acer_dir); + if (entry == NULL) { +@@ -2712,7 +2720,9 @@ static int acerhk_proc_init(void) + } + else { + entry->write_proc = acerhk_proc_wirelessled; ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) + entry->owner = THIS_MODULE; ++#endif + /* ... and bluetooth led controll file */ + entry = create_proc_entry("blueled", 0222, proc_acer_dir); + if (entry == NULL) { +@@ -2725,7 +2735,9 @@ static int acerhk_proc_init(void) + retval = 0; + } else { + entry->write_proc = acerhk_proc_blueled; ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) + entry->owner = THIS_MODULE; ++#endif + retval = 1; + #ifdef ACERDEBUG + /* add extra file for debugging purposes */ +@@ -2742,7 +2754,9 @@ static int acerhk_proc_init(void) + } + else { + entry->write_proc = acerhk_proc_debug; ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) + entry->owner = THIS_MODULE; ++#endif + retval = 1; + } + #endif diff --git a/acompiler/acerhk/acerhk-0.5.35-kernelversion-01.patch b/acompiler/acerhk/acerhk-0.5.35-kernelversion-01.patch new file mode 100644 index 000000000..033c94989 --- /dev/null +++ b/acompiler/acerhk/acerhk-0.5.35-kernelversion-01.patch @@ -0,0 +1,12 @@ +diff -Naur acerhk-0.5.35/Makefile acerhk-0.5.35-new/Makefile +--- acerhk-0.5.35/Makefile 2006-08-16 11:11:08.000000000 -0500 ++++ acerhk-0.5.35-new/Makefile 2010-04-09 15:59:40.000000000 -0500 +@@ -3,7 +3,7 @@ + #KERNELSRC=/usr/src/linux + KERNELSRC?=/lib/modules/`uname -r`/build + # Starting with 2.6.18, the kernel version is in utsrelease.h instead of version.h, accomodate both cases +-KERNELVERSION=$(shell awk -F\" '/REL/ {print $$2}' $(shell grep -s -l REL $(KERNELSRC)/include/linux/version.h $(KERNELSRC)/include/linux/utsrelease.h)) ++KERNELVERSION=$(shell awk -F\" '/REL/ {print $$2}' $(shell grep -s -l REL $(KERNELSRC)/include/linux/version.h $(KERNELSRC)/include/generated/utsrelease.h)) + KERNELMAJOR=$(shell echo $(KERNELVERSION)|head -c3) + + # next line is for kernel 2.6, if you integrate the driver in the kernel tree diff --git a/acompiler/acerhk/post-install b/acompiler/acerhk/post-install new file mode 100644 index 000000000..26f40bf12 --- /dev/null +++ b/acompiler/acerhk/post-install @@ -0,0 +1,6 @@ +cat << EOM +>>> PLEASE ADD PROPER OPTIONS IN /etc/modprobe.d/modprobe.conf IF NEEDED +>>> e.g. for Series 290: +>>> echo "options acerhk force_series=290 usedritek=1 verbose=0" >> /etc/modprobe.conf +EOM +depmod -a |