import ports/databases/mongo-tools, ok landry@

Tools for use with MongoDB:

- 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
- mongoreplay: Capture, observe, and replay traffic for MongoDB
This commit is contained in:
sthen 2022-06-02 11:59:40 +00:00
parent 7bac54f790
commit f29e20aa40
4 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,29 @@
COMMENT= tools for the MongoDB database
GH_ACCOUNT= mongodb
GH_PROJECT= mongo-tools
GH_TAGNAME= r4.3.2
PKGNAME= mongo-tools-${GH_TAGNAME:S/r//}
CATEGORIES= databases
HOMEPAGE= https://www.mongodb.com/docs/database-tools/
# Apache v2
PERMIT_PACKAGE= Yes
WANTLIB= c pcap pthread
MODULES= lang/go
do-build:
.for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay
cd ${WRKSRC}; \
GOROOT=/usr/local/go GOPATH=${WRKDIR}/go GO111MODULE=off HOME=${WRKDIR} \
go build -v -p ${MAKE_JOBS} -o "bin/$i" $(buildflags) -ldflags "-X main.VersionStr=${GH_TAGNAME}" $i/main/$i.go
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin/
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (mongo-tools-r4.3.2.tar.gz) = Ldcnh7nY0cOTRkrLHzIIBYo2vFAbGgmcgrReLIF6N/k=
SIZE (mongo-tools-r4.3.2.tar.gz) = 14436181

View File

@ -0,0 +1,12 @@
Tools for use with MongoDB:
- 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
- mongoreplay: Capture, observe, and replay traffic for MongoDB

View File

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