Merged the patch upstream. -----Original Message----- From: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On Behalf Of Lei Maohui Sent: Monday, January 12, 2015 6:06 AM To: yocto@yoctoproject.org Subject: [yocto] [meta-cgl][PATCH] cluster: add new recipe
This is the development site for several related linux clustering components. Signed-off-by: Lei Maohui <leimao...@cn.fujitsu.com> --- .../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 diff --git a/meta-cgl-common/recipes-cgl/cluster/cluster_3.2.0.bb b/meta-cgl-common/recipes-cgl/cluster/cluster_3.2.0.bb new file mode 100644 index 0000000..2d6b49c --- /dev/null +++ b/meta-cgl-common/recipes-cgl/cluster/cluster_3.2.0.bb @@ -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 yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto