mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
# Contributor: Marc Vertes <mvertes@free.fr>
|
|
# Maintainer: Marc Vertes <mvertes@free.fr>
|
|
pkgname=mongodb-tools
|
|
pkgver=4.0.5
|
|
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 openssl-dev libpcap-dev bash perl"
|
|
options="!check"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-tools/archive/r$pkgver.tar.gz
|
|
fix-build.patch
|
|
"
|
|
builddir="$srcdir/src/github.com/mongodb/mongo-tools"
|
|
|
|
prepare() {
|
|
mkdir -p "${builddir%/*}"
|
|
mv "$srcdir"/mongo-tools-r$pkgver "$builddir"
|
|
default_prepare
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
GOROOT=/usr/lib/go GOPATH="$srcdir" ./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="5a2ca0cb761895a6c3187bdf4ac0c11222ac681313c2c22801571a1147e07b7b6149150b07e58cd4487413017da56424ec494eaaf9aec9193498ee3cde73c5da mongodb-tools-4.0.5.tar.gz
|
|
74e432b354fd75209b87461e54f79a173ba0d647a2e45a48d520ee9342236b6a50ef1c634312f4804402578b8534d59ebf10973ce90cae2bbe76407102f2b404 fix-build.patch"
|