added mongodb-tools

This commit is contained in:
ziggi
2023-03-26 07:10:22 +02:00
parent bc0ee7bfe2
commit 600b2a8456
4 changed files with 56 additions and 0 deletions

View File

@@ -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 <bsd.port.mk>

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,8 @@
bin/bsondump
bin/mongodump
bin/mongoexport
bin/mongofiles
bin/mongoimport
bin/mongorestore
bin/mongostat
bin/mongotop