From afcd0306394caf67df6911f741c8cf51d3daa3c6 Mon Sep 17 00:00:00 2001 From: Alexander Pyhalov Date: Sat, 4 Mar 2017 11:54:08 +0300 Subject: [PATCH] Add MongoDB 3.4 --- components/database/mongodb-34/Makefile | 87 ++++++++++++++++ components/database/mongodb-34/files/mongod.conf | 41 ++++++++ .../database/mongodb-34/files/mongodb_34.xml | 55 ++++++++++ .../mongodb-34/manifests/sample-manifest.p5m | 38 +++++++ .../database/mongodb-34/mongodb34-service.p5m | 53 ++++++++++ components/database/mongodb-34/mongodb34.p5m | 113 +++++++++++++++++++++ .../patches/01-src_mongo_base_initializer.h.patch | 13 +++ .../02-src_mongo_shell_linenoise__utf8.h.patch | 26 +++++ .../mongodb-34/patches/03-file-locations.patch | 20 ++++ .../mongodb-34/patches/04-remove-ggdb.patch | 10 ++ .../database/mongodb-34/patches/05-gotools.patch | 20 ++++ 11 files changed, 476 insertions(+) create mode 100644 components/database/mongodb-34/Makefile create mode 100644 components/database/mongodb-34/files/mongod.conf create mode 100644 components/database/mongodb-34/files/mongodb_34.xml create mode 100644 components/database/mongodb-34/manifests/sample-manifest.p5m create mode 100644 components/database/mongodb-34/mongodb34-service.p5m create mode 100644 components/database/mongodb-34/mongodb34.p5m create mode 100644 components/database/mongodb-34/patches/01-src_mongo_base_initializer.h.patch create mode 100644 components/database/mongodb-34/patches/02-src_mongo_shell_linenoise__utf8.h.patch create mode 100644 components/database/mongodb-34/patches/03-file-locations.patch create mode 100644 components/database/mongodb-34/patches/04-remove-ggdb.patch create mode 100644 components/database/mongodb-34/patches/05-gotools.patch diff --git a/components/database/mongodb-34/Makefile b/components/database/mongodb-34/Makefile new file mode 100644 index 000000000..e54fa90b6 --- /dev/null +++ b/components/database/mongodb-34/Makefile @@ -0,0 +1,87 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"). You may +# only use this file in accordance with the terms of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2017 Alexander Pyhalov +# +# + +include ../../../make-rules/shared-macros.mk + +COMPONENT_NAME= mongodb +COMPONENT_VERSION= 3.4.2 +COMPONENT_SUMMARY= MongoDB distributed document-oriented database +COMPONENT_PROJECT_URL= https://www.mongodb.com/ +COMPONENT_FMRI= database/mongodb-34 +COMPONENT_CLASSIFICATION= System/Databases +COMPONENT_SRC= $(COMPONENT_NAME)-src-r$(COMPONENT_VERSION) +COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz +COMPONENT_ARCHIVE_URL= https://fastdl.mongodb.org/src/$(COMPONENT_ARCHIVE) +COMPONENT_ARCHIVE_HASH= sha256:29b60f6c5331fd2ff5242171a65c03e3b47c1ff957fa317bfaa2ddccd8d51b59 +COMPONENT_LICENSE= Apache v2.0 +COMPONENT_LICENSE_FILE= APACHE-2.0.txt + +include $(WS_MAKE_RULES)/prep.mk +include $(WS_MAKE_RULES)/justmake.mk +include $(WS_MAKE_RULES)/ips.mk + +# MongoDB 3.4 wants GCC 5 compiler +GCC_ROOT=/usr/gcc/5 + +BUILD_TOOLS= $(BUILD_DIR)/tools/.built +INSTALL_TOOLS= $(BUILD_DIR)/tools/.installed + +MONGO_PREFIX=usr/mongodb/3.4 + +GMAKE=scons + +COMPONENT_BUILD_ARGS += TARGET_ARCH=x86_64 +COMPONENT_BUILD_ARGS += CXXFLAGS="$(CXXFLAGS)" +COMPONENT_BUILD_ARGS += CC="$(CC)" +COMPONENT_BUILD_ARGS += CXX="$(CXX)" +COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" +COMPONENT_BUILD_ARGS += LIBPATH=/usr/lib/$(MACH64) +COMPONENT_BUILD_ARGS += LINKFLAGS="$(LDFLAGS)" + +COMPONENT_BUILD_ARGS += --prefix=$(PROTO_DIR)/$(MONGO_PREFIX) +COMPONENT_BUILD_ARGS += --use-system-zlib +COMPONENT_BUILD_ARGS += --ssl +COMPONENT_BUILD_ARGS += --release + +COMPONENT_BUILD_TARGETS= all + +COMPONENT_INSTALL_ARGS = $(COMPONENT_BUILD_ARGS) + +$(BUILD_TOOLS): $(BUILD_64) + $(MKDIR) $(@D)/bin + $(CP) -a $(SOURCE_DIR)/src/mongo/gotools/* $(@D) + cd $(@D) && /usr/bin/bash build.sh ssl + $(TOUCH) $(@) + +$(INSTALL_TOOLS): $(BUILD_TOOLS) $(INSTALL_64) + $(CP) $(BUILD_DIR)/tools/bin/* $(PROTO_DIR)/$(MONGO_PREFIX)/bin + $(TOUCH) $(@) + +build: $(BUILD_64) $(BUILD_TOOLS) + +install: $(INSTALL_64) $(INSTALL_TOOLS) + +test: $(NO_TESTS) + +REQUIRED_PACKAGES += SUNWcs +REQUIRED_PACKAGES += developer/build/scons +REQUIRED_PACKAGES += developer/gcc-5 +REQUIRED_PACKAGES += developer/golang +REQUIRED_PACKAGES += library/security/openssl +REQUIRED_PACKAGES += library/zlib +REQUIRED_PACKAGES += system/library +REQUIRED_PACKAGES += system/library/boost +REQUIRED_PACKAGES += system/library/libpcap +REQUIRED_PACKAGES += system/library/math diff --git a/components/database/mongodb-34/files/mongod.conf b/components/database/mongodb-34/files/mongod.conf new file mode 100644 index 000000000..42c5c6f11 --- /dev/null +++ b/components/database/mongodb-34/files/mongod.conf @@ -0,0 +1,41 @@ +# mongod.conf + +# for documentation of all options, see: +# http://docs.mongodb.org/manual/reference/configuration-options/ + +# Where and how to store data. +storage: + dbPath: /var/mongodb/3.4/data + journal: + enabled: true +# engine: +# mmapv1: +# wiredTiger: + +# where to write logging data. +systemLog: + destination: file + logAppend: true + path: /var/mongodb/3.4/log/mongod.log + +# network interfaces +net: + port: 27017 + bindIp: 127.0.0.1 + + +#processManagement: + +#security: + +#operationProfiling: + +#replication: + +#sharding: + +## Enterprise-Only Options: + +#auditLog: + +#snmp: diff --git a/components/database/mongodb-34/files/mongodb_34.xml b/components/database/mongodb-34/files/mongodb_34.xml new file mode 100644 index 000000000..c6aef0636 --- /dev/null +++ b/components/database/mongodb-34/files/mongodb_34.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/components/database/mongodb-34/manifests/sample-manifest.p5m b/components/database/mongodb-34/manifests/sample-manifest.p5m new file mode 100644 index 000000000..c1005d3ba --- /dev/null +++ b/components/database/mongodb-34/manifests/sample-manifest.p5m @@ -0,0 +1,38 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2017 +# + +set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.summary value="$(COMPONENT_SUMMARY)" +set name=info.classification value="$(COMPONENT_CLASSIFICATION)" +set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) +set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + +license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' + +file path=usr/mongodb/3.4/bin/bsondump +file path=usr/mongodb/3.4/bin/mongo +file path=usr/mongodb/3.4/bin/mongod +file path=usr/mongodb/3.4/bin/mongodump +file path=usr/mongodb/3.4/bin/mongoexport +file path=usr/mongodb/3.4/bin/mongofiles +file path=usr/mongodb/3.4/bin/mongoimport +file path=usr/mongodb/3.4/bin/mongooplog +file path=usr/mongodb/3.4/bin/mongoperf +file path=usr/mongodb/3.4/bin/mongoreplay +file path=usr/mongodb/3.4/bin/mongorestore +file path=usr/mongodb/3.4/bin/mongos +file path=usr/mongodb/3.4/bin/mongostat +file path=usr/mongodb/3.4/bin/mongotop diff --git a/components/database/mongodb-34/mongodb34-service.p5m b/components/database/mongodb-34/mongodb34-service.p5m new file mode 100644 index 000000000..e43989f4b --- /dev/null +++ b/components/database/mongodb-34/mongodb34-service.p5m @@ -0,0 +1,53 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2017 Alexander Pyhalov +# + +set name=pkg.fmri value=pkg:/service/database/mongodb-34@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.summary value="$(COMPONENT_SUMMARY) - server" +set name=info.classification value="$(COMPONENT_CLASSIFICATION)" +set name=info.source-url value="$(COMPONENT_ARCHIVE_URL)" +set name=info.upstream-url value="$(COMPONENT_PROJECT_URL)" +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + +license $(COMPONENT_LICENSE_FILE) license="$(COMPONENT_LICENSE)" + +depend type=require fmri=database/mongodb-common +depend type=require fmri=database/mongodb-34@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) + +dir path=var/mongodb/3.4/data owner=mongodb group=mongodb mode=0755 +dir path=var/mongodb/3.4/log owner=mongodb group=mongodb mode=0755 + +file files/mongod.conf path=etc/mongodb/3.4/mongod.conf preserve=true +file files/mongodb_34.xml \ + path=lib/svc/manifest/application/database/mongodb_34.xml + +# mediators +link path=usr/bin/mongod target=../mongodb/3.4/bin/mongod mediator=mongodb \ + mediator-version=3.4 +link path=usr/bin/mongos target=../mongodb/3.4/bin/mongos mediator=mongodb \ + mediator-version=3.4 + +link path=usr/share/man/man1/mongod.1 \ + target=../../../mongo/3.4/man/man1/mongod.1 mediator=mongodb \ + mediator-version=3.4 +link path=usr/share/man/man1/mongos.1 \ + target=../../../mongo/3.4/man/man1/mongos.1 mediator=mongodb \ + mediator-version=3.4 + +# man pages +file debian/mongod.1 path=usr/mongo/3.4/man/man1/mongod.1 +file debian/mongos.1 path=usr/mongo/3.4/man/man1/mongos.1 + +file path=usr/mongodb/3.4/bin/mongod +file path=usr/mongodb/3.4/bin/mongos diff --git a/components/database/mongodb-34/mongodb34.p5m b/components/database/mongodb-34/mongodb34.p5m new file mode 100644 index 000000000..40f872c48 --- /dev/null +++ b/components/database/mongodb-34/mongodb34.p5m @@ -0,0 +1,113 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2017 Alexander Pyhalov +# + +set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.summary value="$(COMPONENT_SUMMARY) - client tools" +set name=info.classification value="$(COMPONENT_CLASSIFICATION)" +set name=info.source-url value="$(COMPONENT_ARCHIVE_URL)" +set name=info.upstream-url value="$(COMPONENT_PROJECT_URL)" +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + +license $(COMPONENT_LICENSE_FILE) license="$(COMPONENT_LICENSE)" + +# mediators +link path=usr/bin/bsondump target=../mongodb/3.4/bin/bsondump mediator=mongodb \ + mediator-version=3.4 +link path=usr/bin/mongo target=../mongodb/3.4/bin/mongo mediator=mongodb \ + mediator-version=3.4 +link path=usr/bin/mongodump target=../mongodb/3.4/bin/mongodump \ + mediator=mongodb mediator-version=3.4 +link path=usr/bin/mongoexport target=../mongodb/3.4/bin/mongoexport \ + mediator=mongodb mediator-version=3.4 +link path=usr/bin/mongofiles target=../mongodb/3.4/bin/mongofiles \ + mediator=mongodb mediator-version=3.4 +link path=usr/bin/mongoimport target=../mongodb/3.4/bin/mongoimport \ + mediator=mongodb mediator-version=3.4 +link path=usr/bin/mongooplog target=../mongodb/3.4/bin/mongooplog \ + mediator=mongodb mediator-version=3.4 +link path=usr/bin/mongoperf target=../mongodb/3.4/bin/mongoperf \ + mediator=mongodb mediator-version=3.4 +link path=usr/bin/mongoreplay target=../mongodb/3.4/bin/mongoreplay \ + mediator=mongodb mediator-version=3.4 +link path=usr/bin/mongorestore target=../mongodb/3.4/bin/mongorestore \ + mediator=mongodb mediator-version=3.4 +link path=usr/bin/mongostat target=../mongodb/3.4/bin/mongostat \ + mediator=mongodb mediator-version=3.4 +link path=usr/bin/mongotop target=../mongodb/3.4/bin/mongotop mediator=mongodb \ + mediator-version=3.4 + +link path=usr/share/man/man1/bsondump.1 \ + target=../../../mongo/3.4/man/man1/bsondump.1 mediator=mongodb \ + mediator-version=3.4 +link path=usr/share/man/man1/mongo.1 \ + target=../../../mongo/3.4/man/man1/mongo.1 mediator=mongodb \ + mediator-version=3.4 +link path=usr/share/man/man1/mongodump.1 \ + target=../../../mongo/3.4/man/man1/mongodump.1 mediator=mongodb \ + mediator-version=3.4 +link path=usr/share/man/man1/mongoexport.1 \ + target=../../../mongo/3.4/man/man1/mongoexport.1 mediator=mongodb \ + mediator-version=3.4 +link path=usr/share/man/man1/mongofiles.1 \ + target=../../../mongo/3.4/man/man1/mongofiles.1 mediator=mongodb \ + mediator-version=3.4 +link path=usr/share/man/man1/mongoimport.1 \ + target=../../../mongo/3.4/man/man1/mongoimport.1 mediator=mongodb \ + mediator-version=3.4 +link path=usr/share/man/man1/mongooplog.1 \ + target=../../../mongo/3.4/man/man1/mongooplog.1 mediator=mongodb \ + mediator-version=3.4 +link path=usr/share/man/man1/mongoperf.1 \ + target=../../../mongo/3.4/man/man1/mongoperf.1 mediator=mongodb \ + mediator-version=3.4 +#link path=usr/share/man/man1/mongoreplay.1 \ +# target=../../../mongo/3.4/man/man1/mongoreplay.1 mediator=mongodb \ +# mediator-version=3.4 +link path=usr/share/man/man1/mongorestore.1 \ + target=../../../mongo/3.4/man/man1/mongorestore.1 mediator=mongodb \ + mediator-version=3.4 +link path=usr/share/man/man1/mongostat.1 \ + target=../../../mongo/3.4/man/man1/mongostat.1 mediator=mongodb \ + mediator-version=3.4 +link path=usr/share/man/man1/mongotop.1 \ + target=../../../mongo/3.4/man/man1/mongotop.1 mediator=mongodb \ + mediator-version=3.4 + +# man pages +file debian/bsondump.1 path=usr/mongo/3.4/man/man1/bsondump.1 +file debian/mongo.1 path=usr/mongo/3.4/man/man1/mongo.1 +file debian/mongodump.1 path=usr/mongo/3.4/man/man1/mongodump.1 +file debian/mongoexport.1 path=usr/mongo/3.4/man/man1/mongoexport.1 +file debian/mongofiles.1 path=usr/mongo/3.4/man/man1/mongofiles.1 +file debian/mongoimport.1 path=usr/mongo/3.4/man/man1/mongoimport.1 +file debian/mongooplog.1 path=usr/mongo/3.4/man/man1/mongooplog.1 +file debian/mongoperf.1 path=usr/mongo/3.4/man/man1/mongoperf.1 +#file debian/mongoreplay.1 path=usr/mongo/3.4/man/man1/mongoreplay.1 +file debian/mongorestore.1 path=usr/mongo/3.4/man/man1/mongorestore.1 +file debian/mongostat.1 path=usr/mongo/3.4/man/man1/mongostat.1 +file debian/mongotop.1 path=usr/mongo/3.4/man/man1/mongotop.1 + +file path=usr/mongodb/3.4/bin/bsondump +file path=usr/mongodb/3.4/bin/mongo +file path=usr/mongodb/3.4/bin/mongodump +file path=usr/mongodb/3.4/bin/mongoexport +file path=usr/mongodb/3.4/bin/mongofiles +file path=usr/mongodb/3.4/bin/mongoimport +file path=usr/mongodb/3.4/bin/mongooplog +file path=usr/mongodb/3.4/bin/mongoperf +file path=usr/mongodb/3.4/bin/mongoreplay +file path=usr/mongodb/3.4/bin/mongorestore +file path=usr/mongodb/3.4/bin/mongostat +file path=usr/mongodb/3.4/bin/mongotop diff --git a/components/database/mongodb-34/patches/01-src_mongo_base_initializer.h.patch b/components/database/mongodb-34/patches/01-src_mongo_base_initializer.h.patch new file mode 100644 index 000000000..0da32630d --- /dev/null +++ b/components/database/mongodb-34/patches/01-src_mongo_base_initializer.h.patch @@ -0,0 +1,13 @@ +$NetBSD: patch-src_mongo_base_initializer.h,v 1.1 2015/05/02 08:10:33 ryoon Exp $ + +Fixes at least SunOS. +--- a/src/mongo/base/initializer.h.orig 2014-04-07 00:36:57.000000000 +0000 ++++ b/src/mongo/base/initializer.h +@@ -17,6 +17,7 @@ + + #include + #include ++#include + + #include "mongo/base/disallow_copying.h" + #include "mongo/base/initializer_context.h" diff --git a/components/database/mongodb-34/patches/02-src_mongo_shell_linenoise__utf8.h.patch b/components/database/mongodb-34/patches/02-src_mongo_shell_linenoise__utf8.h.patch new file mode 100644 index 000000000..aae177d2a --- /dev/null +++ b/components/database/mongodb-34/patches/02-src_mongo_shell_linenoise__utf8.h.patch @@ -0,0 +1,26 @@ +$NetBSD: patch-src_mongo_shell_linenoise__utf8.h,v 1.3 2016/02/12 03:37:24 ryoon Exp $ + +Use Boost swap instead of std. Fixes build on SunOS. +--- a/src/mongo/shell/linenoise_utf8.h.orig 2016-01-05 18:31:44.000000000 +0000 ++++ b/src/mongo/shell/linenoise_utf8.h +@@ -27,6 +27,7 @@ + * then also delete it in the license file. + */ + ++#include + #include + #include + #include +@@ -174,9 +175,9 @@ + } + + void swap(UtfStringMixin& other) { +- std::swap(_len, other._len); +- std::swap(_cap, other._cap); +- std::swap(_chars, other._chars); ++ boost::swap(_len, other._len); ++ boost::swap(_cap, other._cap); ++ boost::swap(_chars, other._chars); + _str.swap(other._str); + } + diff --git a/components/database/mongodb-34/patches/03-file-locations.patch b/components/database/mongodb-34/patches/03-file-locations.patch new file mode 100644 index 000000000..9a59ed64d --- /dev/null +++ b/components/database/mongodb-34/patches/03-file-locations.patch @@ -0,0 +1,20 @@ +--- mongodb-src-r3.4.12/debian/mongod.1.~1~ 2016-09-08 22:27:12.755546468 +0300 ++++ mongodb-src-r3.4.12/debian/mongod.1 2016-09-08 22:28:50.823735744 +0300 +@@ -291,7 +291,7 @@ + .sp + You can use the \fBmongosniff\fP tool to replay this output for + investigation. Given a typical diaglog file located at +-\fB/data/db/diaglog.4f76a58c\fP, you might use a command in the following ++\fB/var/mongodb/3.4/data/diaglog.4f76a58c\fP, you might use a command in the following + form to read these files: + .INDENT 7.0 + .INDENT 3.5 +@@ -592,7 +592,7 @@ + .sp + If you + installed MongoDB using a package management system, check the +-\fB/etc/mongodb.conf\fP file provided by your packages to see the ++\fB/etc/mongodb/3.4/mongod.conf\fP file provided by your packages to see the + directory is specified. + .sp + Changed in version 3.0: The files in \fI\%\-\-dbpath\fP must correspond to the storage engine diff --git a/components/database/mongodb-34/patches/04-remove-ggdb.patch b/components/database/mongodb-34/patches/04-remove-ggdb.patch new file mode 100644 index 000000000..27dd278b8 --- /dev/null +++ b/components/database/mongodb-34/patches/04-remove-ggdb.patch @@ -0,0 +1,10 @@ +--- mongodb-src-r3.3.12/SConstruct.1 2016-09-08 23:44:50.673340313 +0300 ++++ mongodb-src-r3.3.12/SConstruct 2016-09-08 23:45:08.701896471 +0300 +@@ -1527,7 +1527,6 @@ + # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used. + env.Append( CCFLAGS=["-fno-omit-frame-pointer", + "-fno-strict-aliasing", +- "-ggdb", + "-pthread", + "-Wall", + "-Wsign-compare", diff --git a/components/database/mongodb-34/patches/05-gotools.patch b/components/database/mongodb-34/patches/05-gotools.patch new file mode 100644 index 000000000..33588ca5d --- /dev/null +++ b/components/database/mongodb-34/patches/05-gotools.patch @@ -0,0 +1,20 @@ +--- mongodb-src-r3.3.12/src/mongo/gotools/vendor/src/github.com/spacemonkeygo/openssl/build.go.1 2016-09-09 19:03:08.734300807 +0300 ++++ mongodb-src-r3.3.12/src/mongo/gotools/vendor/src/github.com/spacemonkeygo/openssl/build.go 2016-09-09 19:03:18.218838944 +0300 +@@ -17,6 +17,7 @@ + package openssl + + // #cgo linux pkg-config: openssl ++// #cgo solaris pkg-config: openssl + // #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN + // #cgo darwin CFLAGS: -Wno-deprecated-declarations + // #cgo darwin LDFLAGS: -lssl -lcrypto +--- mongodb-src-r3.4.2/src/mongo/gotools/vendor/src/github.com/google/gopacket/pcap/pcap.go 2017-03-04 09:31:31.345836414 +0300 ++++ mongodb-src-r3.4.2/src/mongo/gotools/vendor/src/github.com/google/gopacket/pcap/pcap.go 2017-03-04 09:28:37.888839087 +0300 +@@ -11,6 +11,7 @@ + #cgo linux LDFLAGS: -lpcap + #cgo freebsd LDFLAGS: -lpcap + #cgo openbsd LDFLAGS: -lpcap ++#cgo solaris LDFLAGS: -lpcap + #cgo darwin LDFLAGS: -lpcap + #cgo windows CFLAGS: -I C:/WpdPack/Include + #cgo windows,386 LDFLAGS: -L C:/WpdPack/Lib -lwpcap -- 2.11.4.GIT