APKBUILD 1.34 KB
Newer Older
1 2 3
# Contributor: Marc Vertes <marc.vertes@ugrid.net>
# Maintainer: Marc Vertes <marc.vertes@ugrid.net>
pkgname=mongodb-tools
4
pkgver=3.4.4
5
pkgrel=2
6 7
pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities."
url="https://github.com/mongodb/mongo-tools"
8
arch="all !s390x !aarch64"
9
license="apache"
10
makedepends="$depends_dev go cyrus-sasl-dev libressl-dev libpcap-dev"
11
options="!check"
12
source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-tools/archive/r$pkgver.tar.gz
13
	libressl.patch
14 15
	fix-build.patch
	"
16
builddir="$srcdir"/mongo-tools-r$pkgver
17 18

prepare() {
19 20
	cd "$builddir"
	default_prepare
21 22 23
}

build() {
24
	cd "$builddir"
25
	./build.sh sasl ssl
26 27 28
}

package() {
29
	cd "$builddir/bin"
30 31
	local bindir="$pkgdir/usr/bin"
	mkdir -p "$bindir" || return 1
32
	cp bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog mongoreplay "$bindir" || return 1
33 34
}

35
sha512sums="d49243e41bf3144264add3766a6f7016a07509a583a7368a639d85d2305500dd5afcfbc4449f3dcc8bec6e88bfb76ce021c813fe14169e3bd2476ed0db7c2d5d  mongodb-tools-3.4.4.tar.gz
36 37
3e336b01c33da66623cc84bf9c29c794bba20bdaf6299713f39416ed1a92406c6f2e5e03865aaca128f91e8e1ac64c6c52a2a92610c59dc7be2fd6c997e9361e  libressl.patch
74e432b354fd75209b87461e54f79a173ba0d647a2e45a48d520ee9342236b6a50ef1c634312f4804402578b8534d59ebf10973ce90cae2bbe76407102f2b404  fix-build.patch"