summaryrefslogtreecommitdiffstats
path: root/network/hostapd/hostapd.SlackBuild
diff options
context:
space:
mode:
author LukenShiro <lukenshiro@ngi.it>2014-06-20 21:41:55 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2014-06-20 21:41:55 +0700
commite9a524b750ac6f7652df8d4e69e48ced8a14b0fa (patch)
tree92b61418ef1eb4119a2d11b3f08a56e1867e476a /network/hostapd/hostapd.SlackBuild
parent5920a63edfa033b4a3ad1808a5c3222ff4f527dc (diff)
downloadslackbuilds-e9a524b750ac6f7652df8d4e69e48ced8a14b0fa.tar.gz
slackbuilds-e9a524b750ac6f7652df8d4e69e48ced8a14b0fa.tar.xz
network/hostapd: Updated for version 2.2 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/hostapd/hostapd.SlackBuild')
-rw-r--r--network/hostapd/hostapd.SlackBuild26
1 files changed, 14 insertions, 12 deletions
diff --git a/network/hostapd/hostapd.SlackBuild b/network/hostapd/hostapd.SlackBuild
index 54029760fd..3b57431f40 100644
--- a/network/hostapd/hostapd.SlackBuild
+++ b/network/hostapd/hostapd.SlackBuild
@@ -2,7 +2,9 @@
# Slackware build script for hostapd
-# Written by Murat D. Kadirov <banderols@gmail.com>
+# Copyright 2008-2013 Murat D. Kadirov <banderols@gmail.com>
+# Copyright 2014 LukenShiro, Italy
+# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@@ -22,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=hostapd
-VERSION=${VERSION:-0.6.10}
+VERSION=${VERSION:-2.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -53,6 +55,8 @@ else
LIBDIRSUFFIX=""
fi
+DOCFILES="../COPYING ../CONTRIBUTIONS ChangeLog README* *.txt logwatch"
+
set -e
rm -rf $PKG
@@ -63,15 +67,13 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION/$PRGNAM
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -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 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-cat $CWD/hostapd.defconfig > .config
-# Fix bug with mac80211-based drivers in hostapd 0.6.10
-# http://lists.shmoo.com/pipermail/hostap/2010-February/021118.html
-patch -p2 < $CWD/DTIM.patch
+patch -p0 < $CWD/hostapd-defconfig.diff
+cat defconfig > .config
CFLAGS+="$SLKCFLAGS" make
@@ -96,11 +98,11 @@ gzip -9c hostapd.8 > $PKG/usr/man/man8/hostapd.8.gz
gzip -9c hostapd_cli.1 > $PKG/usr/man/man1/hostapd_cli.1.gz
cp hostapd hostapd_cli $PKG/usr/sbin/
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -ar ../COPYING ChangeLog README* *.txt logwatch $PKG/usr/doc/$PRGNAM-$VERSION
+cp -ar $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install