summaryrefslogtreecommitdiff
path: root/packages/dev-db/ldb/ldb-1.4.0.exheres-0
blob: c569360b2d1f7c04ec0b090206db76ce89edbb04 (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
# Copyright 2011-2012 Pierre Lejeune <superheron@gmail.com>
# Distributed under the terms of the GNU General Public License v2

require wafsamba

SUMMARY="LDAP-like embedded database"
DESCRIPTION="
ldb is a LDAP-like embedded database. It is not at all LDAP standards compliant, so if you want a
standards compliant database then please see the excellent OpenLDAP project.

What ldb does is provide a fast database with an LDAP-like API designed to be used within an
application. In some ways it can be seen as a intermediate solution between key-value pair databases
and a real LDAP database.

ldb is the database engine used in Samba4.
"
HOMEPAGE="https://${PN}.samba.org"
DOWNLOADS="mirror://samba/../${PN}/${PNV}.tar.gz"

LICENCES="LGPL-3"
SLOT="0"
PLATFORMS="~amd64 ~armv7 ~x86"
MYOPTIONS=""

DEPENDENCIES="
    build+run:
        dev-db/tdb[>=1.3.15]
        dev-libs/popt
        dev-libs/talloc[>=2.1.11]
        dev-libs/tevent[>=0.9.36]
    build+test:
        dev-util/cmocka[>=1.1.1]
    recommendation:
        net-directory/openldap [[ description = [ ldb can use OpenLDAP as a backend ] ]]
"

WAF_SRC_CONFIGURE_PARAMS+=( --with-modulesdir=/usr/$(exhost --target)/lib )
WAF_SRC_COMPILE_PARAMS+=( -j1 )

src_test() {
    # https://bugzilla.samba.org/show_bug.cgi?id=9787
    edo ln -s libldb.so bin/default/libldb.so.$(ever major)
    edo ln -s libpyldb-util.so bin/default/libpyldb-util.so.$(ever major)

    waf_src_test
}