mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
e878d182e7
Update mongo tools to version 4.2 which is required to manage mongodb version 4.2. PR: 247021 Submitted by: Ronald Klop <ronald-lists@klop.ws> Reviewed by: mfechner Relnotes: https://docs.mongodb.com/manual/release-notes/4.2/
75 lines
2.2 KiB
Makefile
75 lines
2.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= mongodb36-tools
|
|
PORTVERSION= 3.6.3
|
|
DISTVERSIONPREFIX= r
|
|
CATEGORIES= databases net
|
|
|
|
MAINTAINER= numisemis@yahoo.com
|
|
COMMENT= Tools for MongoDB
|
|
|
|
LICENSE= APACHE20
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than i386 and amd64"
|
|
BROKEN_SSL= openssl libressl libressl-devel
|
|
BROKEN_SSL_REASON_openssl= variable has incomplete type 'BIO_METHOD' (aka 'struct bio_method_st')
|
|
BROKEN_SSL_REASON_libressl= could not determine kind of name for C.EVP_sha
|
|
BROKEN_SSL_REASON_libressl-devel= ${BROKEN_SSL_REASON_libressl}
|
|
|
|
CONFLICTS_INSTALL= mongodb mongodb4[02] mongodb4[02]-tools
|
|
|
|
USES= go localbase
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= mongodb
|
|
GH_PROJECT= mongo-tools
|
|
|
|
OPTIONS_DEFINE= DOCS SSL SASL
|
|
OPTIONS_DEFAULT= SSL SASL
|
|
|
|
SASL_USE= my_tags=sasl
|
|
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
|
|
|
|
SSL_USES= ssl
|
|
SSL_USE= my_tags=ssl
|
|
|
|
# Go is not our friend. Without below, ignores user-supplied flags.
|
|
MAKE_CMD= ${LOCALBASE}/bin/go build
|
|
MAKE_ENV= GOPATH="${WRKSRC}/.gopath:${WRKSRC}/vendor" \
|
|
CGO_CFLAGS="${CFLAGS}" CGO_CPPFLAGS="${CPPFLAGS}" \
|
|
CGO_CXXFLAGS="${CXXFLAGS}" CGO_LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
|
|
|
|
MY_TAGS= -tags "${USE_MY_TAGS}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${SSL_DEFAULT} == base
|
|
BROKEN_FreeBSD_12= variable has incomplete type 'BIO_METHOD' (aka 'struct bio_method_st')
|
|
BROKEN_FreeBSD_13= variable has incomplete type 'BIO_METHOD' (aka 'struct bio_method_st')
|
|
.endif
|
|
|
|
post-patch:
|
|
@cd ${WRKSRC} ; ${MKDIR} ${WRKSRC}/.gopath/src/github.com/${GH_ACCOUNT} ; \
|
|
${LN} -sf ${WRKSRC} ${WRKSRC}/.gopath/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
|
|
|
|
do-build:
|
|
.for x in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
|
|
-o ${WRKSRC}/bin/${x} ${MY_TAGS}\
|
|
-ldflags "-X github.com/${GH_ACCOUNT}/${GH_PROJECT}/common/options.Gitspec=${GH_TAGNAME}"\
|
|
${WRKSRC}/${x}/main/${x}.go
|
|
.endfor
|
|
|
|
do-install:
|
|
.for x in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/${x} ${STAGEDIR}${PREFIX}/bin/
|
|
.endfor
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for x in LICENSE.md README.md THIRD-PARTY-NOTICES
|
|
${INSTALL_MAN} ${WRKSRC}/${x} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|