blob: aba6fe9282ced21a4065e54eef0accefdd0b312a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Contributor: Marc Vertes <marc.vertes@ugrid.net>
# Maintainer: Marc Vertes <marc.vertes@ugrid.net>
pkgname=mongodb-tools
pkgver=4.0.3
pkgrel=1
pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities."
url="https://github.com/mongodb/mongo-tools"
arch="all !s390x !aarch64"
license="Apache"
makedepends="$depends_dev go cyrus-sasl-dev openssl-dev libpcap-dev bash"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-tools/archive/r$pkgver.tar.gz
fix-build.patch
fix-libressl.patch
"
builddir="$srcdir"/mongo-tools-r$pkgver
build() {
cd "$builddir"
./build.sh sasl ssl
}
package() {
cd "$builddir/bin"
local bindir="$pkgdir/usr/bin"
mkdir -p "$bindir"
cp bsondump mongostat mongofiles mongoexport mongoimport \
mongorestore mongodump mongotop mongoreplay \
"$bindir"
}
sha512sums="cbe74b3fdebd0d4f6be6e3acf7f55f5f1a551b0ad1a23d82782643d2a9eb9ea4b7e0133985485b8c5a88c1fea26595e3ed9c759f1f63b578b6472d850154d67b mongodb-tools-4.0.3.tar.gz
74e432b354fd75209b87461e54f79a173ba0d647a2e45a48d520ee9342236b6a50ef1c634312f4804402578b8534d59ebf10973ce90cae2bbe76407102f2b404 fix-build.patch
8f91429dc451bd0c13738415c28c853d979cc59417f8b44a2d8e3bbea588c6c0a051019f4b7db09a6dd23e1e8fa4624c6ce7737d0eff99332e37453fa4c616b8 fix-libressl.patch"
|