summaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2005-04-10 18:51:43 +0000
committer Eric Hameleers <alien@slackware.com>2005-04-10 18:51:43 +0000
commiteb90b5e5acf540fd90593b6ca41d1ca70387b30a (patch)
tree29d2a6ba687cda621165f36d22087277b2bfb3cb /wpa_supplicant
parentb297e0964ec3fc035a178791508c804391102cf2 (diff)
downloadasb-eb90b5e5acf540fd90593b6ca41d1ca70387b30a.tar.gz
asb-eb90b5e5acf540fd90593b6ca41d1ca70387b30a.tar.xz
Added support for ndiswrapper, parametrized the madwifi source path.
Diffstat (limited to 'wpa_supplicant')
-rwxr-xr-xwpa_supplicant/build/wpa_supplicant.SlackBuild39
1 files changed, 27 insertions, 12 deletions
diff --git a/wpa_supplicant/build/wpa_supplicant.SlackBuild b/wpa_supplicant/build/wpa_supplicant.SlackBuild
index a87c8387..2476b26e 100755
--- a/wpa_supplicant/build/wpa_supplicant.SlackBuild
+++ b/wpa_supplicant/build/wpa_supplicant.SlackBuild
@@ -1,18 +1,22 @@
#!/bin/sh
-#
+# $Id$
# ------------------------------------------------------------------------------
#
# Slackware SlackBuild script
# ===========================
# By: Eric Hameleers
-# Created: 23/sep/2004
# For: wpa_supplicant
# URL: http://hostap.epitest.fi/wpa_supplicant/
# Requires: Source code for supported wireless card drivers
# openssl >= 0.9.7
# Changelog:
-# Build 1: 23/sep/2004 by Eric Hameleers
-# First release.
+# 20040923CVS-1: * 23/sep/2004 by Eric Hameleers
+# First release.
+# 0.3.8-1: * 09/apr/2005 by Eric Hameleers
+# Update
+# 0.3.8-2: * 09/apr/2005 by Eric Hameleers
+# Enabled support for ndiswrapper.
+# Parametrized the location for the madwifi driver sources.
#
# ------------------------------------------------------------------------------
#
@@ -31,13 +35,17 @@ if [ "$TMP" = "" ]; then
TMP=/tmp
fi
-TARBALL=hostap
PRGNAM=wpa_supplicant
-VERSION=20040923CVS
+VERSION=0.3.8
ARCH=${ARCH:-i486}
-BUILD=1
+BUILD=2
+
+# Support for madwifi needs the madwifi driver's source tree;
+# Change this to where _your_ madwifi source directory is
+# (the compile will fail if these are not present, sorry...):
+MADWIFI_PATH="/tmp/tmp-madwifi/madwifi"
-DOC="ChangeLog README ../www/wpa_supplicant/*.html doc/* $CWD/wpa_supplicant_config $CWD/README.slackware"
+DOC="ChangeLog COPYING README doc/* $CWD/wpa_supplicant_config $CWD/README.slackware"
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
@@ -73,16 +81,23 @@ cd $TMP/tmp-$PRGNAM
#
# Extract the source archive, patch and modify
#
-tar -xzvf $CWD/${TARBALL}-${VERSION}.tar.gz
-cd ${TARBALL}/${PRGNAM}
-patch -p 0 < $CWD/${PRGNAM}_Makefile.patch
+tar -xzvf $CWD/${PRGNAM}-${VERSION}.tar.gz
+cd ${PRGNAM}-${VERSION}
+
+sed -i -e 's#\@\@MADWIFI_PATH\@\@#${MADWIFI_PATH}#' \
+ $CWD/wpa_supplicant_defconfig.patch
+patch -p 0 < $CWD/${PRGNAM}_defconfig.patch
+cp defconfig .config
chown -R root.root .
make 2>&1 | tee $CWD/make.log
mkdir -p $PKG/usr/sbin
-cp wpa_supplicant wpa_pasphrase wpa_cli $PKG/usr/sbin/
+cp wpa_supplicant wpa_passphrase wpa_cli $PKG/usr/sbin/
+
+mkdir -p $PKG/etc
+cp wpa_supplicant.conf $PKG/etc/wpa_supplicant.conf.sample
# Strip binaries and libs, fix ownership:
chown -R root.root $PKG