mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-08-13 23:45:54 +00:00
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> (cherry picked from commit 2756ef68c92db20c093ef44460ff0ff7047006ec) Signed-off-by: Armin Kuster <akuster808@gmail.com>
57 lines
2.0 KiB
BlitzBasic
57 lines
2.0 KiB
BlitzBasic
SUMMARY = "The Corosync Cluster Engine and Application Programming Interfaces"
|
|
DESCRIPTION = "This package contains the Corosync Cluster Engine Executive, several default \
|
|
APIs and libraries, default configuration files, and an init script."
|
|
HOMEPAGE = "http://corosync.github.io/corosync/"
|
|
|
|
SECTION = "base"
|
|
|
|
inherit autotools pkgconfig systemd
|
|
|
|
SRC_URI = "http://build.clusterlabs.org/corosync/releases/${BP}.tar.gz \
|
|
file://0001-Include-fcntl.h-for-F_-and-O_-defines.patch \
|
|
"
|
|
SRC_URI[md5sum] = "547fa78704da53aa35912be58d31035f"
|
|
SRC_URI[sha256sum] = "f26e3011309fe4bcce94b1dc20ea8c462f19483a73f3ca62f13b925d011a4ba9"
|
|
|
|
LICENSE = "BSD"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=a85eb4ce24033adb6088dd1d6ffc5e5d"
|
|
|
|
DEPENDS = "groff-native nss libqb"
|
|
|
|
SYSTEMD_SERVICE_${PN} = "corosync.service corosync-notifyd.service"
|
|
SYSTEMD_AUTO_ENABLE = "enable"
|
|
|
|
INITSCRIPT_NAME = "corosync-daemon"
|
|
|
|
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
|
|
|
|
PACKAGECONFIG[systemd] = "--enable-systemd --with-systemddir=${systemd_system_unitdir},--disable-systemd --without-systemddir,systemd"
|
|
|
|
EXTRA_OECONF = "ac_cv_path_BASHPATH=${base_bindir}/bash"
|
|
EXTRA_OEMAKE = "tmpfilesdir_DATA="
|
|
|
|
do_configure_prepend() {
|
|
( cd ${S}
|
|
${S}/autogen.sh )
|
|
}
|
|
|
|
do_install_append() {
|
|
install -d ${D}${sysconfdir}/sysconfig/
|
|
install -m 0644 ${S}/init/corosync.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync
|
|
install -m 0644 ${S}/tools/corosync-notifyd.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync-notifyd
|
|
|
|
rm -rf "${D}${localstatedir}/run"
|
|
|
|
install -d ${D}${sysconfdir}/default/volatiles
|
|
echo "d root root 0755 ${localstatedir}/log/cluster none" > ${D}${sysconfdir}/default/volatiles/05_corosync
|
|
|
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
|
install -d ${D}${sysconfdir}/tmpfiles.d
|
|
echo "d ${localstatedir}/log/cluster - - - -" > ${D}${sysconfdir}/tmpfiles.d/corosync.conf
|
|
fi
|
|
}
|
|
|
|
RDEPENDS_${PN} += "bash"
|
|
|
|
FILES_${PN}-dbg += "${libexecdir}/lcrso/.debug"
|