[yocto] [meta-cgl][PATCH] crmsh: add new recipe

jackie.huang at windriver.com jackie.huang at windriver.com
Thu Jun 8 20:04:56 PDT 2017


From: Jackie Huang <jackie.huang at windriver.com>

crm shell, a Pacemaker command line interface for
management and configuration.

Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
---
 .../recipes-cgl/crmsh/crmsh/tweaks_for_build.patch | 31 +++++++++++++++++++++
 meta-cgl-common/recipes-cgl/crmsh/crmsh_2.3.2.bb   | 32 ++++++++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch
 create mode 100644 meta-cgl-common/recipes-cgl/crmsh/crmsh_2.3.2.bb

diff --git a/meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch b/meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch
new file mode 100644
index 0000000..6e1a291
--- /dev/null
+++ b/meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch
@@ -0,0 +1,31 @@
+Upstream-Status: Inappropriate [embedded specific]
+
+Pass option '--catalogs' to xsltproc via a2x to avoid network access.
+And disble xmllint check by option '-L'.
+
+Add option '--install-lib' of python setup.py to install python libraries to
+right place.
+
+Signed-off-by: Kai Kang <kai.kang at windriver.com>
+---
+diff --git a/Makefile.am b/Makefile.am
+index d89affb..0f2361f 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -47,7 +47,7 @@ endif
+ 	$(ASCIIDOC) --unsafe --backend=xhtml11 $<
+ 
+ %.8: %.8.adoc
+-	a2x -f manpage $<
++	a2x --xsltproc-opts=--catalogs -L -f manpage $<
+ 
+ # Shared data files
+ install-data-hook:
+@@ -79,6 +79,7 @@ install-exec-local:
+ 	-mkdir -p $(DESTDIR)$(pkgpythondir)
+ 	$(PYTHON) $(srcdir)/setup.py install \
+ 		$(python_prefix) \
++		--install-lib $(pythondir) \
+ 		--record $(DESTDIR)$(pkgpythondir)/install_files.txt \
+ 		--verbose
+ 	$(INSTALL) -d -m 770 $(DESTDIR)/$(CRM_CACHE_DIR)
diff --git a/meta-cgl-common/recipes-cgl/crmsh/crmsh_2.3.2.bb b/meta-cgl-common/recipes-cgl/crmsh/crmsh_2.3.2.bb
new file mode 100644
index 0000000..709fbff
--- /dev/null
+++ b/meta-cgl-common/recipes-cgl/crmsh/crmsh_2.3.2.bb
@@ -0,0 +1,32 @@
+SUMMARY = "Pacemaker command line interface for management and configuration"
+DESCRIPTION = "crm shell, a Pacemaker command line interface for management and configuration"
+
+HOMEPAGE = "https://crmsh.github.io"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+
+DEPENDS = "asciidoc-native \
+           docbook-xsl-stylesheets-native \
+           libxslt-native \
+           python-setuptools-native \
+           "
+RDEPENDS_${PN} = "pacemaker python-lxml gawk"
+
+SRC_URI = "https://github.com/ClusterLabs/crmsh/archive/${PV}.tar.gz;downloadfilename=${BP}.tar.gz \
+           file://tweaks_for_build.patch \
+          "
+
+SRC_URI[md5sum] = "0a475d3c56a158dc991de61a26450eb5"
+SRC_URI[sha256sum] = "ac78b7786f6a52cc3d86b3d80b2d8627e84873330cd4846d5ea48869189ad864"
+
+inherit autotools-brokensep distutils-base
+
+export HOST_SYS
+export BUILD_SYS
+
+# Allow to process DocBook documentations without requiring
+# network accesses for the dtd and stylesheets
+export SGML_CATALOG_FILES = "${STAGING_DATADIR_NATIVE}/xml/docbook/xsl-stylesheets/catalog.xml"
+
+FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/${BPN}"
-- 
2.11.0




More information about the yocto mailing list