mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-30 05:39:56 +02:00
network/iw: Added to 12.1 repository
This commit is contained in:
parent
98c52dfb5c
commit
796aabd656
4 changed files with 99 additions and 0 deletions
7
network/iw/README
Normal file
7
network/iw/README
Normal file
|
@ -0,0 +1,7 @@
|
|||
iw is a new nl80211 based CLI configuration utility for wireless devices.
|
||||
Currently you can only use this utility to configure devices which use a
|
||||
mac80211 driver, as these are the new drivers being written - most new
|
||||
wireless devices being sold are now SoftMAC. List of mac80211 drivers:
|
||||
http://wireless.kernel.org/en/developers/Documentation/mac80211#mac80211drivers
|
||||
|
||||
iw requires libnl, which is also available at SlackBuilds.org.
|
65
network/iw/iw.SlackBuild
Normal file
65
network/iw/iw.SlackBuild
Normal file
|
@ -0,0 +1,65 @@
|
|||
#!/bin/sh
|
||||
# Slackware build script for iw
|
||||
# Written by nullboy (antiwire@gmail.com)
|
||||
# Some portions, methods and/or ideas obtained from:
|
||||
# http://slackbuilds.org/template.SlackBuild
|
||||
|
||||
# Modified by Robby Workman <rworkman@slackbuilds.org>
|
||||
|
||||
PRGNAM=iw
|
||||
VERSION=${VERSION:-0.9.6}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
make CFLAGS="$SLKCFLAGS"
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# I've sent a patch upstream to make this unnecessary --rworkman
|
||||
# http://marc.info/?l=linux-wireless&m=122707106209548&w=2
|
||||
mv $PKG/usr/bin $PKG/usr/sbin
|
||||
mv $PKG/usr/share/man $PKG/usr
|
||||
rmdir $PKG/usr/share
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
8
network/iw/iw.info
Normal file
8
network/iw/iw.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="iw"
|
||||
VERSION="0.9.6"
|
||||
HOMEPAGE="http://wireless.kernel.org/en/users/Documentation/iw"
|
||||
DOWNLOAD="http://wireless.kernel.org/download/iw/iw-0.9.6.tar.bz2"
|
||||
MD5SUM="d3cadc8f3388bedb26653c28075c711e"
|
||||
MAINTAINER="nullboy"
|
||||
EMAIL="antiwire@gmail.com"
|
||||
APPROVED="rworkman"
|
19
network/iw/slack-desc
Normal file
19
network/iw/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler----------------------------------------------------------|
|
||||
iw: iw (configuration utility for wireless devices)
|
||||
iw:
|
||||
iw: Currently you can only use this utility to configure devices which use
|
||||
iw: a mac80211 driver, as these are the new drivers being written only
|
||||
iw: because most new wireless devices being sold are now SoftMAC.
|
||||
iw:
|
||||
iw: Homepage: http://wireless.kernel.org/en/users/Documentation/iw
|
||||
iw:
|
||||
iw:
|
||||
iw:
|
||||
iw:
|
Loading…
Reference in a new issue