diff options
author | Brenton Earl <brent@exitstatusone.com> | 2018-04-27 09:34:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-04-27 09:34:34 +0700 |
commit | f85962deae774bc119b5c42348ec5e904c6b63f0 (patch) | |
tree | 2e97eb69422da76845737b3ff3fa3136c66ecc02 /network/hostapd/hostapd.SlackBuild | |
parent | fd65e477468079ed9dc379e4154095e6bc18dd02 (diff) | |
download | slackbuilds-f85962deae774bc119b5c42348ec5e904c6b63f0.tar.gz |
network/hostapd: Patched against KRACK + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/hostapd/hostapd.SlackBuild')
-rw-r--r-- | network/hostapd/hostapd.SlackBuild | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/network/hostapd/hostapd.SlackBuild b/network/hostapd/hostapd.SlackBuild index 276d29a6b5..2ed9662796 100644 --- a/network/hostapd/hostapd.SlackBuild +++ b/network/hostapd/hostapd.SlackBuild @@ -4,6 +4,7 @@ # Copyright 2008-2013 Murat D. Kadirov <banderols@gmail.com> # Copyright 2014-2016 LukenShiro, Italy +# Copyright 2018 Brenton Earl <brent@exitstatusone.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,12 +28,12 @@ PRGNAM=hostapd VERSION=${VERSION:-2.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -43,8 +44,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -74,6 +75,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +(cd ../src/ +for i in $CWD/patches/*.patch; do + patch -p2 < "$i" +done) + cat $CWD/hostapd.defconfig > .config CFLAGS+="$SLKCFLAGS" make |