[Debian-ha-commits] [resource-agents] 01/01: Include list of agents in package description.

Christoph Berg myon at debian.org
Wed Jul 6 12:22:09 UTC 2016


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

myon pushed a commit to branch master
in repository resource-agents.

commit 559f9539e7183780649634aa14a7f7e0487e641d
Author: Christoph Berg <christoph.berg at credativ.de>
Date:   Wed Jul 6 14:21:40 2016 +0200

    Include list of agents in package description.
---
 debian/changelog |  6 ++++++
 debian/control   | 12 ++++++++----
 debian/rules     | 14 ++++++++++++++
 3 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 58068fc..481c503 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+resource-agents (1:3.9.7-4) UNRELEASED; urgency=medium
+
+  * Include list of agents in package description.
+
+ -- Christoph Berg <christoph.berg at credativ.de>  Wed, 06 Jul 2016 14:21:17 +0200
+
 resource-agents (1:3.9.7-3) unstable; urgency=medium
 
   * Hardwire SHELL in /usr/lib/ocf/lib/heartbeat/ocf-binaries to /bin/bash,
diff --git a/debian/control b/debian/control
index 39edf12..65a07fd 100644
--- a/debian/control
+++ b/debian/control
@@ -25,7 +25,8 @@ Build-Depends: autoconf,
                python,
 #              for systemd.pc:
                systemd [linux-any],
-               xsltproc
+               xsltproc,
+               xml-twig-tools,
 Standards-Version: 3.9.7
 Homepage: https://github.com/ClusterLabs/resource-agents
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-ha/resource-agents.git/
@@ -38,9 +39,12 @@ Replaces: cluster-agents (<= 1:1.0.4-1), rgmanager (<= 3.0.12-2+b1), resource-ag
 Conflicts: cluster-agents (<= 1:1.0.4-1), rgmanager (<= 3.0.12-2+b1), resource-agents-dev (<< 1:3.9.6)
 Provides: resource-agents-dev
 Description: Cluster Resource Agents
- The Cluster Resource Agents are a set of scripts to interface with
- several services to operate in a High Availability environment
- for both Pacemaker and rgmanager resource managers.
+ This package contains cluster resource agents (RAs) compliant with the Open
+ Cluster Framework (OCF) specification, used to interface with various services
+ in a High Availability environment managed by the Pacemaker resource manager.
+ .
+ Agents included:
+ ${agents}
 
 Package: ldirectord
 Priority: extra
diff --git a/debian/rules b/debian/rules
index 8e42328..a08ac05 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,3 +32,17 @@ override_dh_auto_clean:
 	dh_auto_clean
 	rm -f .version .tarball-version
 	find . -name Makefile.in | xargs -r rm
+
+override_dh_gencontrol:
+	set -e; \
+	export OCF_ROOT=$(CURDIR)/debian/resource-agents/usr/lib/ocf; \
+	( \
+	  echo -n "agents="; \
+	  for agent in debian/resource-agents/usr/lib/ocf/resource.d/heartbeat/*; do \
+	    echo "$$agent meta-data ..." >&2; \
+	    desc=$$($$agent meta-data 2>/dev/null | xml_grep --root resource-agent/shortdesc --text_only | head -1); \
+	    echo -n " $$(basename $$agent): $$desc\$${Newline}"; \
+	  done; \
+	  echo \
+	) >> debian/resource-agents.substvars
+	dh_gencontrol

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



More information about the Debian-HA-Commits mailing list