Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gnometesting.git;a=commitdiff;h=ddadf5fc9de0310a9fa3b035f10e336e723c2416

commit ddadf5fc9de0310a9fa3b035f10e336e723c2416
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Sun Mar 14 01:47:47 2010 +0100

acerhk-0.5.35-41-i686

- add kernel2633.patch

diff --git a/source/apps-extra/acerhk/FrugalBuild 
b/source/apps-extra/acerhk/FrugalBuild
index 9277e1a..76463e4 100644
--- a/source/apps-extra/acerhk/FrugalBuild
+++ b/source/apps-extra/acerhk/FrugalBuild
@@ -4,16 +4,17 @@

pkgname=acerhk
pkgver=0.5.35
-pkgrel=40
+pkgrel=41
pkgdesc="Acer Hotkey driver for Linux"
url="http://www.cakey.de/acerhk/";
Finclude kernel-module
groups=('apps-extra')
archs=('i686' '!x86_64')
up2date="lynx -dump $url |grep tgz$|sed 's/.*-\(.*\)\.t.*/\1/'"
-source=($url/archives/$pkgname-$pkgver.tgz kernel2630.patch)
+source=($url/archives/$pkgname-$pkgver.tgz kernel263{0,3}.patch)
sha1sums=('cf977b2bee3487a401b9c92f04fe8b2ac77f2db2' \
-          '4b5e3ca6aa24e920dfd9bbcfa5b1e424b53bca77')
+          '4b5e3ca6aa24e920dfd9bbcfa5b1e424b53bca77' \
+          '02815da77b85ba6b1d0460287e332a35d5b5886f')

build()
{
@@ -21,7 +22,7 @@ build()
# no Fcheckkernel, crosscompilation verified
Fsed 'CFLAGS' 'EXTRA_CFLAGS' Makefile
sed -i '/config.h/d' acerhk.c
-       KERNELSRC=/usr/src/linux Fmake
+       KERNELSRC=/usr/src/linux make acerhk.ko || Fdie
Ffilerel $_F_kernelmod_dir/kernel/drivers/char/acerhk.ko
Fbuild_kernelmod_scriptlet
}
diff --git a/source/apps-extra/acerhk/kernel2633.patch 
b/source/apps-extra/acerhk/kernel2633.patch
new file mode 100644
index 0000000..b288ee9
--- /dev/null
+++ b/source/apps-extra/acerhk/kernel2633.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile b/Makefile
+index 44905ef..c2ee782 100644
+--- a/Makefile
++++ b/Makefile
+@@ -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
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to