aboutsummaryrefslogtreecommitdiffstats
path: root/community/mongodb-tools/APKBUILD
blob: 3d173a044fb5ebcebfb8c451edebaa6dcf4b2200 (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
35
36
37
38
# Contributor: Marc Vertes <marc.vertes@ugrid.net>
# Maintainer: Marc Vertes <marc.vertes@ugrid.net>
pkgname=mongodb-tools
pkgver=3.4.10
pkgrel=0
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 libressl-dev libpcap-dev"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-tools/archive/r$pkgver.tar.gz
	fix-build.patch
	libressl.patch
	"

builddir="$srcdir"/mongo-tools-r$pkgver

prepare() {
	cd "$builddir"
	default_prepare
}

build() {
	cd "$builddir"
	./build.sh sasl ssl
}

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

sha512sums="b861bb3fb1a32c3aa2efefcf6a13bb6d4783ac1a9b006c477fd04deb338cbf6b7adc3944bc6919513b92bd96b8500813ff4af49c9dec0719ebd2fdaa99bc39a5  mongodb-tools-3.4.10.tar.gz
74e432b354fd75209b87461e54f79a173ba0d647a2e45a48d520ee9342236b6a50ef1c634312f4804402578b8534d59ebf10973ce90cae2bbe76407102f2b404  fix-build.patch
ddc4a5a93717dbaa6b6b816bdaaecaa6990c6b8fdf390f37e98d358cdffb9561a8ffb34a2af2c170fee7d181d343f2090b3b1a36ac4989bcc67ca493faeb946e  libressl.patch"