summaryrefslogtreecommitdiff
path: root/network/rt3xxx/rt3xxx.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/rt3xxx/rt3xxx.SlackBuild')
-rw-r--r--network/rt3xxx/rt3xxx.SlackBuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/network/rt3xxx/rt3xxx.SlackBuild b/network/rt3xxx/rt3xxx.SlackBuild
index a81b8f34d5..dd7fc21e8b 100644
--- a/network/rt3xxx/rt3xxx.SlackBuild
+++ b/network/rt3xxx/rt3xxx.SlackBuild
@@ -2,13 +2,15 @@
# Slackware build script for rt3xxx
-# Written by crocket (crockabiscuit@yahoo.com)
+# Written by crocket (crockabiscuit@gmail.com)
PRGNAM=rt3xxx
-VERSION=2.4.1.1_20101217
-BUILD=${BUILD:-1}
+VERSION=2.4.1.1
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+VERSDATE=20101217
+
SRCNAM=DPO_RT3562_3592_3062_LinuxSTA_V
KERNEL=${KERNEL:-$(uname -r)}
@@ -36,9 +38,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM$VERSION
-tar xvf $CWD/$SRCNAM$VERSION.tgz
-cd $SRCNAM$VERSION
+rm -rf $SRCNAM${VERSION}_$VERSDATE
+tar xvf $CWD/$SRCNAM${VERSION}_$VERSDATE.tgz
+cd $SRCNAM${VERSION}_$VERSDATE
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -52,12 +54,11 @@ patch -p1 < $CWD/patches/Makefile.diff
patch -p1 < $CWD/patches/kill_tftpboot_creation.diff
patch -p1 < $CWD/patches/Makefile.6.diff
-for CHIPSET in $(printf $CHIPSETS | tr , \ ); do
- echo "Working on $CHIPSET" ; sleep 5
- export CHIPSET=$CHIPSET
- make
+for chipset in $(printf $CHIPSETS | tr , \ ); do
+ echo "Working on $chipset" ; sleep 5
+ export CHIPSET=$chipset
+ make V=1
make install DESTDIR=$PKG
- unset CHIPSET
done
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
@@ -71,7 +72,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
+sed "s/@KERNEL@/$KERNEL/" $CWD/doinst.sh > $PKG/install/doinst.sh
for FILE in $(find $PKG/etc/rt3xxx -name "*.dat"); do
mv $FILE $FILE.new