mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 15:33:55 +02:00
15fed9be12
OK sthen@
29 lines
664 B
Makefile
29 lines
664 B
Makefile
COMMENT= tools for the MongoDB database
|
|
|
|
GH_ACCOUNT= mongodb
|
|
GH_PROJECT= mongo-tools
|
|
GH_TAGNAME= 100.12.2
|
|
|
|
CATEGORIES= databases
|
|
|
|
HOMEPAGE= https://www.mongodb.com/docs/database-tools/
|
|
|
|
# Apache v2
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB= c pthread
|
|
|
|
MODULES= lang/go
|
|
|
|
do-build:
|
|
.for i in bsondump mongodump mongoexport mongofiles mongoimport mongorestore mongostat mongotop
|
|
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>
|