From owner-svn-ports-head@freebsd.org Sat Jan 23 14:36:28 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 07925A8E900; Sat, 23 Jan 2016 14:36:28 +0000 (UTC) (envelope-from demon@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D656D1432; Sat, 23 Jan 2016 14:36:27 +0000 (UTC) (envelope-from demon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0NEaQaU036943; Sat, 23 Jan 2016 14:36:26 GMT (envelope-from demon@FreeBSD.org) Received: (from demon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0NEaQYF036936; Sat, 23 Jan 2016 14:36:26 GMT (envelope-from demon@FreeBSD.org) Message-Id: <201601231436.u0NEaQYF036936@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: demon set sender to demon@FreeBSD.org using -f From: Dmitry Sivachenko Date: Sat, 23 Jan 2016 14:36:26 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2016 14:36:28 -0000 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 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 +# $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 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