Commit 3ae61e4a authored by Leonardo Arena's avatar Leonardo Arena

testing/mongodb-tools: check() unsupported, modernize APKBUILD

parent a86740d7
......@@ -2,38 +2,31 @@
# Maintainer: Marc Vertes <marc.vertes@ugrid.net>
pkgname=mongodb-tools
pkgver=r3.4.3
pkgrel=1
pkgrel=2
pkgdesc="The MongoDB tools provide import, export, and diagnostic capabilities."
url="https://github.com/mongodb/mongo-tools"
arch="all !aarch64"
license="apache"
depends="libsasl"
depends_dev=""
makedepends="$depends_dev go cyrus-sasl-dev libressl-dev libpcap-dev"
install=""
subpackages=""
options="!check"
source="https://github.com/mongodb/mongo-tools/archive/$pkgver/$pkgname-$pkgver.tar.gz
libressl.patch
fix-build.patch"
fix-build.patch
"
builddir="$srcdir"/mongo-tools-$pkgver
_builddir="$srcdir"/mongo-tools-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
cd "$builddir"
default_prepare
}
build() {
cd "$_builddir"
cd "$builddir"
./build.sh sasl ssl
}
package() {
cd "$_builddir/bin"
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment