diff options
Diffstat (limited to 'libraries/Impacket/Impacket.SlackBuild')
-rw-r--r-- | libraries/Impacket/Impacket.SlackBuild | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/libraries/Impacket/Impacket.SlackBuild b/libraries/Impacket/Impacket.SlackBuild index 9f21cf77342fd..76f29b6483633 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 |