aboutsummaryrefslogtreecommitdiff
path: root/system/mongo-tools/mongo-tools.SlackBuild
diff options
context:
space:
mode:
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 \