diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-12-04 18:51:32 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-12-09 07:50:07 +0700 |
commit | f51b4918f3e35fd38634ce1ae1f7adc089accf46 (patch) | |
tree | 9a368d52ca923002d432d9f007aa6f9131ba9d3f /development/mongodb-shell | |
parent | c12605cd97317302bbddcf34c9a1cf6a2f218c4d (diff) |
development/mongodb-shell: Added (MongoDB Shell).
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/mongodb-shell')
-rw-r--r-- | development/mongodb-shell/README | 6 | ||||
-rw-r--r-- | development/mongodb-shell/mongodb-shell.SlackBuild | 75 | ||||
-rw-r--r-- | development/mongodb-shell/mongodb-shell.info | 10 | ||||
-rw-r--r-- | development/mongodb-shell/slack-desc | 19 |
4 files changed, 110 insertions, 0 deletions
diff --git a/development/mongodb-shell/README b/development/mongodb-shell/README new file mode 100644 index 000000000000..9d2cf326e3be --- /dev/null +++ b/development/mongodb-shell/README @@ -0,0 +1,6 @@ +MongoDB Shell is the quickest way to connect and work with MongoDB. + +Easily query data, configure settings, and execute other actions with +this modern, extensible command-line interface - replete with syntax +highlighting, intelligent autocomplete, contextual help, and +error messages. diff --git a/development/mongodb-shell/mongodb-shell.SlackBuild b/development/mongodb-shell/mongodb-shell.SlackBuild new file mode 100644 index 000000000000..dcbb65efeb06 --- /dev/null +++ b/development/mongodb-shell/mongodb-shell.SlackBuild @@ -0,0 +1,75 @@ +#!/bin/bash + +# Slackware build script for mongodb-shell + +# Copyright 2023 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=mongodb-shell +SRCNAM=mongosh +VERSION=${VERSION:-2.1.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +ARCH=x86_64 + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION-linux-x64 +tar xvf $CWD/$SRCNAM-$VERSION-linux-x64.tgz +cd $SRCNAM-$VERSION-linux-x64 +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 \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir -p $PKG/usr/bin $PKG/usr/man/man1 $PKG/usr/lib64 +cp bin/mongosh $PKG/usr/bin +cp mongosh.1.gz $PKG/usr/man/man1/ +cp bin/mongosh_crypt_v1.so $PKG/usr/lib64/ + +strip --strip-unneeded $PKG/usr/bin/mongosh $PKG/usr/lib64/mongosh_crypt_v1.so + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE* README THIRD_PARTY_NOTICES $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/mongodb-shell/mongodb-shell.info b/development/mongodb-shell/mongodb-shell.info new file mode 100644 index 000000000000..16e3123d754f --- /dev/null +++ b/development/mongodb-shell/mongodb-shell.info @@ -0,0 +1,10 @@ +PRGNAM="mongodb-shell" +VERSION="2.1.0" +HOMEPAGE="https://www.mongodb.com/try/download/shell" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://downloads.mongodb.com/compass/mongosh-2.1.0-linux-x64.tgz" +MD5SUM_x86_64="1b875a0405baa9d598572a46e32a6d42" +REQUIRES="" +MAINTAINER="Willy Sudiarto Raharjo" +EMAIL="willysr@slackbuilds.org" diff --git a/development/mongodb-shell/slack-desc b/development/mongodb-shell/slack-desc new file mode 100644 index 000000000000..bfe4b83bef70 --- /dev/null +++ b/development/mongodb-shell/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +mongodb-shell: mongodb-shell (MongoDB Shell) +mongodb-shell: +mongodb-shell: MongoDB Shell is the quickest way to connect and work with MongoDB. +mongodb-shell: Easily query data, configure settings, and execute other actions with +mongodb-shell: this modern, extensible CLI - replete with syntax highlighting, +mongodb-shell: intelligent autocomplete, contextual help, and error messages. +mongodb-shell: +mongodb-shell: +mongodb-shell: +mongodb-shell: +mongodb-shell: |