diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-09-20 15:16:20 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-09-21 13:46:46 -0700 |
commit | 5486dcbf08200c22b6086d37055fb64de423eabe (patch) | |
tree | 80ff1f94fd04044e221203c773cccf655f96e0a7 /recipes/corosync/corosync_1.2.8.bb | |
parent | f990853e39a4707cd81b0c15e96ef78461b7d90c (diff) | |
download | openembedded-5486dcbf08200c22b6086d37055fb64de423eabe.tar.gz |
corosync: Fix compilation
Update to 1.2.8
Add corosync-docs.patch to fix html doc compilation
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/corosync/corosync_1.2.8.bb')
-rw-r--r-- | recipes/corosync/corosync_1.2.8.bb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes/corosync/corosync_1.2.8.bb b/recipes/corosync/corosync_1.2.8.bb new file mode 100644 index 0000000000..c3e4290009 --- /dev/null +++ b/recipes/corosync/corosync_1.2.8.bb @@ -0,0 +1,42 @@ +DESCRIPTION = "OSI Certified implementation of a complete cluster engine" +LICENSE = "BSD" +DEPENDS = "groff-native" + +PR = "r0" + +SRC_URI = " \ + ftp://ftp@corosync.org/downloads/corosync-${PV}/corosync-${PV}.tar.gz \ + file://fix-lcrso-linkage.patch \ + file://corosync-docs.patch \ + file://init \ + file://corosync.conf \ + file://volatiles \ + file://fix-define-semun-union.patch \ + " +SRC_URI[md5sum] = "43e97ef0d964ccb4063f40a4478eb679" +SRC_URI[sha256sum] = "424b0590e52a08cf9066f9edbac4edf84e9d9bff54dd5036fb681d917db02bc8" + +inherit autotools update-rc.d + +INITSCRIPT_NAME = "corosync-daemon" + +EXTRA_OECONF = "--disable-nss" + +FILES_${PN}-dbg += "${libexecdir}/lcrso/.debug" + +do_install_append() { + install -d ${D}/${sysconfdir}/init.d + install -d ${D}${sysconfdir}/default/volatiles + # Original init script is too bashy + rm -f ${D}/${sysconfdir}/init.d/corosync + install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/corosync-daemon + install -m 0644 ${WORKDIR}/corosync.conf ${D}/${sysconfdir}/corosync/corosync.conf.example + install -m 0644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/05_corosync +} + +pkg_postinst_${PN} () { + set -e + grep haclient /etc/group || addgroup haclient + grep hacluster /etc/passwd || adduser --disabled-password --home=/var/lib/heartbeat --ingroup haclient -g "HA cluster" hacluster + /etc/init.d/populate-volatile.sh update +} |