Commit ba93c6c6 authored by Phil's avatar Phil

acpi_call: update for 3.1

broadcom: rebuild for 3.1
ndiswrapper: dito
vhba-module: dito
tiacx: seems we have to drop it
parent e32067ae
......@@ -8,17 +8,17 @@
_kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
pkgname=acpi_call
pkgver=20110704
pkgrel=2
pkgver=20111101
pkgrel=1
pkgdesc="A kernel module that enables you to call parameterless ACPI methods by writing the method name to /proc/acpi/call, e.g. to turn off discrete graphics card in a dual graphics environment (like NVIDIA Optimus)."
arch=('i686' 'x86_64')
url=("http://github.com/mkottman/acpi_call")
license=('GPL')
depends=('linux>=3.0' 'linux<3.1' 'linux-headers')
depends=('linux>=3.1' 'linux<3.2' 'linux-headers')
makedepends=('git')
install=acpi_call.install
source=(http://chakra-project.org/sources/${pkgname}/${pkgname}-${pkgver}.tar.xz)
md5sums=('a178f28c458be6bc061ad9d281639c54')
md5sums=('dc6c7af743a0f0a643195bdc21860af0')
# create tarball: source PKGBUILD && mksource
......@@ -40,7 +40,7 @@ build() {
cd ${srcdir}/$pkgname-build
sed \
-e 's/$(shell uname -r)/3.0-CHAKRA/g' \
-e 's/$(shell uname -r)/3.1-CHAKRA/g' \
-i Makefile
make
}
......
......@@ -9,12 +9,12 @@ _kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
pkgname=broadcom-wl
pkgver=5.100.82.38
pkgrel=10
pkgrel=11
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
arch=('i686' 'x86_64')
url='http://www.broadcom.com/support/802.11/linux_sta.php'
license=('custom')
depends=('linux>=3.0' 'linux<3.1')
depends=('linux>=3.1' 'linux<3.2')
makedepends=('linux-headers')
[ "$CARCH" = 'x86_64' ] && ARCH=x86_64 || ARCH=x86_32
......
......@@ -2,7 +2,7 @@
# arg 2: the old package version
KERNEL_NAME=
KERNEL_VERSION=3.0-CHAKRA
KERNEL_VERSION=3.1-CHAKRA
post_install () {
# updating module dependencies
......
......@@ -9,7 +9,7 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=ndiswrapper
pkgver=1.56
pkgrel=16
pkgrel=17
# Find the kernel name inside the chroot
_kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
......@@ -19,30 +19,46 @@ license=('GPL')
arch=(i686 x86_64)
url="http://ndiswrapper.sourceforge.net"
install="ndiswrapper.install"
depends=("ndiswrapper-utils=$pkgver" 'linux>=3.0' 'linux<3.1')
depends=("ndiswrapper-utils=$pkgver" 'linux>=3.1' 'linux<3.2')
makedepends=('linux-headers')
source=(http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz
kernel-2.6.35.patch
kernel-2.6.36.patch
kernel-2.6.38.patch)
kernel-2.6.38.patch
kernel-3.1.patch)
build()
{
cd $srcdir/ndiswrapper-$pkgver/driver
patch -Np2 -i $startdir/kernel-2.6.35.patch
patch -Np2 -i $startdir/kernel-2.6.36.patch
patch -Np2 -i $startdir/kernel-2.6.38.patch
cd "$srcdir/$pkgname-$pkgver"
# kernel patches
patch -Np1 -i "$srcdir/kernel-2.6.35.patch"
patch -Np1 -i "$srcdir/kernel-2.6.36.patch"
patch -Np1 -i "$srcdir/kernel-2.6.38.patch"
patch -Np1 -i "$srcdir/kernel-3.1.patch"
# fix regex to accept kernel version 3.x
sed -i "/uname/s/\/.*\//\/(\\\d+)\\\.(\\\d+)\//" utils/$pkgname
# fix module dir
sed -i "s|misc|kernel/drivers/net/wireless/$pkgname|" driver/Makefile
make KVERS=$_kernver
make DESTDIR=$pkgdir KVERS=$_kernver install
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 $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/
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" KVERS=$_kernver install
# remove useless files (they already exist)
rm "$pkgdir"/lib/modules/$_kernver/modules.*
# gzip -9 modules
find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
}
md5sums=('1431f7ed5f8e92e752d330bbb3aed333'
'0a03d613b1fd545a75c5dd1a7c2aaec4'
'cc16ed13449f17e90865df688b180b2c'
'2499a87276ae0c8ce39bea6ef942d926')
\ No newline at end of file
'2499a87276ae0c8ce39bea6ef942d926'
'993e83a5348740b81d8f9d6e819de8b8')
\ No newline at end of file
--- ndiswrapper-1.56.old/driver/ntoskernel.h~ 2011-11-01 19:05:17.000000000 +0100
+++ ndiswrapper-1.56/driver/ntoskernel.h 2011-11-01 19:05:17.000000000 +0100
@@ -275,10 +275,6 @@ typedef u32 pm_message_t;
#define PM_EVENT_SUSPEND 2
#endif
-#if !defined(HAVE_NETDEV_PRIV)
-#define netdev_priv(dev) ((dev)->priv)
-#endif
-
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18)
#define ISR_PT_REGS_PARAM_DECL
#define ISR_PT_REGS_ARG
......@@ -9,12 +9,12 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=tiacx
pkgver=20080210
pkgrel=28
pkgrel=29
pkgdesc="OpenSource module for Texas Instruments ACX100/ACX111 wireless chips. For stock chakra kernel"
arch=(i686 x86_64)
url="http://acx100.sourceforge.net/"
license=('MPL')
depends=('wireless_tools' 'linux>=3.0' 'linux<3.1' 'tiacx-firmware')
depends=('wireless_tools' 'linux>=3.1' 'linux<3.2' 'tiacx-firmware')
makedepends=('linux-headers' 'linux-headers')
install=acx.install
source=(http://downloads.sourceforge.net/sourceforge/acx100/acx-$pkgver.tar.bz2
......
......@@ -8,12 +8,12 @@ pkgname=vhba-module
pkgver=20100822
# Find the kernel name inside the chroot
_kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
pkgrel=6
pkgrel=7
pkgdesc="Kernel module that emulates SCSI devices"
arch=('i686' 'x86_64')
url="http://cdemu.sourceforge.net/"
license=('GPL2')
depends=('linux>=3.0' 'linux<3.1')
depends=('linux>=3.1' 'linux<3.2')
makedepends=('linux-headers')
install=vhba-module.install
source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.gz
......
post_install() {
echo ">> Place 'vhba' in MODULES= in /etc/rc.conf to enable vhba on system boot."
echo ">> This module needs to be recompiled for every kernel version upgrade."
KERNEL_VERSION='3.0-CHAKRA'
KERNEL_VERSION='3.1-CHAKRA'
depmod $KERNEL_VERSION > /dev/null 2>&1
}
......@@ -10,7 +10,7 @@ post_upgrade() {
}
post_remove() {
KERNEL_VERSION='3.0-CHAKRA'
KERNEL_VERSION='3.1-CHAKRA'
depmod $KERNEL_VERSION > /dev/null 2>&1
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment