mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
system/mongo-tools: Updated for version 3.2.9.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
4a1098c4cd
commit
72a4788d42
2 changed files with 10 additions and 10 deletions
|
@ -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 \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="mongo-tools"
|
||||
VERSION="3.2.0"
|
||||
HOMEPAGE="http://www.mongodb.org/"
|
||||
DOWNLOAD="https://github.com/mongodb/mongo-tools/archive/r3.2.0.tar.gz"
|
||||
MD5SUM="eaa1f16822c30c77de68a72ec9c02752"
|
||||
VERSION="3.2.9"
|
||||
HOMEPAGE="https://github.com/mongodb/mongo-tools"
|
||||
DOWNLOAD="https://github.com/mongodb/mongo-tools/archive/r3.2.9.tar.gz"
|
||||
MD5SUM="6ca1c2aec2022226a0c303b5f6f0d799"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="google-go-lang"
|
||||
|
|
Loading…
Reference in a new issue