[Debian-ha-commits] [fence-agents] 01/01: Include list of agents in package description.
Christoph Berg
myon at debian.org
Wed Jul 6 11:35:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
myon pushed a commit to branch master
in repository fence-agents.
commit 4c04ee9e32aa07a48aff4f627b30301563fbd917
Author: Christoph Berg <christoph.berg at credativ.de>
Date: Wed Jul 6 13:34:54 2016 +0200
Include list of agents in package description.
---
debian/changelog | 6 ++++++
debian/control | 3 +++
debian/rules | 10 ++++++++++
3 files changed, 19 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 64556e7..1e009b6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+fence-agents (4.0.22-4) UNRELEASED; urgency=medium
+
+ * Include list of agents in package description.
+
+ -- Christoph Berg <christoph.berg at credativ.de> Wed, 06 Jul 2016 13:33:49 +0200
+
fence-agents (4.0.22-3) unstable; urgency=medium
* Add dh_python2 override to compile python files. (Closes: #816270)
diff --git a/debian/control b/debian/control
index ec0138b..07dfe7c 100644
--- a/debian/control
+++ b/debian/control
@@ -50,3 +50,6 @@ Description: Fence Agents for Red Hat Cluster
power management for several devices. They allow failed or
unreachable nodes to be forcibly restarted and removed from the
cluster.
+ .
+ Fence agents included:
+ ${agents}
diff --git a/debian/rules b/debian/rules
index c559256..4a7f21a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -45,3 +45,13 @@ endif
override_dh_python2:
dh_python2
dh_python2 /usr/share/fence
+
+override_dh_gencontrol:
+ # extract agent descriptions for use in debian/control
+ ( echo -n "agents="; \
+ sed -ne 's/<resource-agent name="\(.*\)" shortdesc="\(.*\)" >/\1: \2/p' tests/data/metadata/* | \
+ sed -e 's/\(I.O \)\?\(Fence\|Fencing\) agent for //' | \
+ while read line; do echo -n " $$line\$${Newline}"; done ; \
+ echo ; \
+ ) >> debian/fence-agents.substvars
+ dh_gencontrol
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/fence-agents.git
More information about the Debian-HA-Commits
mailing list