crmsh: add new recipe
PATCH 1/1 crmsh: add new recipe
From: Jackie Huang <[email protected]>
crm shell, a Pacemaker command line interface for
management and configuration.
Signed-off-by Jackie Huang <[email protected]>
--- .../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
meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch new file +31 -0
@@ -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 <[email protected]> +--- +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)
meta-cgl-common/recipes-cgl/crmsh/crmsh_2.3.2.bb new file +32 -0
@@ -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}"
Signature · 1 line
2.11.0