aboutsummaryrefslogtreecommitdiff
path: root/databases/mongodb42-tools/Makefile
blob: b46911dc8512d1910178c4824b0c99875a397488 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
PORTNAME=	mongodb42-tools
DISTVERSIONPREFIX=	r
DISTVERSION=	4.2.23
PORTREVISION=	1
CATEGORIES=	databases

MAINTAINER=	ronald@FreeBSD.org
COMMENT=	Tools for MongoDB 4.2.x
WWW=		https://github.com/mongodb/mongo-tools

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE.md

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_BUILDFLAGS=	-tags "${USE_MY_TAGS}"
GO_PKGNAME=	github.com/${GH_ACCOUNT}/${GH_PROJECT}

CONFLICTS_INSTALL=	mongodb[0-9][0-9]-tools mongodb-tools

OPTIONS_DEFINE=		DOCS
OPTIONS_DEFAULT=	MONGODUMP MONGOEXPORT MONGOFILES MONGOIMPORT \
			MONGORESTORE SASL SSL
OPTIONS_MULTI=		SECURITY TOOLS
OPTIONS_MULTI_TOOLS=	BSONDUMP MONGODUMP MONGOEXPORT MONGOFILES MONGOIMPORT \
			MONGOREPLAY MONGORESTORE MONGOSTAT MONGOTOP
OPTIONS_MULTI_SECURITY=	SASL SSL
OPTIONS_SUB=		yes

BSONDUMP_DESC=		BSON files into human-readable formats
MONGOSTAT_DESC=		Status of a running mongod or mongos instance
MONGOFILES_DESC=	Interface to GridFS in a MongoDB instance
MONGOEXPORT_DESC=	JSON or CSV export of MongoDB instance data
MONGOIMPORT_DESC=	Importing JSON, CSV, or TSV into a MongoDB instance
MONGORESTORE_DESC=	BSON data to a MongoDB instance
MONGODUMP_DESC=		BSON data from the contents of a MongoDB instance
MONGOTOP_DESC=		Track the amount of data I/O time
MONGOREPLAY_DESC=	Traffic capture and replay tool

BSONDUMP_VARS=		go_target+=./bsondump/main:bsondump
MONGOSTAT_VARS=		go_target+=./mongostat/main:mongostat
MONGOFILES_VARS=	go_target+=./mongofiles/main:mongofiles
MONGOEXPORT_VARS=	go_target+=./mongoexport/main:mongoexport
MONGOIMPORT_VARS=	go_target+=./mongoimport/main:mongoimport
MONGORESTORE_VARS=	go_target+=./mongorestore/main:mongorestore
MONGODUMP_VARS=		go_target+=./mongodump/main:mongodump
MONGOTOP_VARS=		go_target+=./mongotop/main:mongotop
MONGOREPLAY_VARS=	go_target+=./mongoreplay/main:mongoreplay
SASL_LIB_DEPENDS=	libsasl2.so:security/cyrus-sasl2
SASL_USE=		my_tags=sasl
SSL_USES=		ssl
SSL_USE=		my_tags=ssl

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in README.md CONTRIBUTING.md THIRD-PARTY-NOTICES
	${INSTALL_MAN} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>