aboutsummaryrefslogtreecommitdiff
path: root/system/mongo-tools/mongo-tools.SlackBuild
diff options
context:
space:
mode:
authorMiguel De Anda <miguel@thedeanda.com>2016-09-27 23:45:07 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-01 07:17:08 +0700
commit72a4788d429bf8d6ae5fade9278ade5e445a8c2c (patch)
treeccb23599af02d0dde999623d7477ed943b4f88ed /system/mongo-tools/mongo-tools.SlackBuild
parent4a1098c4cd90778e0d54f92c233b05c024ce65b8 (diff)
system/mongo-tools: Updated for version 3.2.9.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mongo-tools/mongo-tools.SlackBuild')
-rw-r--r--system/mongo-tools/mongo-tools.SlackBuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/mongo-tools/mongo-tools.SlackBuild b/system/mongo-tools/mongo-tools.SlackBuild
index 6af19b1208dd5..2dd9419d74eb5 100644
--- a/system/mongo-tools/mongo-tools.SlackBuild
+++ b/system/mongo-tools/mongo-tools.SlackBuild
@@ -23,14 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mongo-tools
-VERSION=${VERSION:-3.2.0}
+VERSION=${VERSION:-3.2.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCHIVE=r${VERSION}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -41,8 +41,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"
@@ -78,8 +78,8 @@ mkdir -p $TARGET_PATH
# next block taken from mongo-tools build script
for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do
echo "Building ${i}..."
- # Build the tool, using -ldflags to link in the current gitspec
- go build -o "$TARGET_PATH/$i" -tags "ssl sasl" "$i/main/$i.go"
+ # if you have issues, remove/add -tags "ssl sasl"
+ go build -o "$TARGET_PATH/$i" "$i/main/$i.go"
done
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \