summaryrefslogtreecommitdiff
path: root/system/mongodb/mongodb.SlackBuild
diff options
context:
space:
mode:
authorMiguel De Anda <miguel@thedeanda.com>2015-05-02 14:42:03 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-02 14:42:03 +0700
commitbb1c6c0e89f77b535f157b685e57ff263ca89ed5 (patch)
treeb4e2cd1a372a5abed0f0d38b97ef76c5d5e9a2d3 /system/mongodb/mongodb.SlackBuild
parenta9f41d414bb6b6f9acf6ffd5f2ffda0773fa3288 (diff)
downloadslackbuilds-bb1c6c0e89f77b535f157b685e57ff263ca89ed5.tar.gz
system/mongodb: Updated for version 3.0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mongodb/mongodb.SlackBuild')
-rw-r--r--system/mongodb/mongodb.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/system/mongodb/mongodb.SlackBuild b/system/mongodb/mongodb.SlackBuild
index a7591c29af..82092a89c2 100644
--- a/system/mongodb/mongodb.SlackBuild
+++ b/system/mongodb/mongodb.SlackBuild
@@ -4,7 +4,7 @@
# Home Page http://www.mongodb.org
PRGNAM="mongodb"
-VERSION=${VERSION:-2.6.7}
+VERSION=${VERSION:-3.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -24,6 +24,9 @@ OUTPUT=${OUTPUT:-/tmp}
MONGO_USER=${MONGO_USER:-285}
MONGO_GROUP=${MONGO_GROUP:-285}
+SRC_FILE=$PRGNAM-src-r$VERSION.tar.gz
+SRC_FLDR=$PRGNAM-src-r$VERSION
+
set -e
# Bail if user or group isn't valid on your system
@@ -50,11 +53,11 @@ EOF
exit
fi
-rm -fr $TMP/$PRGNAM-$VERSION $PKG
+rm -fr $TMP/$SRC_FLDR $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/$PRGNAM-linux-$ARCH-$VERSION.tgz
-cd $PRGNAM-linux-$ARCH-$VERSION
+tar xvf $CWD/$SRC_FILE
+cd $SRC_FLDR
chown -R root.root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -62,10 +65,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+scons --ssl --prefix=${PKG}/usr core install
+
mkdir -p ${PKG}/usr/doc/${PRGNAM}-${VERSION}
-cp GNU-AGPL-3.0 README THIRD-PARTY-NOTICES ${PKG}/usr/doc/${PRGNAM}-${VERSION}
-mkdir -p ${PKG}/usr/bin
-cp bin/* ${PKG}/usr/bin
+cp distsrc/* ${PKG}/usr/doc/${PRGNAM}-${VERSION}
mkdir -p $PKG/etc/rc.d
cat $CWD/rc.mongodb > $PKG/etc/rc.d/rc.mongodb.new