summaryrefslogtreecommitdiff
path: root/libraries/Impacket/Impacket.SlackBuild
diff options
context:
space:
mode:
authorBrenton Earl <brent@exitstatusone.com>2016-12-15 06:59:40 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-12-15 22:32:06 +0700
commit1723090bf5df91cc4a91f454365872c1bf017908 (patch)
treebf4a428dfa20689f155212c2901df8d569dd3570 /libraries/Impacket/Impacket.SlackBuild
parent083f79cf4a2fea96b049abb24b3723258e729398 (diff)
downloadslackbuilds-1723090bf5df91cc4a91f454365872c1bf017908.tar.gz
libraries/Impacket: Updated for version 0.9.15.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/Impacket/Impacket.SlackBuild')
-rw-r--r--libraries/Impacket/Impacket.SlackBuild26
1 files changed, 19 insertions, 7 deletions
diff --git a/libraries/Impacket/Impacket.SlackBuild b/libraries/Impacket/Impacket.SlackBuild
index 9f21cf7734..76f29b6483 100644
--- a/libraries/Impacket/Impacket.SlackBuild
+++ b/libraries/Impacket/Impacket.SlackBuild
@@ -1,11 +1,9 @@
#!/bin/sh
# Slackware build script for Impacket.
-#
-# Copyright 2015 Brenton Earl <brent@exitstatusone.com>
-# All rights reserved.
-#
+
# Copyright 2009-2010 Marco Bonetti <sid77@slackware.it>
+# Copyright 2015-2016 Brenton Earl <brent@exitstatusone.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,13 +25,13 @@
PRGNAM=Impacket
SRCNAM=impacket
-VERSION=${VERSION:-0.9.13}
+VERSION=${VERSION:-0.9.15}
BUILD=${BUILD:-1}
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
@@ -44,7 +42,21 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="LICENSE PKG-INFO README"
+DOCS="ChangeLog LICENSE README.md"
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
set -e