mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
network/madwifi-driver: Updated for version 0.9.4
This commit is contained in:
parent
714cae15e0
commit
92dbd5ad20
7 changed files with 1573 additions and 30 deletions
|
@ -9,27 +9,11 @@ kernel version, two things are required:
|
|||
1) kernel source in /usr/src/linux-<version>
|
||||
2) run the script as: KERNELVERSION=<version> sh madwifi-driver.SlackBuild
|
||||
In place of <version> use only the version as you would see from the output of
|
||||
'uname -r' when running that kernel. Example: KERNELVERSION=2.6.27.10-smp
|
||||
'uname -r' when running that kernel. Example: KERNELVERSION=2.6.31.1-smp
|
||||
|
||||
The kernel module will then be installed to /lib/modules/<version>/....
|
||||
You may use this SlackBuild to build the madwifi module for as many *different*
|
||||
kernels as you like and they can be installed alongside each other without
|
||||
conflict.
|
||||
|
||||
Kernel requirements:
|
||||
Linux Kernel 2.4.23+ or 2.6.x series
|
||||
Kernel source and headers of running kernel
|
||||
No module versioning support
|
||||
option CONFIG_MODVERSIONS
|
||||
Wireless Extensions support in kernel
|
||||
v14+ required, v17+ recommended; option CONFIG_NET_RADIO
|
||||
Sysctl support in kernel
|
||||
option CONFIG_SYSCTL
|
||||
Crypto API support in kernel
|
||||
option CONFIG_CRYPTO
|
||||
HMAC support
|
||||
option CONFIG_CRYPTO_HMAC
|
||||
AES support (for WPA networks)
|
||||
option CONFIG_CRYPTO_AES
|
||||
|
||||
This requires madwifi-tools from SlackBuilds.org.
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
chroot . /sbin/depmod -ae _KERNEL_
|
||||
chroot . /sbin/depmod -ae @KERNEL@
|
||||
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
## Slackware build script for madwifi-driver
|
||||
|
||||
## Written by hollywoodb (hollywoodb@fastmail.fm)
|
||||
## Maintained by Robby Workman <rworkman@slackbuilds.org>
|
||||
## Modified by Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||
## Maintained by Larry Hajali <larryhaja[at]gmail[dot]com> 9/25/09
|
||||
|
||||
KERNELVERSION=${KERNELVERSION:-$(uname -r)}
|
||||
KERNELPATH=${KERNELPATH:-/lib/modules/${KERNELVERSION}/build}
|
||||
|
@ -12,7 +11,7 @@ KERNELPATH=${KERNELPATH:-/lib/modules/${KERNELVERSION}/build}
|
|||
PRGNAM=madwifi
|
||||
VERSION=0.9.4
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
PKG_NAME=madwifi-driver
|
||||
|
@ -39,6 +38,11 @@ chmod -R u+w,go+r-w,a-s .
|
|||
patch -p1 < $CWD/patches/madwifi-0.9.4_kernel_2.6.26.diff
|
||||
# Patch from: http://slackware.com/~alien/slackbuilds/madwifi/build/
|
||||
patch -p1 < $CWD/patches/madwifi-0.9.4_kernel_2.6.27.diff
|
||||
# Patches to build madwifi on Slackware 13.0
|
||||
# Patch from: http://bugs.gentoo.org/show_bug.cgi?id=262761
|
||||
patch -p1 < $CWD/patches/madwifi-0.9.4_kernel_2.6.29.diff
|
||||
# Patch from: http://madwifi-project.org/changeset/3986
|
||||
patch -p1 < $CWD/patches/madwifi-0.9.4_kernel_2.6.30.diff
|
||||
|
||||
KERNELPATH=$KERNELPATH KERNELRELEASE=$KERNELVERSION \
|
||||
make modules
|
||||
|
@ -53,7 +57,7 @@ cat $CWD/$PKG_NAME.SlackBuild > $PKG/usr/doc/$PKG_NAME-$PKG_VERSION/$PKG_NAME.Sl
|
|||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
sed s/_KERNEL_/$KERNELVERSION/ $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
sed s/@KERNEL@/$KERNELVERSION/ $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
PRGNAM="madwifi-driver"
|
||||
VERSION="0.9.4"
|
||||
HOMEPAGE="http://madwifi.org/"
|
||||
HOMEPAGE="http://madwifi-project.org/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/madwifi/madwifi-0.9.4.tar.gz"
|
||||
MD5SUM="399d20de8d855a59f20058857c2178ad"
|
||||
MAINTAINER="Nobody"
|
||||
EMAIL="nobody@nowhere"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Larry Hajali"
|
||||
EMAIL="larryhaja[at]gmail[dot]com"
|
||||
APPROVED="rworkman"
|
||||
|
|
1536
network/madwifi-driver/patches/madwifi-0.9.4_kernel_2.6.29.diff
Normal file
1536
network/madwifi-driver/patches/madwifi-0.9.4_kernel_2.6.29.diff
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,17 @@
|
|||
diff -Naur madwifi-0.9.4.orig/ath/if_athvar.h madwifi-0.9.4/ath/if_athvar.h
|
||||
--- madwifi-0.9.4.orig/ath/if_athvar.h 2008-02-12 06:05:28.000000000 +0000
|
||||
+++ madwifi-0.9.4/ath/if_athvar.h 2009-09-25 15:46:40.000000000 +0000
|
||||
@@ -94,11 +94,13 @@
|
||||
/*
|
||||
* Guess how the interrupt handler should work.
|
||||
*/
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
|
||||
#if !defined(IRQ_NONE)
|
||||
typedef void irqreturn_t;
|
||||
#define IRQ_NONE
|
||||
#define IRQ_HANDLED
|
||||
#endif /* !defined(IRQ_NONE) */
|
||||
+#endif /* Linux < 2.6.29 */
|
||||
|
||||
#ifndef SET_MODULE_OWNER
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
|
|
@ -13,7 +13,7 @@ madwifi-driver: madwifi driver for Atheros chipsets. The madwifi tools must
|
|||
madwifi-driver: be built seperately.
|
||||
madwifi-driver:
|
||||
madwifi-driver: Homepage: http://madwifi.org/
|
||||
madwifi-driver:
|
||||
madwifi-driver:
|
||||
madwifi-driver:
|
||||
madwifi-driver:
|
||||
madwifi-driver:
|
||||
madwifi-driver:
|
||||
madwifi-driver:
|
||||
madwifi-driver:
|
||||
|
|
Loading…
Reference in a new issue