diff options
Diffstat (limited to 'meta-networking/recipes-support/ctdb/ctdb_2.5.1.bb')
-rw-r--r-- | meta-networking/recipes-support/ctdb/ctdb_2.5.1.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/ctdb/ctdb_2.5.1.bb b/meta-networking/recipes-support/ctdb/ctdb_2.5.1.bb new file mode 100644 index 000000000..3731efd6b --- /dev/null +++ b/meta-networking/recipes-support/ctdb/ctdb_2.5.1.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | DESCRIPTION = "CTDB is a cluster implementation of the TDB database \ | ||
2 | used by Samba and other projects to store temporary data. If an \ | ||
3 | application is already using TDB for temporary data it is very easy \ | ||
4 | to convert that application to be cluster aware and use CTDB instead." | ||
5 | DESCRIPTION = "CTDB is a cluster implementation of the TDB database \ | ||
6 | used by Samba and other projects to store temporary data. If an \ | ||
7 | application is already using TDB for temporary data it is very easy \ | ||
8 | to convert that application to be cluster aware and use CTDB instead." | ||
9 | HOMEPAGE = "https://ctdb.samba.org/" | ||
10 | LICENSE = "GPL-2.0+ & LGPL-3.0+ & GPL-3.0+" | ||
11 | |||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
13 | file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \ | ||
14 | file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \ | ||
15 | " | ||
16 | |||
17 | SRC_URI = "https://ftp.samba.org/pub/${PN}/${BP}.tar.gz \ | ||
18 | file://01-support-cross-compile-for-linux-os.patch \ | ||
19 | file://02-link-rep_snprintf-for-ltdbtool.patch \ | ||
20 | " | ||
21 | |||
22 | SRC_URI[md5sum] = "d0cd91726ff4ca2229e1b21859c94717" | ||
23 | SRC_URI[sha256sum] = "d5bf3f674cae986bb6178b1db215a703ac94adc5f75fadfdcff63dcbb5e98ab5" | ||
24 | |||
25 | inherit autotools-brokensep pkgconfig systemd | ||
26 | |||
27 | PARALLEL_MAKE = "" | ||
28 | |||
29 | DEPENDS += "popt libtevent talloc" | ||
30 | |||
31 | do_configure() { | ||
32 | oe_runconf | ||
33 | } | ||
34 | |||
35 | do_install_append() { | ||
36 | install -d ${D}${systemd_unitdir}/system | ||
37 | install -m 0644 ${S}/config/ctdb.service ${D}${systemd_unitdir}/system | ||
38 | sed -i -e 's,/usr/sbin/,${sbindir}/,' ${D}${systemd_unitdir}/system/ctdb.service | ||
39 | } | ||
40 | |||
41 | SYSTEMD_SERVICE_${PN} = "ctdb.service" | ||
42 | |||
43 | FILES_${PN} += "/run" | ||