All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-cgl][PATCH] crmsh: add new recipe
@ 2017-06-09  3:04 jackie.huang
  0 siblings, 0 replies; only message in thread
From: jackie.huang @ 2017-06-09  3:04 UTC (permalink / raw)
  To: yocto

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

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

Signed-off-by: Jackie Huang <jackie.huang@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@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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-09  3:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-09  3:04 [meta-cgl][PATCH] crmsh: add new recipe jackie.huang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.