mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
63 lines
1.9 KiB
Plaintext
63 lines
1.9 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=ldb
|
|
pkgver=1.5.4
|
|
pkgrel=0
|
|
pkgdesc="A schema-less, ldap like, API and database"
|
|
url="https://ldb.samba.org/"
|
|
arch="all"
|
|
license="LGPL-3.0-or-later"
|
|
makedepends="libtirpc-dev tevent-dev py3-tevent tdb-dev py3-tdb talloc-dev
|
|
python3-dev popt-dev cmocka-dev docbook-xsl lmdb-dev"
|
|
subpackages="$pkgname-dev py3-$pkgname:_py3 $pkgname-tools $pkgname-doc"
|
|
source="https://www.samba.org/ftp/pub/ldb/$pkgname-$pkgver.tar.gz
|
|
disable-compile-error-test.patch
|
|
0002-ldb-Run-at-least-some-tests-on-32-bit-machines.patch"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
# secfixes:
|
|
# 1.3.5-r0:
|
|
# - CVE-2018-1140
|
|
|
|
_waf="$builddir/buildtools/bin/waf"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
"$_waf" configure \
|
|
--prefix=/usr \
|
|
--disable-rpath \
|
|
--disable-rpath-install \
|
|
--builtin-libraries=replace \
|
|
--bundled-libraries=NONE \
|
|
--with-modulesdir=/usr/lib/ldb/modules
|
|
"$_waf" build
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
"$_waf" test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
DESTDIR="$pkgdir" "$_waf" install
|
|
}
|
|
|
|
_py3() {
|
|
pkgdesc="Python 3 binding for the ldb library"
|
|
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/
|
|
mv "$pkgdir"/usr/lib/libpyldb-util.cpython* "$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
tools() {
|
|
pkgdesc="Tools to manage LDB files"
|
|
mkdir -p "$subpkgdir"/usr/lib/ldb
|
|
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
|
|
mv "$pkgdir"/usr/lib/ldb/libldb-cmdline.* "$subpkgdir"/usr/lib/ldb/
|
|
}
|
|
|
|
sha512sums="fc323e4283671c14d6dd4feb7e9ca943a63a166688077dbf3591f9d957cf821f9e739869842e15ca1ec4fd3764123d5afc6f4954b1af437bd1ec54df58366a22 ldb-1.5.4.tar.gz
|
|
ed55d5151bbcaf5c0a1b70a1f44b461a501ad94ce02ee97e3ea10c560ce3656a190510697bbd3c5b6f70a74519bf7c0a91210bcb415ffd97d9440045e10a02e8 disable-compile-error-test.patch
|
|
619db1e1cbf991546b92cfa4fd2100a0b74f563d366981b552a9997152a98ee2c5e9029c77015ab57860d0ca48a98aa24b6e5bc1c330880cd85f39c1df811e55 0002-ldb-Run-at-least-some-tests-on-32-bit-machines.patch"
|