summaryrefslogtreecommitdiff
path: root/system/mongodb/mongodb.SlackBuild
diff options
context:
space:
mode:
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