summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/ndiswrapper/PKGBUILD
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-01-07 09:44:40 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-01-07 09:44:40 (GMT)
commit22cb9c31cde8a125c3b7d159d8b50941cb5c7714 (patch)
treeffdf1f5463d1c6fcc968ef15a82837210fba0a39 /abs/core-testing/ndiswrapper/PKGBUILD
parentf018045129450cc43d0e86eedcdd7b43d53ff691 (diff)
downloadlinhes_pkgbuild-22cb9c31cde8a125c3b7d159d8b50941cb5c7714.zip
linhes_pkgbuild-22cb9c31cde8a125c3b7d159d8b50941cb5c7714.tar.gz
linhes_pkgbuild-22cb9c31cde8a125c3b7d159d8b50941cb5c7714.tar.bz2
Updated kernel to 2.6.27. Updated latest PKGBUILD for various packages and recompiled.
Diffstat (limited to 'abs/core-testing/ndiswrapper/PKGBUILD')
-rw-r--r--abs/core-testing/ndiswrapper/PKGBUILD32
1 files changed, 19 insertions, 13 deletions
diff --git a/abs/core-testing/ndiswrapper/PKGBUILD b/abs/core-testing/ndiswrapper/PKGBUILD
index 927dc8c..9e4a0f1 100644
--- a/abs/core-testing/ndiswrapper/PKGBUILD
+++ b/abs/core-testing/ndiswrapper/PKGBUILD
@@ -1,29 +1,35 @@
-#$Id: PKGBUILD 7906 2008-08-05 07:01:51Z tpowa $
+#$Id: PKGBUILD 18549 2008-11-07 09:00:55Z tpowa $
#Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=ndiswrapper
-_kernver=2.6.26-ARCH
+_kernver=2.6.27-ARCH
pkgver=1.53
-pkgrel=1
+pkgrel=3
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For stock arch 2.6 kernel."
license=('GPL')
arch=(i686 x86_64)
url="http://ndiswrapper.sourceforge.net"
install="ndiswrapper.install"
-depends=("ndiswrapper-utils=$pkgver" 'kernel26>=2.6.26-1' 'kernel26<2.6.27')
-source=(http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz)
+depends=("ndiswrapper-utils=$pkgver" 'kernel26>=2.6.27' 'kernel26<2.6.28')
+source=(http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz
+ kernel-2.6.27.patch
+ ndiswrapper-CVE-2008-4395.patch)
+md5sums=('393c6e6ab0803963148e18538601cdec'
+ 'cd09562c4afdbd20a0237a5e6d976b31'
+ 'b35e548a0c9eb1395f6f7b434a258ddf')
build()
{
- cd $startdir/src/ndiswrapper-$pkgver/driver
- make KVERS=$_kernver
- make DESTDIR=$startdir/pkg KVERS=$_kernver install || return 1
- rm $startdir/pkg/lib/modules/$_kernver/modules.* #wtf?
+ cd $srcdir/ndiswrapper-$pkgver/driver
+ patch -Np1 -i ../../kernel-2.6.27.patch || return 1
+ patch -Np3 -i ../../ndiswrapper-CVE-2008-4395.patch || return 1
+ make KVERS=$_kernver || return 1
+ make DESTDIR=$pkgdir KVERS=$_kernver install || return 1
+ rm $pkgdir/lib/modules/$_kernver/modules.* #wtf?
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
# move it to correct kernel directory
- mkdir -p $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/ndiswrapper
- mv $startdir/pkg/lib/modules/$_kernver/misc/* $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/ndiswrapper/
- rm -r $startdir/pkg/lib/modules/$_kernver/misc/
+ mkdir -p $pkgdir/lib/modules/$_kernver/kernel/drivers/net/wireless/ndiswrapper
+ mv $pkgdir/lib/modules/$_kernver/misc/* $pkgdir/lib/modules/$_kernver/kernel/drivers/net/wireless/ndiswrapper/
+ rm -r $pkgdir/lib/modules/$_kernver/misc/
}
-md5sums=('393c6e6ab0803963148e18538601cdec')