aboutsummaryrefslogtreecommitdiff
path: root/network/rt5370/rt5370.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/rt5370/rt5370.SlackBuild')
-rw-r--r--network/rt5370/rt5370.SlackBuild22
1 files changed, 7 insertions, 15 deletions
diff --git a/network/rt5370/rt5370.SlackBuild b/network/rt5370/rt5370.SlackBuild
index bff2332afc304..cc4b96512ab0f 100644
--- a/network/rt5370/rt5370.SlackBuild
+++ b/network/rt5370/rt5370.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for rt5370
-# Copyright 2012 Roberto Neri, Palermo, Italy
+# Copyright 2012-2013 Roberto Neri, Palermo, Italy
#
# All rights reserved.
#
@@ -24,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=rt5370
-VERSION=2.5.0.3
+VERSION=2.6.1.3
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
KERNEL=${KERNEL:-$(uname -r)}
PKGVERSION=${VERSION}_$(echo $KERNEL | tr - _)
-SRCNAM=2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V${VERSION}_DPO
+SRCNAM=DPO_RT5572_LinuxSTA_${VERSION}_20121022
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -51,7 +51,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM
-tar xvf $CWD/$SRCNAM.bz2
+tar xvf $CWD/$SRCNAM.tar.bz2
cd $SRCNAM
chown -R root:root .
find . \
@@ -60,22 +60,14 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-for PATCH in \
- config.mk.diff \
- Makefile.diff \
- Makefile.4.diff \
- Makefile.4.netif.diff \
- Makefile.4.util.diff \
- Makefile.6.diff \
- Makefile.6.netif.diff \
- Makefile.6.util.diff ; do
- patch -p1 < $CWD/patches/$PATCH
-done
+# Fix Makefiles and set 'HAS_WPA_SUPPLICANT=y' 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y' in os/linux/config.mk
+patch -p1 < $CWD/$PRGNAM-$VERSION.patch
KERNEL=$KERNEL make
KERNEL=$KERNEL make install DESTDIR=$PKG
mv $PKG/etc/Wireless/RT2870STA/RT2870STA.dat $PKG/etc/Wireless/RT2870STA/RT2870STA.dat.new
+cp -a RT2870STACard.dat $PKG/etc/Wireless/RT2870STA/RT2870STACard.dat.sample
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true