From f85962deae774bc119b5c42348ec5e904c6b63f0 Mon Sep 17 00:00:00 2001 From: Brenton Earl Date: Fri, 27 Apr 2018 09:34:34 +0700 Subject: network/hostapd: Patched against KRACK + new maintainer. Signed-off-by: Willy Sudiarto Raharjo --- network/hostapd/hostapd.SlackBuild | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'network/hostapd/hostapd.SlackBuild') 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 # Copyright 2014-2016 LukenShiro, Italy +# Copyright 2018 Brenton Earl # 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 -- cgit v1.2.3