[Debian-ha-commits] [crmsh] 02/02: Imported Debian patch 2.2.0~rc2+git.115.g0e24f25-1

Richard Winters devrik-guest at moszumanska.debian.org
Tue Apr 14 22:08:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

devrik-guest pushed a commit to branch master
in repository crmsh.

commit c620ee0a930c03ea19feea2ef1ef428d8d5798d7
Author: Richard B Winters <rik at mmogp.com>
Date:   Wed Mar 25 00:35:08 2015 -0400

    Imported Debian patch 2.2.0~rc2+git.115.g0e24f25-1
---
 debian/README.Debian  | 12 +++++++++
 debian/README.source  |  9 +++++++
 debian/changelog      |  5 ++++
 debian/compat         |  1 +
 debian/control        | 16 ++++++++++++
 debian/copyright      | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/crmsh.manpages |  2 ++
 debian/docs           |  5 ++++
 debian/postinst       | 48 +++++++++++++++++++++++++++++++++++
 debian/prerm          | 43 +++++++++++++++++++++++++++++++
 debian/pycompat       |  1 +
 debian/rules          | 66 ++++++++++++++++++++++++++++++++++++++++++++++++
 debian/source/format  |  1 +
 debian/watch          |  4 +++
 14 files changed, 283 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..161854d
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,12 @@
+crmsh for Debian
+----------------
+
+ * This package is mostly maintained through the use of debhelper, we do have  
+   to manually specify the manpages via "debian/crmsh.manpages".
+ * This package also contains a watch file targeting Upstream Github.com repo.
+ * This package required renaming for rc releases, as Upstream does not use a  
+   proper version number for comparison (i.e. they use "-rc2" instead of "~rc2"
+ * Packaging requires the use of AsciiDoctor to convert the ".adoc" files to the
+   manpage format; in order to provide manual pages for Debian.
+   
+ -- Richard B Winters <rik at mmogp.com>  Wed, 25 Mar 2015 00:35:08 -0400
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..bb06bb2
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+crmsh for Debian
+----------------
+
+This package contains source from Upstreams' master branch, along with updates
+that I submitted to upstream, in order to make building from source compatible
+with Debian.
+
+ -- Richard B Winters <rik at mmogp.com>  Wed, 25 Mar 2015 00:35:08 -0400
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..ee1701f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+crmsh (2.2.0~rc2+git.115.g0e24f25-1) unstable; urgency=low
+
+  * Initial release (Closes: #781173)
+
+ -- Richard B Winters <rik at mmogp.com>  Wed, 25 Mar 2015 00:35:08 -0400
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a7c9222
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,16 @@
+Source: crmsh
+Section: admin
+Priority: optional
+Maintainer: Richard B Winters <rik at mmogp.com>
+Build-Depends: debhelper (>= 9), dh-autoreconf (>=10), dh-python, python-all (>= 2.6.6-3~), python-setuptools, asciidoc (>=8.6.9)
+Standards-Version: 3.9.6
+Homepage: http://crmsh.github.io/
+
+Package: crmsh
+Architecture: any
+Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python2.7 (>=2.7.9), python-lxml (>=3.4.0)
+Description: CLI for HA cluster management
+ Command-line interface for High-Availability cluster management on GNU/Linux 
+ systems.
+ .
+ crmsh supports the Corosync/Pacemaker cluster stack.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fe44f03
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,70 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: crmsh
+Source: http://github.com/clusterlabs/crmsh
+
+Files: *
+Copyright: (c) 2008-2015 Upstream Authors (From AUTHORS)
+           afederic <afederic[at]gmail[dot]com>
+           Andrew Beekhof <andrew[at]beekhof[dot]net>
+           Borislav Borisov <borislav[dot]v[dot]borisov[at]gmail[dot]com>
+           Christian Seiler <christian[at]iwakd[dot]de>
+           Dejan Muhamedagic <dejan[at]suse[dot]de>
+           Federica Teodori <federica[dot]teodori[at]googlemail[dot]com>
+           Florian Haas <florian[dot]haas[at]linbit[dot]com>
+           Goldwyn Rodrigues <rgoldwyn[at]novell[dot]com>
+           Hideo Yamauchi <renayama19661014[at]ybb[dot]ne[dot]jp>
+           Holger Teutsch <holger[dot]teutsch[at]web[dot]de>
+           Kazunori INOUE <kazunori[dot]inoue3[at]gmail[dot]com>
+           Keisuke MORI <keisuke[dot]mori+ha[at]gmail[dot]com>
+           Kristoffer Gronlund <kgronlund[at]suse[dot]com>
+           Lars Ellenberg <lars[dot]ellenberg[at]linbit[dot]com>
+           Lars Marowsky-Brée <lmb[at]suse[dot]de>
+           Michael Prokop <devnull[at]localhost>
+           NAKAHIRA Kazutomo <nakahira[dot]kazutomo[at]oss[dot]ntt[dot]co[dot]jp>
+           nozawat <nozawat[at]gmail[dot]com>
+           renayama19661014 <renayama19661014[at]ybb[dot]ne[dot]jp>
+           Richard B Winters <rik[at]mmogp[dot]com>
+           seabres <rainer[dot]brestan[at]gmx[dot]net>
+           Tim Serong <tserong[at]suse[dot]com>
+           Vincenzo Pii <piiv[at]zhaw[dot]ch>
+           Vladislav Bogdanov <bubble[at]hoster-ok[dot]com>
+           Xia Li <XLi[at]suse[dot]com>
+           Xinwei Hu <xwhu[at]novell[dot]com>
+           Yan Gao <ygao[at]suse[dot]com>
+           Yuusuke IIDA <iidayuus[at]intellilink[dot]co[dot]jp>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+
+Files: debian/*
+Copyright: 2015 Richard B Winters <rik at mmogp.com>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
\ No newline at end of file
diff --git a/debian/crmsh.manpages b/debian/crmsh.manpages
new file mode 100644
index 0000000..eeab694
--- /dev/null
+++ b/debian/crmsh.manpages
@@ -0,0 +1,2 @@
+doc/crm.8
+doc/crmsh_hb_report.8
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..27149e2
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,5 @@
+NEWS
+README.dev
+README.md
+requirements.txt
+TODO
diff --git a/debian/postinst b/debian/postinst
new file mode 100755
index 0000000..0f768e4
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,48 @@
+#!/bin/sh
+# postinst script for crmsh
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+# source debconf library
+. /usr/share/debconf/confmodule
+
+case "$1" in
+
+  configure)
+    # Compile bytecode for all of the .py files
+    python -m compileall /usr/lib/python2.7/dist-packages/crmsh
+  ;;
+
+  abort-upgrade|abort-remove|abort-deconfigure)
+    exit 0
+  ;;
+
+  *)
+    echo "postinst called with unknown argument \`$1'" >&2
+    exit 1
+  ;;
+
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+db_stop
+
+exit 0
\ No newline at end of file
diff --git a/debian/prerm b/debian/prerm
new file mode 100755
index 0000000..826e12d
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,43 @@
+#!/bin/sh
+# prerm script for crmsh
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+# source debconf library
+. /usr/share/debconf/confmodule
+
+case "$1" in
+  remove|upgrade|deconfigure)
+    # remove compiled bytecode
+    rm -R /usr/lib/python2.7/dist-packages/crmsh/*.pyc 2>/dev/null >/dev/null || true
+  ;;
+
+  failed-upgrade)
+  ;;
+
+  *)
+    echo "prerm called with unknown argument \`$1'" >&2
+    exit 1
+  ;;
+  
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/pycompat b/debian/pycompat
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/debian/pycompat
@@ -0,0 +1 @@
+2
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..690d96e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,66 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+DH_VERBOSE = 1
+
+# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+# see FEATURE AREAS in dpkg-buildflags(1)
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# main packaging script based on dh7 syntax
+%:
+	dh $@ --with autoreconf,python2
+
+# Because of the fix in crmsh which allows Debian users to build
+# from source, we need to override this option and supply the 
+# library path for python modules to be installed to.
+#python_prefix = --prefix=$(CURDIR)/debian/crmsh/usr
+
+override_dh_auto_install:
+# This first step here does the py install after the py build was already
+# completed. We need to manually set the destinations, python-prefix, as
+# well as ensure that python2 is listed in the main packaging script above.
+	mkdir -p $(CURDIR)/debian/crmsh/usr/lib/python2.7/dist-packages/crmsh
+	python $(CURDIR)/setup.py install \
+		--prefix=$(CURDIR)/debian/crmsh/usr \
+		--record $(CURDIR)/debian/crmsh/usr/lib/python2.7/dist-packages/crmsh/install_files.txt \
+		--verbose
+# make install DESTDIR=$(CURDIR)/debian/crmsh
+	install -d -m 770 $(CURDIR)/debian/crmsh
+# We cant forget about the  conf file
+	mkdir -p -m 770 $(CURDIR)/debian/crmsh/etc/crm
+	cp $(CURDIR)/crm.conf $(CURDIR)/debian/crmsh/etc/crm
+# Or the binary itself
+	mkdir -p -m 770 $(CURDIR)/debian/crmsh/usr/sbin
+	cp $(CURDIR)/crm $(CURDIR)/debian/crmsh/usr/sbin
+# Copy our scripts to /usr/share/crmsh/scripts
+	mkdir -p -m 770 $(CURDIR)/debian/crmsh/usr/share/crmsh
+	cp -R $(CURDIR)/scripts $(CURDIR)/debian/crmsh/usr/share/crmsh
+# Copy our templates to /usr/share/crmsh/templates
+	cp -R $(CURDIR)/templates $(CURDIR)/debian/crmsh/usr/share/crmsh
+# Copy our utils to /usr/share/crmsh/utils
+	cp -R $(CURDIR)/utils $(CURDIR)/debian/crmsh/usr/share/crmsh
+# Copy our tests to /usr/share/crmsh/test
+	cp -R $(CURDIR)/test $(CURDIR)/debian/crmsh/usr/share/crmsh
+# Copy our hb_reporting utils to /usr/share/crmsh
+	cp $(CURDIR)/hb_report/*.sh $(CURDIR)/debian/crmsh/usr/share/crmsh
+	cp $(CURDIR)/hb_report/hb_report $(CURDIR)/debian/crmsh/usr/share/crmsh
+	chown root:root $(CURDIR)/debian/crmsh/usr/share/crmsh/hb_report
+	chmod 755 $(CURDIR)/debian/crmsh/usr/share/crmsh/hb_report
+# Remove bytecode (we'll compile it on end users machine post-install)
+	rm $(CURDIR)/debian/crmsh/usr/lib/python2.7/dist-packages/crmsh/*.pyc 2>/dev/null >/dev/null || true
+	rm -rf $(CURDIR)/build
+
+override_dh_installdocs:
+	dh_installdocs
+	cp $(CURDIR)/doc/*.adoc $(CURDIR)/debian/crmsh/usr/share/crmsh
+	rm -rf $(CURDIR)/doc/*.html
+	rm -rf $(CURDIR)/doc/*.html
+	
+override_dh_installman:
+	dh_installman
+	rm -rf $(CURDIR)/doc/*.8
+	
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0aefa13
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/ \
+  https://github.com/ClusterLabs/crmsh/releases .*/v?(\d\S*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/crmsh.git



More information about the Debian-HA-Commits mailing list