Date: Wednesday, March 22, 2017 @ 05:43:10 Author: felixonmars Revision: 218296
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: mongodb-tools/repos/community-staging-i686/ mongodb-tools/repos/community-staging-i686/PKGBUILD (from rev 218295, mongodb-tools/trunk/PKGBUILD) mongodb-tools/repos/community-staging-i686/disable-sslv3.patch (from rev 218295, mongodb-tools/trunk/disable-sslv3.patch) mongodb-tools/repos/community-staging-x86_64/ mongodb-tools/repos/community-staging-x86_64/PKGBUILD (from rev 218295, mongodb-tools/trunk/PKGBUILD) mongodb-tools/repos/community-staging-x86_64/disable-sslv3.patch (from rev 218295, mongodb-tools/trunk/disable-sslv3.patch) ----------------------------------------------+ community-staging-i686/PKGBUILD | 38 +++++++++++++++++++++++++ community-staging-i686/disable-sslv3.patch | 13 ++++++++ community-staging-x86_64/PKGBUILD | 38 +++++++++++++++++++++++++ community-staging-x86_64/disable-sslv3.patch | 13 ++++++++ 4 files changed, 102 insertions(+) Copied: mongodb-tools/repos/community-staging-i686/PKGBUILD (from rev 218295, mongodb-tools/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-03-22 05:43:10 UTC (rev 218296) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=mongodb-tools +pkgver=3.4.2 +pkgrel=1 +pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities." +arch=('i686' 'x86_64') +url="https://github.com/mongodb/mongo-tools" +license=('Apache') +depends=('libsasl' 'libpcap' 'openssl-1.0') +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-tools/archive/r$pkgver.tar.gz" + "disable-sslv3.patch") +sha512sums=('5ad4b5421acb10010f72f6b9f8342c095c4f571ac3cb9dc3db78251262f8285a4e2bddbeed3ad26c64f36d5b33ed7f43a759c74e00d2878c0ac6a71069508a2f' + '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 mongooplog 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 mongooplog mongoreplay; do + install -Dm755 bin/$i "$pkgdir/usr/bin/$i" + done +} Copied: mongodb-tools/repos/community-staging-i686/disable-sslv3.patch (from rev 218295, mongodb-tools/trunk/disable-sslv3.patch) =================================================================== --- community-staging-i686/disable-sslv3.patch (rev 0) +++ community-staging-i686/disable-sslv3.patch 2017-03-22 05:43:10 UTC (rev 218296) @@ -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: Copied: mongodb-tools/repos/community-staging-x86_64/PKGBUILD (from rev 218295, mongodb-tools/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-03-22 05:43:10 UTC (rev 218296) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=mongodb-tools +pkgver=3.4.2 +pkgrel=1 +pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities." +arch=('i686' 'x86_64') +url="https://github.com/mongodb/mongo-tools" +license=('Apache') +depends=('libsasl' 'libpcap' 'openssl-1.0') +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-tools/archive/r$pkgver.tar.gz" + "disable-sslv3.patch") +sha512sums=('5ad4b5421acb10010f72f6b9f8342c095c4f571ac3cb9dc3db78251262f8285a4e2bddbeed3ad26c64f36d5b33ed7f43a759c74e00d2878c0ac6a71069508a2f' + '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 mongooplog 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 mongooplog mongoreplay; do + install -Dm755 bin/$i "$pkgdir/usr/bin/$i" + done +} Copied: mongodb-tools/repos/community-staging-x86_64/disable-sslv3.patch (from rev 218295, mongodb-tools/trunk/disable-sslv3.patch) =================================================================== --- community-staging-x86_64/disable-sslv3.patch (rev 0) +++ community-staging-x86_64/disable-sslv3.patch 2017-03-22 05:43:10 UTC (rev 218296) @@ -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: