[arch-commits] Commit in mongodb-tools/repos (3 files)

Felix Yan felixonmars at archlinux.org
Mon Dec 25 04:36:27 UTC 2017


    Date: Monday, December 25, 2017 @ 04:36:24
  Author: felixonmars
Revision: 275915

archrelease: copy trunk to community-testing-x86_64

Added:
  mongodb-tools/repos/community-testing-x86_64/
  mongodb-tools/repos/community-testing-x86_64/PKGBUILD
    (from rev 275914, mongodb-tools/trunk/PKGBUILD)
  mongodb-tools/repos/community-testing-x86_64/disable-sslv3.patch
    (from rev 275914, mongodb-tools/trunk/disable-sslv3.patch)

---------------------+
 PKGBUILD            |   38 ++++++++++++++++++++++++++++++++++++++
 disable-sslv3.patch |   13 +++++++++++++
 2 files changed, 51 insertions(+)

Copied: mongodb-tools/repos/community-testing-x86_64/PKGBUILD (from rev 275914, mongodb-tools/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-12-25 04:36:24 UTC (rev 275915)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=mongodb-tools
+pkgver=3.6.0
+pkgrel=1
+pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities."
+arch=('x86_64')
+url="https://github.com/mongodb/mongo-tools"
+license=('Apache')
+depends=('libsasl' 'libpcap' 'openssl-1.0')
+makedepends=('go-pie')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-tools/archive/r$pkgver.tar.gz"
+        "disable-sslv3.patch")
+sha512sums=('88f4e18d260b9f675f216c1dd3be736507516f03d3faf057f79b408d9a939d5aa29e2a9b8eb3e543615260f87e53bafaffaa1a2e464f7cfd83480a0b9685a9ab'
+            '674af43ebf9e73f1eae4f81c160cec4c4ea657b7e38f97929a0845d8981f9af904eca79e2144e6150774799a58074cee5b67e4385d082630c471e438981d9ea5')
+
+prepare() {
+  cd mongo-tools-r$pkgver
+  . ./set_gopath.sh
+  mkdir bin
+
+  export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
+}
+
+build() {
+  cd mongo-tools-r$pkgver
+  for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
+    go build -o bin/$i -tags "ssl sasl" $i/main/$i.go
+  done
+}
+
+package() {
+  cd mongo-tools-r$pkgver
+  for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
+    install -Dm755 bin/$i "$pkgdir/usr/bin/$i"
+  done
+}

Copied: mongodb-tools/repos/community-testing-x86_64/disable-sslv3.patch (from rev 275914, mongodb-tools/trunk/disable-sslv3.patch)
===================================================================
--- community-testing-x86_64/disable-sslv3.patch	                        (rev 0)
+++ community-testing-x86_64/disable-sslv3.patch	2017-12-25 04:36:24 UTC (rev 275915)
@@ -0,0 +1,13 @@
+diff --git i/vendor/src/github.com/spacemonkeygo/openssl/ctx.go w/vendor/src/github.com/spacemonkeygo/openssl/ctx.go
+index 22d6dd1..25b0eec 100644
+--- i/vendor/src/github.com/spacemonkeygo/openssl/ctx.go
++++ w/vendor/src/github.com/spacemonkeygo/openssl/ctx.go
+@@ -141,7 +141,7 @@ func NewCtxWithVersion(version SSLVersion) (*Ctx, error) {
+ 	var method *C.SSL_METHOD
+ 	switch version {
+ 	case SSLv3:
+-		method = C.SSLv3_method()
++		method = C.SSLv23_method()
+ 	case TLSv1:
+ 		method = C.TLSv1_method()
+ 	case TLSv1_1:



More information about the arch-commits mailing list