aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-03-21 04:24:29 -0400
committerDavid Spencer <idlemoor@slackbuilds.org>2017-03-25 13:28:38 +0000
commit613023bf495197fd165c9d8ad4b2f3d302cdb9ad (patch)
treedc8f1acd60cec5d6ec2c8fef54841be7be6e8ab7 /network
parent908530473ee1f0899942ea70e683e5fa3175b37b (diff)
network/mod_evasive: Allow VERSION override, i486=>i586.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/mod_evasive/mod_evasive.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/network/mod_evasive/mod_evasive.SlackBuild b/network/mod_evasive/mod_evasive.SlackBuild
index 224fbc78f72ec..f04ad2afc36a0 100644
--- a/network/mod_evasive/mod_evasive.SlackBuild
+++ b/network/mod_evasive/mod_evasive.SlackBuild
@@ -9,13 +9,13 @@
# http://sam.zoy.org/wtfpl/COPYING for more details.
PRGNAM=mod_evasive
-VERSION=1.10.1
+VERSION=${VERSION:-1.10.1}
BUILD=${BUILD:-3}
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
@@ -26,8 +26,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"