From 600b2a845679df382dd393974593b4d8aa927eda Mon Sep 17 00:00:00 2001 From: ziggi Date: Sun, 26 Mar 2023 07:10:22 +0200 Subject: [PATCH] added mongodb-tools --- data/mongodb-tools/Makefile | 31 +++++++++++++++++++++++++++++++ data/mongodb-tools/distinfo | 3 +++ data/mongodb-tools/pkg-descr | 14 ++++++++++++++ data/mongodb-tools/pkg-plist | 8 ++++++++ 4 files changed, 56 insertions(+) create mode 100644 data/mongodb-tools/Makefile create mode 100644 data/mongodb-tools/distinfo create mode 100644 data/mongodb-tools/pkg-descr create mode 100644 data/mongodb-tools/pkg-plist diff --git a/data/mongodb-tools/Makefile b/data/mongodb-tools/Makefile new file mode 100644 index 00000000..3834fff2 --- /dev/null +++ b/data/mongodb-tools/Makefile @@ -0,0 +1,31 @@ +PORTNAME= mongodb-tools +DISTVERSION= 100.7.0 +CATEGORIES= databases + +MAINTAINER= ronald@FreeBSD.org +COMMENT= Tools for MongoDB 4.4.x and up +WWW= https://docs.mongodb.com/database-tools/ + +ONLY_FOR_ARCHS= aarch64 amd64 armv7 i386 +ONLY_FOR_ARCHS_REASON= not yet ported to other architectures + +USES= compiler:c++14-lang go localbase +USE_GITHUB= yes +GH_ACCOUNT= mongodb +GH_PROJECT= mongo-tools + +GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} +#GO_BUILDFLAGS= -tags "${VARS}" + +GO_TARGET+=./bsondump/main/:bsondump +GO_TARGET+=./bsondump/main:bsondump +GO_TARGET+=./mongodump/main:mongodump +GO_TARGET+=./mongoexport/main:mongoexport +GO_TARGET+=./mongofiles/main:mongofiles +GO_TARGET+=./mongoimport/main:mongoimport +GO_TARGET+=./mongorestore/main:mongorestore +GO_TARGET+=./mongostat/main:mongostat +GO_TARGET+=./mongotop/main:mongotop + + +.include diff --git a/data/mongodb-tools/distinfo b/data/mongodb-tools/distinfo new file mode 100644 index 00000000..f334e0d2 --- /dev/null +++ b/data/mongodb-tools/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1678288230 +SHA256 (mongodb-mongo-tools-100.7.0_GH0.tar.gz) = 09afff36c690fcae36ce4290ef6fd6ae5060e5071b9904da027cdb0a2c292ebe +SIZE (mongodb-mongo-tools-100.7.0_GH0.tar.gz) = 4414796 diff --git a/data/mongodb-tools/pkg-descr b/data/mongodb-tools/pkg-descr new file mode 100644 index 00000000..88051a67 --- /dev/null +++ b/data/mongodb-tools/pkg-descr @@ -0,0 +1,14 @@ +Useful utilities for managing a MongoDB instance written in Go. + +- bsondump - display BSON files in a human-readable format +- mongoimport - Convert data from JSON, TSV or CSV and insert them + into a collection +- mongoexport - Write an existing collection to CSV or JSON format +- mongodump/mongorestore - Dump MongoDB backups to disk in .BSON + format, or restore them to a live database +- mongostat - Monitor live MongoDB servers, replica sets, or sharded + clusters +- mongofiles - Read, write, delete, or update files in GridFS +- mongotop - Monitor read/write activity on a mongo server + +See also: https://github.com/mongodb/mongo-tools diff --git a/data/mongodb-tools/pkg-plist b/data/mongodb-tools/pkg-plist new file mode 100644 index 00000000..af709b7b --- /dev/null +++ b/data/mongodb-tools/pkg-plist @@ -0,0 +1,8 @@ +bin/bsondump +bin/mongodump +bin/mongoexport +bin/mongofiles +bin/mongoimport +bin/mongorestore +bin/mongostat +bin/mongotop