Skip to contentSkip to conversation

cluster: add new recipe

PATCH In review Lei Maohui 2 participants 3 messages Jan 12, 2015 – Jan 14, 2015

lore
Share & tools
lore

Lei Maohui

author
#0 lore raw

PATCH 1/1 cluster: add new recipe

This is the development site for several related linux clustering components.

---
 .../recipes-cgl/cluster/cluster_3.2.0.bb           | 63 ++++++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100644 meta-cgl-common/recipes-cgl/cluster/cluster_3.2.0.bb
meta-cgl-common/recipes-cgl/cluster/cluster_3.2.0.bb new file +63 -0
new file mode 100644
index 0000000..2d6b49c
@@ -0,0 +1,63 @@
+Summanry = "Red Hat Cluster"
+DESCRIPTION = "Red Hat Cluster"
+SECTION = "libs"
+HOMEPAGE = "https://fedorahosted.org/cluster/wiki/HomePage"
+
+SRC_URI = "https://fedorahosted.org/releases/c/l/cluster/${BP}.tar.xz"
+
+SRC_URI[md5sum] = "3f496dbecaea367af5a5e81d2e8dcab8"
+
+LICENSE = "GPL-2.0 LGPL-2.0" 
+LIC_FILES_CHKSUM = "file://doc/README.licence;md5=ee8ae43af5ea09f12ca7f7a649764cb0" 
+
+PR = "r1" 
+
+DEPENDS = "corosync dbus openldap openais libxml2 ncurses perl zlib"
+
+FILES_${PN} += "/lib/udev/rules.d/51-dlm.rules \
+    ${localstatedir}/run "
+FILES_${PN}-doc += "/usr/share/man3/* /usr/share/man8/*"
+
+do_configure () {
+    CFLAGS="${TARGET_CFLAGS}"       \
+    CCFLAGS="${TARGET_CFLAGS}"      \
+    CXXFLAGS="${TARGET_CFLAGS}"     \
+    ./configure \
+        --without_rgmanager \
+        --disable_kernel_check \
+        --without_cman \
+        --without_fence \
+        --without_bindings \
+        --without_group \
+        --without_config \
+        2>&1
+}
+
+do_compile () {
+    pwd
+    CFLAGS="${TARGET_CFLAGS}" \
+    make libdir=${STAGING_LIBDIR} incdir=${STAGING_INCDIR}          \
+    CC=${TARGET_SYS}-gcc
+}
+do_install () {
+    rm -rf ${D}
+    make install DESTDIR=${D} libdir=${D}/usr/lib sbindir=${D}/usr/sbin \
+                 mandir=${D}/usr/share docdir=${D}/usr/share/doc
+
+    ## tree fix up
+    # /etc/sysconfig/cman
+    mkdir -p ${D}/etc/sysconfig
+
+    # logrotate name
+    mv ${D}/etc/logrotate.d/cluster ${D}/etc/logrotate.d/cman
+    # fix library permissions or strip helpers won't work.
+    find ${D} -name "lib*.so.*" -exec chmod 0755 {} \;
+    # fix lcrso permissions or strip helpers won't work.
+    find ${D} -name "*.lcrso" -exec chmod 0755 {} \;
+    # remove docs
+    rm -rf ${D}${datadir}/doc/cluster
+    rm -rf ${D}${localstatedir}/run
+    rm -rf ${D}${localstatedir}/lib
+    rm -rf ${D}${localstatedir}/log
+    rmdir --ignore-fail-on-non-empty ${D}${localstatedir}
+}
Signature · 1 line
1.8.4.2
#1 lore raw

Thank you for the patch. I will merge it as soon as possible.
Also I believe there is an alternative pacemaker solution already integrated, but this package is very welcomed.
In fact any alternative solution to any already available packages is good, but maybe more information about each pachage should be included in the patch description.

Alex Vaduva

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Lei Maohui
Sent: Monday, January 12, 2015 6:06 AM
To: [email protected]
Subject: [yocto] [meta-cgl][PATCH] cluster: add new recipe

This is the development site for several related linux clustering components.

---
 .../recipes-cgl/cluster/cluster_3.2.0.bb           | 63 ++++++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100644 meta-cgl-common/recipes-cgl/cluster/cluster_3.2.0.bb
meta-cgl-common/recipes-cgl/cluster/cluster_3.2.0.bb new file +62 -0
new file mode 100644
index 0000000..2d6b49c
@@ -0,0 +1,63 @@
+Summanry = "Red Hat Cluster"
+DESCRIPTION = "Red Hat Cluster"
+SECTION = "libs"
+HOMEPAGE = "https://fedorahosted.org/cluster/wiki/HomePage"
+
+SRC_URI = "https://fedorahosted.org/releases/c/l/cluster/${BP}.tar.xz"
+
+SRC_URI[md5sum] = "3f496dbecaea367af5a5e81d2e8dcab8"
+
+LICENSE = "GPL-2.0 LGPL-2.0" 
+LIC_FILES_CHKSUM = "file://doc/README.licence;md5=ee8ae43af5ea09f12ca7f7a649764cb0" 
+
+PR = "r1" 
+
+DEPENDS = "corosync dbus openldap openais libxml2 ncurses perl zlib"
+
+FILES_${PN} += "/lib/udev/rules.d/51-dlm.rules \
+    ${localstatedir}/run "
+FILES_${PN}-doc += "/usr/share/man3/* /usr/share/man8/*"
+
+do_configure () {
+    CFLAGS="${TARGET_CFLAGS}"       \
+    CCFLAGS="${TARGET_CFLAGS}"      \
+    CXXFLAGS="${TARGET_CFLAGS}"     \
+    ./configure \
+        --without_rgmanager \
+        --disable_kernel_check \
+        --without_cman \
+        --without_fence \
+        --without_bindings \
+        --without_group \
+        --without_config \
+        2>&1
+}
+
+do_compile () {
+    pwd
+    CFLAGS="${TARGET_CFLAGS}" \
+    make libdir=${STAGING_LIBDIR} incdir=${STAGING_INCDIR}          \
+    CC=${TARGET_SYS}-gcc
+}
+do_install () {
+    rm -rf ${D}
+    make install DESTDIR=${D} libdir=${D}/usr/lib sbindir=${D}/usr/sbin \
+                 mandir=${D}/usr/share docdir=${D}/usr/share/doc
+
+    ## tree fix up
+    # /etc/sysconfig/cman
+    mkdir -p ${D}/etc/sysconfig
+
+    # logrotate name
+    mv ${D}/etc/logrotate.d/cluster ${D}/etc/logrotate.d/cman
+    # fix library permissions or strip helpers won't work.
+    find ${D} -name "lib*.so.*" -exec chmod 0755 {} \;
+    # fix lcrso permissions or strip helpers won't work.
+    find ${D} -name "*.lcrso" -exec chmod 0755 {} \;
+    # remove docs
+    rm -rf ${D}${datadir}/doc/cluster
+    rm -rf ${D}${localstatedir}/run
+    rm -rf ${D}${localstatedir}/lib
+    rm -rf ${D}${localstatedir}/log
+    rmdir --ignore-fail-on-non-empty ${D}${localstatedir} }

--
1.8.4.2

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw
In reply to Lei Maohui

Merged the patch upstream.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Lei Maohui
Sent: Monday, January 12, 2015 6:06 AM
To: [email protected]
Subject: [yocto] [meta-cgl][PATCH] cluster: add new recipe

This is the development site for several related linux clustering components.

---
 .../recipes-cgl/cluster/cluster_3.2.0.bb           | 63 ++++++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100644 meta-cgl-common/recipes-cgl/cluster/cluster_3.2.0.bb
meta-cgl-common/recipes-cgl/cluster/cluster_3.2.0.bb new file +62 -0
new file mode 100644
index 0000000..2d6b49c
@@ -0,0 +1,63 @@
+Summanry = "Red Hat Cluster"
+DESCRIPTION = "Red Hat Cluster"
+SECTION = "libs"
+HOMEPAGE = "https://fedorahosted.org/cluster/wiki/HomePage"
+
+SRC_URI = "https://fedorahosted.org/releases/c/l/cluster/${BP}.tar.xz"
+
+SRC_URI[md5sum] = "3f496dbecaea367af5a5e81d2e8dcab8"
+
+LICENSE = "GPL-2.0 LGPL-2.0" 
+LIC_FILES_CHKSUM = "file://doc/README.licence;md5=ee8ae43af5ea09f12ca7f7a649764cb0" 
+
+PR = "r1" 
+
+DEPENDS = "corosync dbus openldap openais libxml2 ncurses perl zlib"
+
+FILES_${PN} += "/lib/udev/rules.d/51-dlm.rules \
+    ${localstatedir}/run "
+FILES_${PN}-doc += "/usr/share/man3/* /usr/share/man8/*"
+
+do_configure () {
+    CFLAGS="${TARGET_CFLAGS}"       \
+    CCFLAGS="${TARGET_CFLAGS}"      \
+    CXXFLAGS="${TARGET_CFLAGS}"     \
+    ./configure \
+        --without_rgmanager \
+        --disable_kernel_check \
+        --without_cman \
+        --without_fence \
+        --without_bindings \
+        --without_group \
+        --without_config \
+        2>&1
+}
+
+do_compile () {
+    pwd
+    CFLAGS="${TARGET_CFLAGS}" \
+    make libdir=${STAGING_LIBDIR} incdir=${STAGING_INCDIR}          \
+    CC=${TARGET_SYS}-gcc
+}
+do_install () {
+    rm -rf ${D}
+    make install DESTDIR=${D} libdir=${D}/usr/lib sbindir=${D}/usr/sbin \
+                 mandir=${D}/usr/share docdir=${D}/usr/share/doc
+
+    ## tree fix up
+    # /etc/sysconfig/cman
+    mkdir -p ${D}/etc/sysconfig
+
+    # logrotate name
+    mv ${D}/etc/logrotate.d/cluster ${D}/etc/logrotate.d/cman
+    # fix library permissions or strip helpers won't work.
+    find ${D} -name "lib*.so.*" -exec chmod 0755 {} \;
+    # fix lcrso permissions or strip helpers won't work.
+    find ${D} -name "*.lcrso" -exec chmod 0755 {} \;
+    # remove docs
+    rm -rf ${D}${datadir}/doc/cluster
+    rm -rf ${D}${localstatedir}/run
+    rm -rf ${D}${localstatedir}/lib
+    rm -rf ${D}${localstatedir}/log
+    rmdir --ignore-fail-on-non-empty ${D}${localstatedir} }

--
1.8.4.2

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto