[Pkg-ganeti-devel] [ganeti] 27/29: Add generated dh control files for 2.10
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Fri Mar 7 10:15:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch master
in repository ganeti.
commit 528be0ee565aabfd1c46d6a0cbf5b7d4e8a6d873
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date: Fri Mar 7 10:46:18 2014 +0200
Add generated dh control files for 2.10
Check the generated files into the repository and don't remove them
during clean.
---
debian/ganeti-2.10.install | 4 ++++
debian/ganeti-2.10.lintian-overrides | 3 +++
debian/ganeti-2.10.postinst | 7 +++++++
debian/ganeti-2.10.prerm | 24 ++++++++++++++++++++++++
debian/ganeti-2.10.templates | 13 +++++++++++++
debian/ganeti-haskell-2.10.install | 4 ++++
debian/ganeti-haskell-2.10.lintian-overrides | 8 ++++++++
debian/ganeti-haskell-2.10.postinst | 7 +++++++
debian/ganeti-haskell-2.10.prerm | 24 ++++++++++++++++++++++++
debian/ganeti-haskell-2.10.templates | 13 +++++++++++++
debian/ganeti-htools-2.10.install | 3 +++
debian/ganeti-htools-2.10.lintian-overrides | 5 +++++
debian/ganeti-htools-2.10.postinst | 7 +++++++
debian/ganeti-htools-2.10.prerm | 24 ++++++++++++++++++++++++
debian/ganeti-htools-2.10.templates | 13 +++++++++++++
debian/rules | 2 --
16 files changed, 159 insertions(+), 2 deletions(-)
diff --git a/debian/ganeti-2.10.install b/debian/ganeti-2.10.install
new file mode 100644
index 0000000..67d1033
--- /dev/null
+++ b/debian/ganeti-2.10.install
@@ -0,0 +1,4 @@
+usr/share/ganeti/2.10
+usr/lib/ganeti/2.10/usr/lib/ganeti
+usr/lib/ganeti/2.10/usr/sbin/ganeti-cleaner
+usr/lib/ganeti/2.10/usr/sbin/ganeti-listrunner
diff --git a/debian/ganeti-2.10.lintian-overrides b/debian/ganeti-2.10.lintian-overrides
new file mode 100644
index 0000000..04dbdff
--- /dev/null
+++ b/debian/ganeti-2.10.lintian-overrides
@@ -0,0 +1,3 @@
+# We only use debconf during prerm to interactively abort installation of
+# packages that are still in use.
+ganeti-2.10: no-debconf-config
diff --git a/debian/ganeti-2.10.postinst b/debian/ganeti-2.10.postinst
new file mode 100644
index 0000000..0ae7a18
--- /dev/null
+++ b/debian/ganeti-2.10.postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
diff --git a/debian/ganeti-2.10.prerm b/debian/ganeti-2.10.prerm
new file mode 100644
index 0000000..b85abe3
--- /dev/null
+++ b/debian/ganeti-2.10.prerm
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ]; then
+ . /usr/share/debconf/confmodule
+
+ if [ /usr/lib/ganeti/default -ef /usr/lib/ganeti/2.10 ]; then
+ db_version 2.0
+ db_fset ganeti-2.10/abort-removal seen false
+ db_subst ganeti-2.10/abort-removal version 2.10
+ db_subst ganeti-2.10/abort-removal package ganeti-2.10
+ db_input critical ganeti-2.10/abort-removal
+ db_go
+ db_get ganeti-2.10/abort-removal
+
+ if [ "$RET" = "true" ]; then
+ echo "Aborting removal on user request"
+ exit 1;
+ fi
+ fi
+fi
+
+#DEBHELPER#
diff --git a/debian/ganeti-2.10.templates b/debian/ganeti-2.10.templates
new file mode 100644
index 0000000..3541fcf
--- /dev/null
+++ b/debian/ganeti-2.10.templates
@@ -0,0 +1,13 @@
+Template: ganeti-2.10/abort-removal
+Type: boolean
+Default: true
+_Description: Abort ${package} removal?
+ You are attempting to remove ${package}, but it seems that the running Ganeti
+ version is still ${version}.
+ .
+ This can happen if you upgrade the ganeti package to a new minor version, but
+ have not run `gnt-cluster upgrade' yet. Removing ${package} will cause Ganeti to
+ stop functioning correctly.
+ .
+ It is highly recommended to abort removal now and upgrade your cluster before
+ removing ${package}.
diff --git a/debian/ganeti-haskell-2.10.install b/debian/ganeti-haskell-2.10.install
new file mode 100644
index 0000000..af1aa2a
--- /dev/null
+++ b/debian/ganeti-haskell-2.10.install
@@ -0,0 +1,4 @@
+usr/lib/ganeti/2.10/usr/sbin/ganeti-confd
+usr/lib/ganeti/2.10/usr/sbin/ganeti-mond
+usr/lib/ganeti/2.10/usr/sbin/ganeti-luxid
+usr/lib/ganeti/2.10/usr/lib/ganeti/mon-collector
diff --git a/debian/ganeti-haskell-2.10.lintian-overrides b/debian/ganeti-haskell-2.10.lintian-overrides
new file mode 100644
index 0000000..81ea258
--- /dev/null
+++ b/debian/ganeti-haskell-2.10.lintian-overrides
@@ -0,0 +1,8 @@
+ganeti-haskell-2.10: hardening-no-fortify-functions usr/lib/ganeti/2.10/usr/sbin/ganeti-confd
+ganeti-haskell-2.10: hardening-no-fortify-functions usr/lib/ganeti/2.10/usr/sbin/ganeti-luxid
+ganeti-haskell-2.10: hardening-no-fortify-functions usr/lib/ganeti/2.10/usr/sbin/ganeti-mond
+ganeti-haskell-2.10: hardening-no-fortify-functions usr/lib/ganeti/2.10/usr/lib/ganeti/mon-collector
+
+# We only use debconf during prerm to interactively abort installation of
+# packages that are still in use.
+ganeti-haskell-2.10: no-debconf-config
diff --git a/debian/ganeti-haskell-2.10.postinst b/debian/ganeti-haskell-2.10.postinst
new file mode 100644
index 0000000..0ae7a18
--- /dev/null
+++ b/debian/ganeti-haskell-2.10.postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
diff --git a/debian/ganeti-haskell-2.10.prerm b/debian/ganeti-haskell-2.10.prerm
new file mode 100644
index 0000000..032397c
--- /dev/null
+++ b/debian/ganeti-haskell-2.10.prerm
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ]; then
+ . /usr/share/debconf/confmodule
+
+ if [ /usr/lib/ganeti/default -ef /usr/lib/ganeti/2.10 ]; then
+ db_version 2.0
+ db_fset ganeti-haskell-2.10/abort-removal seen false
+ db_subst ganeti-haskell-2.10/abort-removal version 2.10
+ db_subst ganeti-haskell-2.10/abort-removal package ganeti-haskell-2.10
+ db_input critical ganeti-haskell-2.10/abort-removal
+ db_go
+ db_get ganeti-haskell-2.10/abort-removal
+
+ if [ "$RET" = "true" ]; then
+ echo "Aborting removal on user request"
+ exit 1;
+ fi
+ fi
+fi
+
+#DEBHELPER#
diff --git a/debian/ganeti-haskell-2.10.templates b/debian/ganeti-haskell-2.10.templates
new file mode 100644
index 0000000..7443b86
--- /dev/null
+++ b/debian/ganeti-haskell-2.10.templates
@@ -0,0 +1,13 @@
+Template: ganeti-haskell-2.10/abort-removal
+Type: boolean
+Default: true
+_Description: Abort ${package} removal?
+ You are attempting to remove ${package}, but it seems that the running Ganeti
+ version is still ${version}.
+ .
+ This can happen if you upgrade the ganeti package to a new minor version, but
+ have not run `gnt-cluster upgrade' yet. Removing ${package} will cause Ganeti to
+ stop functioning correctly.
+ .
+ It is highly recommended to abort removal now and upgrade your cluster before
+ removing ${package}.
diff --git a/debian/ganeti-htools-2.10.install b/debian/ganeti-htools-2.10.install
new file mode 100644
index 0000000..ab2179a
--- /dev/null
+++ b/debian/ganeti-htools-2.10.install
@@ -0,0 +1,3 @@
+usr/lib/ganeti/2.10/usr/bin
+usr/share/ganeti/2.10/root/usr/share/man/man1/h*
+usr/lib/ganeti/2.10/usr/lib/ganeti/iallocators/hail
diff --git a/debian/ganeti-htools-2.10.lintian-overrides b/debian/ganeti-htools-2.10.lintian-overrides
new file mode 100644
index 0000000..69d0fab
--- /dev/null
+++ b/debian/ganeti-htools-2.10.lintian-overrides
@@ -0,0 +1,5 @@
+ganeti-htools-2.10: hardening-no-fortify-functions usr/lib/ganeti/2.10/usr/bin/htools
+
+# We only use debconf during prerm to interactively abort installation of
+# packages that are still in use.
+ganeti-htools-2.10: no-debconf-config
diff --git a/debian/ganeti-htools-2.10.postinst b/debian/ganeti-htools-2.10.postinst
new file mode 100644
index 0000000..0ae7a18
--- /dev/null
+++ b/debian/ganeti-htools-2.10.postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
diff --git a/debian/ganeti-htools-2.10.prerm b/debian/ganeti-htools-2.10.prerm
new file mode 100644
index 0000000..eaa052f
--- /dev/null
+++ b/debian/ganeti-htools-2.10.prerm
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ]; then
+ . /usr/share/debconf/confmodule
+
+ if [ /usr/lib/ganeti/default -ef /usr/lib/ganeti/2.10 ]; then
+ db_version 2.0
+ db_fset ganeti-htools-2.10/abort-removal seen false
+ db_subst ganeti-htools-2.10/abort-removal version 2.10
+ db_subst ganeti-htools-2.10/abort-removal package ganeti-htools-2.10
+ db_input critical ganeti-htools-2.10/abort-removal
+ db_go
+ db_get ganeti-htools-2.10/abort-removal
+
+ if [ "$RET" = "true" ]; then
+ echo "Aborting removal on user request"
+ exit 1;
+ fi
+ fi
+fi
+
+#DEBHELPER#
diff --git a/debian/ganeti-htools-2.10.templates b/debian/ganeti-htools-2.10.templates
new file mode 100644
index 0000000..92304b6
--- /dev/null
+++ b/debian/ganeti-htools-2.10.templates
@@ -0,0 +1,13 @@
+Template: ganeti-htools-2.10/abort-removal
+Type: boolean
+Default: true
+_Description: Abort ${package} removal?
+ You are attempting to remove ${package}, but it seems that the running Ganeti
+ version is still ${version}.
+ .
+ This can happen if you upgrade the ganeti package to a new minor version, but
+ have not run `gnt-cluster upgrade' yet. Removing ${package} will cause Ganeti to
+ stop functioning correctly.
+ .
+ It is highly recommended to abort removal now and upgrade your cluster before
+ removing ${package}.
diff --git a/debian/rules b/debian/rules
index aadd83d..69a0845 100755
--- a/debian/rules
+++ b/debian/rules
@@ -53,8 +53,6 @@ override_dh_auto_clean:
rm -f debian/ganeti.default
rm -f debian/ganeti.postinst
rm -f debian/ganeti.postrm
- rm -f debian/*-$(VER).install debian/*-$(VER).prerm debian/*-$(VER).templates debian/*-$(VER).postinst
- rm -f debian/*-$(VER).lintian-overrides
if [ -d doc/html.orig ]; then \
rm -rf doc/html; \
mv doc/html.orig doc/html; \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ganeti/ganeti.git
More information about the Pkg-ganeti-devel
mailing list