Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2019 02:55:05 +0300
From:      Andrew Shevchuk <dev.ashevchuk@gmail.com>
To:        Kurt Jaeger <pi@freebsd.org>
Cc:        ports@freebsd.org
Subject:   [NEW PORT] databases/mongodb40-tools: Tools for MongoDB
Message-ID:  <CAJCvQDrqi7eW2Vo9zFipw6qeWtTNk38U9JYc4DEhpb1xd4Pd2g@mail.gmail.com>
In-Reply-To: <20190413191248.GN72200@home.opsec.eu>
References:  <CAJCvQDoDo=zKOi93UdCSDvpyewyW_ng9abnMEMbXf51=NTM==Q@mail.gmail.com> <20190413191248.GN72200@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
New port proposal: Tools for MongoDB 4.x

PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237352
PATCH: https://raw.githubusercontent.com/ashevchuk/mongodb40-tools-freebsd-=
port/master/mongodb40-tools.patch
Actually, the patch itself (feel free to make the necessary
corrections, if the Makefile needs changes):
------------------------------[cut]--------------------------------
Index: databases/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- databases/Makefile (revision 499215)
+++ databases/Makefile (working copy)
@@ -201,6 +201,7 @@
     SUBDIR +=3D mongodb36
     SUBDIR +=3D mongodb36-tools
     SUBDIR +=3D mongodb40
+    SUBDIR +=3D mongodb40-tools
     SUBDIR +=3D mroonga
     SUBDIR +=3D mrtg-mysql-load
     SUBDIR +=3D mtools-mongodb
Index: databases/mongodb40-tools/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- databases/mongodb40-tools/Makefile (nonexistent)
+++ databases/mongodb40-tools/Makefile (working copy)
@@ -0,0 +1,116 @@
+# $FreeBSD$
+
+PORTNAME=3D mongodb40-tools
+DISTVERSIONPREFIX=3D r
+DISTVERSION=3D 4.0.8
+CATEGORIES=3D databases
+
+MAINTAINER=3D dev.ashevchuk@gmail.com
+COMMENT=3D Tools for MongoDB
+
+LICENSE=3D APACHE20
+
+ONLY_FOR_ARCHS=3D amd64 i386
+ONLY_FOR_ARCHS_REASON=3D "not yet ported to anything other than i386 and a=
md64"
+
+BUILD_DEPENDS=3D go>=3D${GO_LANG_VERSION}:lang/go${GO_LANG_VERSION_PATH_ST=
R}
+
+USES=3D compiler:c++14-lang localbase go
+
+GO_LANG_VERSION=3D       1.4
+GO_LANG_VER_PATH_STR=3D  ${GO_LANG_VERSION:S/.//}
+
+GO_LANG_PATH_DIR=3D .gopath
+
+SSL_USE=3D my_tags=3Dssl
+SSL_USES=3D ssl
+
+SASL_USE=3D my_tags=3Dsasl
+SASL_LIB_DEPENDS=3D libsasl2.so:security/cyrus-sasl2
+
+CONFLICTS_INSTALL=3D mongodb3[46] mongodb3[46]-tools
+
+USE_LDCONFIG=3D yes
+
+CC=3D clang
+
+USE_GITHUB=3D yes
+GH_ACCOUNT=3D mongodb
+GH_PROJECT=3D mongo-tools
+GH_TAG=3D 5db0b4a18cc1366ebd368eed8e7c4d426d851f13
+
+OPTIONS_SUB=3D yes
+NO_OPTIONS_SORT=3D yes
+
+OPTIONS_DEFINE=3D DOCS
+OPTIONS_DEFAULT=3D SSL SASL MONGOFILES MONGOEXPORT MONGOIMPORT
MONGORESTORE MONGODUMP
+
+OPTIONS_MULTI=3D TOOLS SECURITY
+OPTIONS_MULTI_TOOLS=3D BSONDUMP MONGOSTAT MONGOFILES MONGOEXPORT
MONGOIMPORT MONGORESTORE MONGODUMP MONGOTOP MONGOREPLAY
+OPTIONS_MULTI_SECURITY=3DSSL SASL
+
+BSONDUMP_DESC=3D BSON files into human-readable formats
+MONGOSTAT_DESC=3D Status of a running mongod or mongos instance
+MONGOFILES_DESC=3D Interface to GridFS in a MongoDB instance
+MONGOEXPORT_DESC=3D JSON or CSV export of MongoDB instance data
+MONGOIMPORT_DESC=3D Importing JSON, CSV, or TSV into a MongoDB instance
+MONGORESTORE_DESC=3D BSON data to a MongoDB instance
+MONGODUMP_DESC=3D BSON data from the contents of a MongoDB instance
+MONGOTOP_DESC=3D Track the amount of data I/O time
+MONGOREPLAY_DESC=3D Traffic capture and replay tool
+
+BSONDUMP_VARS=3D tool_build+=3Dbsondump
+MONGOSTAT_VARS=3D tool_build+=3Dmongostat
+MONGOFILES_VARS=3D tool_build+=3Dmongofiles
+MONGOEXPORT_VARS=3D tool_build+=3Dmongoexport
+MONGOIMPORT_VARS=3D tool_build+=3Dmongoimport
+MONGORESTORE_VARS=3D tool_build+=3Dmongorestore
+MONGODUMP_VARS=3D tool_build+=3Dmongodump
+MONGOTOP_VARS=3D tool_build+=3Dmongotop
+MONGOREPLAY_VARS=3D tool_build+=3Dmongoreplay
+
+MAKE_CMD=3D ${LOCALBASE}/go${GO_LANG_VER_PATH_STR}/bin/go build
+
+MY_TAGS=3D -tags "${USE_MY_TAGS}"
+
+.include <bsd.port.options.mk>
+
+post-patch:
+ @${ECHO_MSG} "Preparing hierarchy"
+ ${MKDIR} ${WRKSRC}/${GO_LANG_PATH_DIR} && \
+ ${LN} -sf ${WRKSRC}/vendor ${WRKSRC}/${GO_LANG_PATH_DIR}/src && \
+ ${MKDIR} ${WRKSRC}/${GO_LANG_PATH_DIR}/src/github.com/${GH_ACCOUNT} && \
+ ${LN} -sf ${WRKSRC}
${WRKSRC}/${GO_LANG_PATH_DIR}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
+
+do-build:
+.for TOOL in ${TOOL_BUILD}
+ @${ECHO_MSG} "Building ${TOOL}"
+ ${SETENV} ${MAKE_ENV} \
+ GOPATH=3D"${WRKSRC}/${GO_LANG_PATH_DIR}:${WRKSRC}/vendor" \
+ CGO_CPPFLAGS=3D"-isystem ${LOCALBASE}/include" \
+ CGO_LDFLAGS=3D"-L${LOCALBASE}/lib" \
+ ${MAKE_CMD} \
+ -o ${WRKSRC}/bin/${TOOL} \
+ ${MY_TAGS} \
+ ${WRKSRC}/${TOOL}/main/${TOOL}.go
+.endfor
+
+do-install:
+.for TOOL in ${TOOL_BUILD}
+ @${ECHO_MSG} "Installing ${TOOL}"
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/${TOOL} ${STAGEDIR}${PREFIX}/bin/
+.endfor
+
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for DOC in README.md CONTRIBUTING.md LICENSE.md THIRD-PARTY-NOTICES
+ @${ECHO_MSG} "Installing ${DOC}"
+ ${INSTALL_MAN} ${WRKSRC}/${DOC} ${STAGEDIR}${DOCSDIR}
+.endfor
+
+post-install:
+.for TOOL in ${TOOL_BUILD}
+ @${ECHO_MSG} "Stripping ${TOOL}"
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${TOOL}
+.endfor
+
+.include <bsd.port.mk>
Index: databases/mongodb40-tools/distinfo
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- databases/mongodb40-tools/distinfo (nonexistent)
+++ databases/mongodb40-tools/distinfo (working copy)
@@ -0,0 +1,3 @@
+TIMESTAMP =3D 1555539033
+SHA256 (mongodb-mongo-tools-r4.0.8_GH0.tar.gz) =3D
c224df31f85476c0f651c4b5d70871b581f14bf16a8595a4aa7717e66ad07c5c
+SIZE (mongodb-mongo-tools-r4.0.8_GH0.tar.gz) =3D 11134459
Index: databases/mongodb40-tools/files/patch-common_util_file.go
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- databases/mongodb40-tools/files/patch-common_util_file.go (nonexistent)
+++ databases/mongodb40-tools/files/patch-common_util_file.go (working copy=
)
@@ -0,0 +1,325 @@
+--- common/util/file.go.orig  2018-11-21 17:52:58 UTC
++++ common/util/file.go
+@@ -9,11 +9,68 @@
+ import (
+ "bufio"
+ "io"
+- "net/url"
+ "os"
+ "path/filepath"
++ "strconv"
+ )
+
++// Error reports an error and the operation and URL that caused it.
++type Error struct {
++ Op  string
++ URL string
++ Err error
++}
++
++func (e *Error) Error() string { return e.Op + " " + e.URL + ": " +
e.Err.Error() }
++
++func ishex(c byte) bool {
++ switch {
++ case '0' <=3D c && c <=3D '9':
++ return true
++ case 'a' <=3D c && c <=3D 'f':
++ return true
++ case 'A' <=3D c && c <=3D 'F':
++ return true
++ }
++ return false
++}
++
++func unhex(c byte) byte {
++ switch {
++ case '0' <=3D c && c <=3D '9':
++ return c - '0'
++ case 'a' <=3D c && c <=3D 'f':
++ return c - 'a' + 10
++ case 'A' <=3D c && c <=3D 'F':
++ return c - 'A' + 10
++ }
++ return 0
++}
++
++type encoding int
++
++const (
++ encodePath encoding =3D 1 + iota
++ encodePathSegment
++ encodeHost
++ encodeZone
++ encodeUserPassword
++ encodeQueryComponent
++ encodeFragment
++)
++
++type EscapeError string
++
++func (e EscapeError) Error() string {
++ return "invalid URL escape " + strconv.Quote(string(e))
++}
++
++type InvalidHostError string
++
++func (e InvalidHostError) Error() string {
++ return "invalid character " + strconv.Quote(string(e)) + " in host name"
++}
++
+ // GetFieldsFromFile fetches the first line from the contents of the file
+ // at "path"
+ func GetFieldsFromFile(path string) ([]string, error) {
+@@ -42,11 +99,11 @@
+ }
+
+ func EscapeCollectionName(collName string) string {
+- return url.PathEscape(collName)
++ return PathEscape(collName)
+ }
+
+ func UnescapeCollectionName(escapedCollName string) (string, error) {
+- return url.PathUnescape(escapedCollName)
++ return PathUnescape(escapedCollName)
+ }
+
+ type WrappedReadCloser struct {
+@@ -76,3 +133,238 @@
+ }
+ return innerErr
+ }
++
++// Return true if the specified character should be escaped when
++// appearing in a URL string, according to RFC 3986.
++//
++// Please be informed that for now shouldEscape does not check all
++// reserved characters correctly. See golang.org/issue/5684.
++func shouldEscape(c byte, mode encoding) bool {
++ // =C3=82=C2=A72.3 Unreserved characters (alphanum)
++ if 'A' <=3D c && c <=3D 'Z' || 'a' <=3D c && c <=3D 'z' || '0' <=3D c &&=
 c <=3D '9' {
++ return false
++ }
++
++ if mode =3D=3D encodeHost || mode =3D=3D encodeZone {
++ // =C3=82=C2=A73.2.2 Host allows
++ // sub-delims =3D "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / ","
/ ";" / "=3D"
++ // as part of reg-name.
++ // We add : because we include :port as part of host.
++ // We add [ ] because we include [ipv6]:port as part of host.
++ // We add < > because they're the only characters left that
++ // we could possibly allow, and Parse will reject them if we
++ // escape them (because hosts can't use %-encoding for
++ // ASCII bytes).
++ switch c {
++ case '!', '$', '&', '\'', '(', ')', '*', '+', ',', ';', '=3D', ':',
'[', ']', '<', '>', '"':
++ return false
++ }
++ }
++
++ switch c {
++ case '-', '_', '.', '~': // =C3=82=C2=A72.3 Unreserved characters (mark)
++ return false
++
++ case '$', '&', '+', ',', '/', ':', ';', '=3D', '?', '@': // =C3=82=C2=A7=
2.2
Reserved characters (reserved)
++ // Different sections of the URL allow a few of
++ // the reserved characters to appear unescaped.
++ switch mode {
++ case encodePath: // =C3=82=C2=A73.3
++ // The RFC allows : @ & =3D + $ but saves / ; , for assigning
++ // meaning to individual path segments. This package
++ // only manipulates the path as a whole, so we allow those
++ // last three as well. That leaves only ? to escape.
++ return c =3D=3D '?'
++
++ case encodePathSegment: // =C3=82=C2=A73.3
++ // The RFC allows : @ & =3D + $ but saves / ; , for assigning
++ // meaning to individual path segments.
++ return c =3D=3D '/' || c =3D=3D ';' || c =3D=3D ',' || c =3D=3D '?'
++
++ case encodeUserPassword: // =C3=82=C2=A73.2.1
++ // The RFC allows ';', ':', '&', '=3D', '+', '$', and ',' in
++ // userinfo, so we must escape only '@', '/', and '?'.
++ // The parsing of userinfo treats ':' as special so we must escape
++ // that too.
++ return c =3D=3D '@' || c =3D=3D '/' || c =3D=3D '?' || c =3D=3D ':'
++
++ case encodeQueryComponent: // =C3=82=C2=A73.4
++ // The RFC reserves (so we must escape) everything.
++ return true
++
++ case encodeFragment: // =C3=82=C2=A74.1
++ // The RFC text is silent but the grammar allows
++ // everything, so escape nothing.
++ return false
++ }
++ }
++
++ if mode =3D=3D encodeFragment {
++ // RFC 3986 =C3=82=C2=A72.2 allows not escaping sub-delims. A subset of =
sub-delims are
++ // included in reserved from RFC 2396 =C3=82=C2=A72.2. The remaining sub=
-delims do not
++ // need to be escaped. To minimize potential breakage, we apply two
restrictions:
++ // (1) we always escape sub-delims outside of the fragment, and (2) we a=
lways
++ // escape single quote to avoid breaking callers that had
previously assumed that
++ // single quotes would be escaped. See issue #19917.
++ switch c {
++ case '!', '(', ')', '*':
++ return false
++ }
++ }
++
++ // Everything else must be escaped.
++ return true
++}
++
++// PathUnescape does the inverse transformation of PathEscape,
++// converting each 3-byte encoded substring of the form "%AB" into the
++// hex-decoded byte 0xAB. It returns an error if any % is not followed
++// by two hexadecimal digits.
++//
++// PathUnescape is identical to QueryUnescape except that it does not
++// unescape '+' to ' ' (space).
++func PathUnescape(s string) (string, error) {
++ return unescape(s, encodePathSegment)
++}
++
++// unescape unescapes a string; the mode specifies
++// which section of the URL string is being unescaped.
++func unescape(s string, mode encoding) (string, error) {
++ // Count %, check that they're well-formed.
++ n :=3D 0
++ hasPlus :=3D false
++ for i :=3D 0; i < len(s); {
++ switch s[i] {
++ case '%':
++ n++
++ if i+2 >=3D len(s) || !ishex(s[i+1]) || !ishex(s[i+2]) {
++ s =3D s[i:]
++ if len(s) > 3 {
++ s =3D s[:3]
++ }
++ return "", EscapeError(s)
++ }
++ // Per https://tools.ietf.org/html/rfc3986#page-21
++ // in the host component %-encoding can only be used
++ // for non-ASCII bytes.
++ // But https://tools.ietf.org/html/rfc6874#section-2
++ // introduces %25 being allowed to escape a percent sign
++ // in IPv6 scoped-address literals. Yay.
++ if mode =3D=3D encodeHost && unhex(s[i+1]) < 8 && s[i:i+3] !=3D "%25" {
++ return "", EscapeError(s[i : i+3])
++ }
++ if mode =3D=3D encodeZone {
++ // RFC 6874 says basically "anything goes" for zone identifiers
++ // and that even non-ASCII can be redundantly escaped,
++ // but it seems prudent to restrict %-escaped bytes here to those
++ // that are valid host name bytes in their unescaped form.
++ // That is, you can use escaping in the zone identifier but not
++ // to introduce bytes you couldn't just write directly.
++ // But Windows puts spaces here! Yay.
++ v :=3D unhex(s[i+1])<<4 | unhex(s[i+2])
++ if s[i:i+3] !=3D "%25" && v !=3D ' ' && shouldEscape(v, encodeHost) {
++ return "", EscapeError(s[i : i+3])
++ }
++ }
++ i +=3D 3
++ case '+':
++ hasPlus =3D mode =3D=3D encodeQueryComponent
++ i++
++ default:
++ if (mode =3D=3D encodeHost || mode =3D=3D encodeZone) && s[i] < 0x80 &&
shouldEscape(s[i], mode) {
++ return "", InvalidHostError(s[i : i+1])
++ }
++ i++
++ }
++ }
++
++ if n =3D=3D 0 && !hasPlus {
++ return s, nil
++ }
++
++ t :=3D make([]byte, len(s)-2*n)
++ j :=3D 0
++ for i :=3D 0; i < len(s); {
++ switch s[i] {
++ case '%':
++ t[j] =3D unhex(s[i+1])<<4 | unhex(s[i+2])
++ j++
++ i +=3D 3
++ case '+':
++ if mode =3D=3D encodeQueryComponent {
++ t[j] =3D ' '
++ } else {
++ t[j] =3D '+'
++ }
++ j++
++ i++
++ default:
++ t[j] =3D s[i]
++ j++
++ i++
++ }
++ }
++ return string(t), nil
++}
++
++// PathEscape escapes the string so it can be safely placed
++// inside a URL path segment.
++func PathEscape(s string) string {
++ return escape(s, encodePathSegment)
++}
++
++func escape(s string, mode encoding) string {
++ spaceCount, hexCount :=3D 0, 0
++ for i :=3D 0; i < len(s); i++ {
++ c :=3D s[i]
++ if shouldEscape(c, mode) {
++ if c =3D=3D ' ' && mode =3D=3D encodeQueryComponent {
++ spaceCount++
++ } else {
++ hexCount++
++ }
++ }
++ }
++
++ if spaceCount =3D=3D 0 && hexCount =3D=3D 0 {
++ return s
++ }
++
++ var buf [64]byte
++ var t []byte
++
++ required :=3D len(s) + 2*hexCount
++ if required <=3D len(buf) {
++ t =3D buf[:required]
++ } else {
++ t =3D make([]byte, required)
++ }
++
++ if hexCount =3D=3D 0 {
++ copy(t, s)
++ for i :=3D 0; i < len(s); i++ {
++ if s[i] =3D=3D ' ' {
++ t[i] =3D '+'
++ }
++ }
++ return string(t)
++ }
++
++ j :=3D 0
++ for i :=3D 0; i < len(s); i++ {
++ switch c :=3D s[i]; {
++ case c =3D=3D ' ' && mode =3D=3D encodeQueryComponent:
++ t[j] =3D '+'
++ j++
++ case shouldEscape(c, mode):
++ t[j] =3D '%'
++ t[j+1] =3D "0123456789ABCDEF"[c>>4]
++ t[j+2] =3D "0123456789ABCDEF"[c&15]
++ j +=3D 3
++ default:
++ t[j] =3D s[i]
++ j++
++ }
++ }
++ return string(t)
++}
Index: databases/mongodb40-tools/files/patch-vendor_src_github.com_spacemon=
keygo_openssl_build.go
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- databases/mongodb40-tools/files/patch-vendor_src_github.com_spacemonkey=
go_openssl_build.go
(nonexistent)
+++ databases/mongodb40-tools/files/patch-vendor_src_github.com_spacemonkey=
go_openssl_build.go
(working copy)
@@ -0,0 +1,9 @@
+--- vendor/github.com/10gen/openssl/build.go.orig 2018-11-21 19:00:22 UTC
++++ vendor/github.com/10gen/openssl/build.go
+@@ -20,5 +20,6 @@
+ // #cgo CFLAGS: -Wno-deprecated-declarations
+ // #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN -I"c:/openssl/include"
+ // #cgo windows LDFLAGS: -lssleay32 -llibeay32 -lcrypt32 -L "c:/openssl/b=
in"
++// #cgo freebsd LDFLAGS: -lssl -lcrypto
+ // #cgo darwin LDFLAGS: -framework CoreFoundation -framework
Foundation -framework Security
+ import "C"
Index: databases/mongodb40-tools/files/patch-vendor_src_github.com_spacemon=
keygo_openssl_init__posix.go
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- databases/mongodb40-tools/files/patch-vendor_src_github.com_spacemonkey=
go_openssl_init__posix.go
(nonexistent)
+++ databases/mongodb40-tools/files/patch-vendor_src_github.com_spacemonkey=
go_openssl_init__posix.go
(working copy)
@@ -0,0 +1,11 @@
+--- vendor/github.com/10gen/openssl/init_posix.go.orig 2018-11-21 17:52:58=
 UTC
++++ vendor/github.com/10gen/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
Index: databases/mongodb40-tools/pkg-descr
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- databases/mongodb40-tools/pkg-descr (nonexistent)
+++ databases/mongodb40-tools/pkg-descr (working copy)
@@ -0,0 +1,6 @@
+Since MongoDB 3.2, the tools bsondump, mongoimport, mongoexport, mongodump=
,
+mongorestore, mongostat, mongofiles 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
Index: databases/mongodb40-tools/pkg-plist
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- databases/mongodb40-tools/pkg-plist (nonexistent)
+++ databases/mongodb40-tools/pkg-plist (working copy)
@@ -0,0 +1,13 @@
+%%BSONDUMP%%bin/bsondump
+%%MONGODUMP%%bin/mongodump
+%%MONGOEXPORT%%bin/mongoexport
+%%MONGOFILES%%bin/mongofiles
+%%MONGOIMPORT%%bin/mongoimport
+%%MONGORESTORE%%bin/mongorestore
+%%MONGOTOP%%bin/mongoreplay
+%%MONGOSTAT%%bin/mongostat
+%%MONGOTOP%%bin/mongotop
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE.md
+%%PORTDOCS%%%%DOCSDIR%%/README.md
+%%PORTDOCS%%%%DOCSDIR%%/CONTRIBUTING.md
+%%PORTDOCS%%%%DOCSDIR%%/THIRD-PARTY-NOTICES
------------------------------[CUT]--------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJCvQDrqi7eW2Vo9zFipw6qeWtTNk38U9JYc4DEhpb1xd4Pd2g>