blob: ea4950b091cdc8ac6f5127178523f51aafb1f41d (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ldb
pkgver=1.3.0
pkgrel=1
pkgdesc="A schema-less, ldap like, API and database"
url="http://ldb.samba.org/"
arch="all"
license="LGPLv3+"
makedepends="$depends_dev tevent-dev py-tevent tdb-dev py-tdb talloc-dev
python2-dev popt-dev cmocka-dev"
subpackages="$pkgname-dev py-$pkgname:_py $pkgname-tools"
source="https://www.samba.org/ftp/pub/ldb/ldb-$pkgver.tar.gz
0001-CVE-2018-1140-ldb-Check-for-ldb_dn_get_casefold-fail.patch
"
builddir="$srcdir"/ldb-$pkgver
# secfixes:
# 1.3.0-r1:
# - CVE-2018-1140
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--disable-rpath \
--bundled-libraries=NONE \
--builtin-libraries=replace \
--with-modulesdir=/usr/lib/ldb/modules
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
_py() {
pkgdesc="Python binding for the ldb library"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/libpyldb*.so.* "$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="c5afe3c5229cbc35a5715e6ed1faa070dfa3d6b3c0902cc53770373bbc1761ff4ff93aa9b88d5573b9af9925332bb5cebf4a7a129852231f13be33d5cee3a9f8 ldb-1.3.0.tar.gz
e582b6e99f94d566de3259e5585baab25d43613711c501e752971a6180ceac60f4fe2cc0bdfc2f0bf26208cb86cb4c857c16f6645410badf694efa8be10db64f 0001-CVE-2018-1140-ldb-Check-for-ldb_dn_get_casefold-fail.patch"
|