Date: Sat, 23 Jan 2016 14:36:26 +0000 (UTC) From: Dmitry Sivachenko <demon@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r406994 - in head/databases: . mongodb32-tools mongodb32-tools/files Message-ID: <201601231436.u0NEaQYF036936@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: demon Date: Sat Jan 23 14:36:26 2016 New Revision: 406994 URL: https://svnweb.freebsd.org/changeset/ports/406994 Log: New port: mongodb32-tools. Extra tools factored out from mongodb port in version 3. PR: 205510 Submitted by: Brendan Molloy <brendan+freebsd@bbqsrc.net> Added: head/databases/mongodb32-tools/ head/databases/mongodb32-tools/Makefile (contents, props changed) head/databases/mongodb32-tools/distinfo (contents, props changed) head/databases/mongodb32-tools/files/ head/databases/mongodb32-tools/files/patch-vendor_src_github.com_spacemonkeygo_openssl_build.go (contents, props changed) head/databases/mongodb32-tools/files/patch-vendor_src_github.com_spacemonkeygo_openssl_init__posix.go (contents, props changed) head/databases/mongodb32-tools/pkg-descr (contents, props changed) head/databases/mongodb32-tools/pkg-plist (contents, props changed) Modified: head/databases/Makefile Modified: head/databases/Makefile ============================================================================== --- head/databases/Makefile Sat Jan 23 14:31:10 2016 (r406993) +++ head/databases/Makefile Sat Jan 23 14:36:26 2016 (r406994) @@ -191,6 +191,7 @@ SUBDIR += monetdb SUBDIR += mongodb SUBDIR += mongodb32 + SUBDIR += mongodb32-tools SUBDIR += mrtg-mysql-load SUBDIR += mtools-mongodb SUBDIR += mtop Added: head/databases/mongodb32-tools/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mongodb32-tools/Makefile Sat Jan 23 14:36:26 2016 (r406994) @@ -0,0 +1,65 @@ +# Created by: Brendan Molloy <brendan+freebsd@bbqsrc.net> +# $FreeBSD$ + +PORTNAME= mongodb32-tools +PORTVERSION= 3.2.1 +DISTVERSIONPREFIX= r +CATEGORIES= databases net + +MAINTAINER= brendan+freebsd@bbqsrc.net +COMMENT= Tools for MongoDB + +LICENSE= APACHE20 + +BUILD_DEPENDS= go>0:${PORTSDIR}/lang/go + +USE_GITHUB= yes +GH_ACCOUNT= mongodb +GH_PROJECT= mongo-tools + +OPTIONS_DEFINE= SSL SASL +OPTIONS_DEFAULT= SSL + +SASL_USE= my_tags=sasl +SASL_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2 + +SSL_USE= openssl=yes my_tags=ssl + +ONLY_FOR_ARCHS= i386 amd64 +ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than i386 and amd64" + +STRIP= # Stripping can break go binaries + +# 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="${LDFLAGS}" + +USES= localbase +MY_TAGS= -tags "${USE_MY_TAGS}" + +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 mongooplog + ${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 mongooplog + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${x} ${STAGEDIR}${PREFIX}/bin/ +.endfor + +post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} +.for x in LICENSE.md README.md THIRD-PARTY-NOTICES + ${INSTALL_MAN} ${WRKSRC}/${x} ${STAGEDIR}${DOCSDIR} +.endfor + +.include <bsd.port.mk> Added: head/databases/mongodb32-tools/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mongodb32-tools/distinfo Sat Jan 23 14:36:26 2016 (r406994) @@ -0,0 +1,2 @@ +SHA256 (mongodb-mongo-tools-r3.2.1_GH0.tar.gz) = e2a0527b8987ae954fc9ca071987b4c58ff53aa2bc0a4d8b03337f4d8aff1d89 +SIZE (mongodb-mongo-tools-r3.2.1_GH0.tar.gz) = 2226762 Added: head/databases/mongodb32-tools/files/patch-vendor_src_github.com_spacemonkeygo_openssl_build.go ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mongodb32-tools/files/patch-vendor_src_github.com_spacemonkeygo_openssl_build.go Sat Jan 23 14:36:26 2016 (r406994) @@ -0,0 +1,8 @@ +--- vendor/src/github.com/spacemonkeygo/openssl/build.go.orig 2016-01-03 17:52:18 UTC ++++ vendor/src/github.com/spacemonkeygo/openssl/build.go +@@ -19,4 +19,5 @@ package openssl + // #cgo linux pkg-config: openssl + // #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN + // #cgo darwin LDFLAGS: -lssl -lcrypto ++// #cgo freebsd LDFLAGS: -lssl -lcrypto + import "C" Added: head/databases/mongodb32-tools/files/patch-vendor_src_github.com_spacemonkeygo_openssl_init__posix.go ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mongodb32-tools/files/patch-vendor_src_github.com_spacemonkeygo_openssl_init__posix.go Sat Jan 23 14:36:26 2016 (r406994) @@ -0,0 +1,11 @@ +--- vendor/src/github.com/spacemonkeygo/openssl/init_posix.go.orig 2016-01-03 17:52:58 UTC ++++ vendor/src/github.com/spacemonkeygo/openssl/init_posix.go +@@ -12,7 +12,7 @@ + // See the License for the specific language governing permissions and + // limitations under the License. + +-// +build linux darwin cgo ++// +build linux darwin freebsd cgo + // +build !windows + + package openssl Added: head/databases/mongodb32-tools/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mongodb32-tools/pkg-descr Sat Jan 23 14:36:26 2016 (r406994) @@ -0,0 +1,6 @@ +Since MongoDB 3.2, the tools bsondump, mongoimport, mongoexport, mongodump, +mongorestore, mongostat, mongofiles, mongooplog and mongotop have been placed +in a separate package and rewritten in Go. These are useful utilities for +managing a MongoDB instance. + +WWW: https://github.com/mongodb/mongo-tools Added: head/databases/mongodb32-tools/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/mongodb32-tools/pkg-plist Sat Jan 23 14:36:26 2016 (r406994) @@ -0,0 +1,12 @@ +bin/bsondump +bin/mongodump +bin/mongoexport +bin/mongofiles +bin/mongoimport +bin/mongooplog +bin/mongorestore +bin/mongostat +bin/mongotop +%%PORTDOCS%%%%DOCSDIR%%/LICENSE.md +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTDOCS%%%%DOCSDIR%%/THIRD-PARTY-NOTICES
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601231436.u0NEaQYF036936>