diff options
author | Roman I Khimov <khimov@altell.ru> | 2010-03-22 18:31:23 +0300 |
---|---|---|
committer | Roman I Khimov <khimov@altell.ru> | 2010-03-29 13:27:59 +0400 |
commit | 08533fd2a8a97bf5efe10e462d761b3221996458 (patch) | |
tree | 811006b4062df5c3407ad3e5fa668e571f78434e /recipes/linux-ha/cluster-glue_1.0.3.bb | |
parent | ba23d4de95a33db5feccd19359bd9b907c2d90bd (diff) |
cluster-glue: add new recipe
Cluster Glue is a set of libraries, tools and utilities suitable for the
Heartbeat/Pacemaker cluster stack. In essence, Glue is everything that is
not the cluster messaging layer (Heartbeat), nor the cluster resource
manager (Pacemaker), nor a Resource Agent.
Signed-off-by: Roman I Khimov <khimov@altell.ru>
Diffstat (limited to 'recipes/linux-ha/cluster-glue_1.0.3.bb')
-rw-r--r-- | recipes/linux-ha/cluster-glue_1.0.3.bb | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/recipes/linux-ha/cluster-glue_1.0.3.bb b/recipes/linux-ha/cluster-glue_1.0.3.bb new file mode 100644 index 0000000000..774b83c09e --- /dev/null +++ b/recipes/linux-ha/cluster-glue_1.0.3.bb @@ -0,0 +1,88 @@ +DESCRIPTION = "Cluster Glue is a set of libraries, tools and utilities suitable for \ +the Heartbeat/Pacemaker cluster stack. In essence, Glue is everything that \ +is not the cluster messaging layer (Heartbeat), nor the cluster resource manager \ +(Pacemaker), nor a Resource Agent." + +LICENSE = "GPL" +DEPENDS = "libxml2 libtool glib-2.0 bzip2 util-linux-ng" + +SRC_URI = " \ + http://hg.linux-ha.org/glue/archive/glue-${PV}.tar.bz2;name=tar \ + file://glue-remove-getpid-check.patch;patch=1 \ + file://volatiles \ + " +SRC_URI[tar.md5sum] = "f13746a8f3e8db1fa9c682d9db892573" +SRC_URI[tar.sha256sum] = "fb1e4b75779849daf0f2c2c93668dd2a33d304307554f3d617b07f1957c61c9f" + +inherit autotools_stage + +S = "${WORKDIR}/Reusable-Cluster-Components-glue-${PV}" + +EXTRA_OECONF = "--with-daemon-user=hacluster --with-daemon-group=haclient" + +do_install_append() { + install -d ${D}${sysconfdir}/default/volatiles + install -m 0644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/04_cluster-glue +} + +pkg_postinst_${PN} () { + set -e + grep haclient /etc/group || addgroup haclient + grep hacluster /etc/passwd || adduser --disabled-password --home=${localstatedir}/lib/heartbeat --ingroup haclient -g "HA cluster" hacluster + /etc/init.d/populate-volatile.sh update +} + +PACKAGES += "\ + ${PN}-plugin-test \ + ${PN}-plugin-test-dbg \ + ${PN}-plugin-test-dev \ + ${PN}-plugin-stonith2 \ + ${PN}-plugin-stonith2-dbg \ + ${PN}-plugin-stonith2-dev \ + ${PN}-plugin-stonith2-ribcl \ + ${PN}-plugin-stonith-external \ + ${PN}-plugin-raexec \ + ${PN}-plugin-raexec-dbg \ + ${PN}-plugin-raexec-dev \ + ${PN}-plugin-interfacemgr \ + ${PN}-plugin-interfacemgr-dbg \ + ${PN}-plugin-interfacemgr-dev \ + ${PN}-lrmtest \ + " + +FILES_${PN} += " \ + /usr/lib/heartbeat/transient-test.sh \ + /usr/lib/heartbeat/logtest \ + /usr/lib/heartbeat/ipctransientserver \ + /usr/lib/heartbeat/base64_md5_test \ + /usr/lib/heartbeat/ipctest \ + /usr/lib/heartbeat/ipctransientclient \ + /usr/lib/heartbeat/ha_logd \ + /usr/lib/heartbeat/lrmd \ + " + +FILES_${PN}-dbg += "/usr/lib/heartbeat/.debug/" + +FILES_${PN}-plugin-test = "/usr/lib/heartbeat/plugins/test/test.so" +FILES_${PN}-plugin-test-dev = "/usr/lib/heartbeat/plugins/test/test.*a" +FILES_${PN}-plugin-test-dbg = "/usr/lib/heartbeat/plugins/test/.debug/" +FILES_${PN}-plugin-stonith2 = " \ + /usr/lib/stonith/plugins/xen0-ha-dom0-stonith-helper \ + /usr/lib/stonith/plugins/stonith2/*.so \ + " +FILES_${PN}-plugin-stonith2-ribcl = "/usr/lib/stonith/plugins/stonith2/ribcl.py" +RDEPENDS_${PN}-plugin-stonith2-ribcl += "python" + +FILES_${PN}-plugin-stonith2-dbg = "/usr/lib/stonith/plugins/stonith2/.debug/" +FILES_${PN}-plugin-stonith2-dev = "/usr/lib/stonith/plugins/stonith2/*.*a" + +FILES_${PN}-plugin-stonith-external = "/usr/lib/stonith/plugins/external/" +FILES_${PN}-plugin-raexec = "/usr/lib/heartbeat/plugins/RAExec/*.so" +FILES_${PN}-plugin-raexec-dev = "/usr/lib/heartbeat/plugins/RAExec/*.*a" +FILES_${PN}-plugin-raexec-dbg = "/usr/lib/heartbeat/plugins/RAExec/.debug/" + +FILES_${PN}-plugin-interfacemgr = "/usr/lib/heartbeat/plugins/InterfaceMgr/generic.so" +FILES_${PN}-plugin-interfacemgr-dev = "/usr/lib/heartbeat/plugins/InterfaceMgr/generic.*a" +FILES_${PN}-plugin-interfacemgr-dbg = "/usr/lib/heartbeat/plugins/InterfaceMgr/.debug/" + +FILES_${PN}-lrmtest = "/usr/share/glue/lrmtest/" |