diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-12-02 09:46:06 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-12-03 19:19:10 +0700 |
commit | 0df5d3baa5aa7d86acade79eb0e8fa98e36c9ce4 (patch) | |
tree | 9af85ff7bdb6dd6ce097c3840a1691fe7cdad118 /system/mongodb/mongodb.SlackBuild | |
parent | 6222c777ddf9b0f1d24a073ec04974634deb9992 (diff) |
system/mongodb: Updated for version 7.0.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mongodb/mongodb.SlackBuild')
-rw-r--r-- | system/mongodb/mongodb.SlackBuild | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/system/mongodb/mongodb.SlackBuild b/system/mongodb/mongodb.SlackBuild index fdf3e89a23..d242ce9ec4 100644 --- a/system/mongodb/mongodb.SlackBuild +++ b/system/mongodb/mongodb.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for MongoDB # Copyright 2015 Miguel De Anda <miguel@thedeanda.com> +# Copyright 2023 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM="mongodb" -VERSION=${VERSION:-5.0.4} +VERSION=${VERSION:-7.0.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +41,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -93,7 +91,7 @@ cd $SRC_FLDR rm -fR src/third_party/{boost,pcre-*,snappy-*,yaml-cpp,zlib-*} # remove compass rm -fR src/mongo/installer/compass -chown -R root.root . +chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ @@ -106,12 +104,14 @@ for i in $CWD/patches/* ; do patch -p1 < $i ; done scons_opts=( --disable-warnings-as-errors --use-system-boost - --use-system-pcre + --use-system-pcre2 --use-system-snappy --use-system-yaml --use-system-zlib --use-system-zstd --use-sasl-client + --use-system-libbson + --use-system-mongo-c --ssl ) @@ -146,7 +146,7 @@ cat $CWD/files/rc.mongodb > $PKG/etc/rc.d/rc.mongodb.new mkdir -p $PKG/var/{lib,log}/mongodb chmod 750 $PKG/var/{lib,log}/mongodb -chown mongo.mongo $PKG/var/{lib,log}/mongodb +chown mongo:mongo $PKG/var/{lib,log}/mongodb mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |