mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
this change allows aports-qa-bot to match the Maintainer to a GitLab username and automatically assign me to look over and approve merge requests for aports I maintain
41 lines
1.4 KiB
Text
41 lines
1.4 KiB
Text
# Contributor: Marc Vertes <mvertes@free.fr>
|
|
# Maintainer: Mikael Jenkler <mikael@jenkler.com>
|
|
pkgname=mongodb-tools
|
|
pkgver=4.2.14
|
|
pkgrel=1
|
|
pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities."
|
|
url="https://github.com/mongodb/mongo-tools"
|
|
arch="all !s390x"
|
|
license="Apache-2.0"
|
|
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
|
|
remove-buildflags.patch
|
|
"
|
|
builddir="$srcdir/src/github.com/mongodb/mongo-tools"
|
|
|
|
export GO111MODULE=auto
|
|
|
|
prepare() {
|
|
mkdir -p "${builddir%/*}"
|
|
mv "$srcdir"/mongo-tools-r$pkgver "$builddir"
|
|
default_prepare
|
|
}
|
|
|
|
build() {
|
|
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="ddddf8340788635d5be60457460830f4f8be47f7e90b61e0a498a95f46d0e1671b4e1482049d761c5d5f36c63d01277753d74f6a51446340a3dd2e2e3e0de546 mongodb-tools-4.2.14.tar.gz
|
|
74e432b354fd75209b87461e54f79a173ba0d647a2e45a48d520ee9342236b6a50ef1c634312f4804402578b8534d59ebf10973ce90cae2bbe76407102f2b404 fix-build.patch
|
|
52d1fe25cd0c44331fac7320d3d77d8a72dee18ccace4f301a01ce9f6fda8e6daa0334a4b62fc8c9c8bc791717fd25fe2e3a4550d9d4f66367b63937d2bdc8ac remove-buildflags.patch"
|