Skip to contentSkip to conversation

crmsh: add new recipe

PATCH New [email protected] 1 participant 1 message Jun 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crmsh: add new recipe

From: Jackie Huang <[email protected]>

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

---
 .../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
new file mode 100644
index 0000000..6e1a291
@@ -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
new file mode 100644
index 0000000..709fbff
@@ -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