summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-11 07:59:45 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-07-15 15:57:07 +0000
commit8de9e26a0e6f80d1f9c9e2edaa0807a33aa2ebd7 (patch)
tree482df04bc802ae987270680fc93fda98c41cc0dc
parentAdding documentation about current bugs (FIXME). (diff)
downloadcompute-tools-8de9e26a0e6f80d1f9c9e2edaa0807a33aa2ebd7.tar.xz
compute-tools-8de9e26a0e6f80d1f9c9e2edaa0807a33aa2ebd7.zip
debian: Adding divertions for uptime.
Diffstat (limited to '')
-rw-r--r--debian/open-infrastructure-container-tools.links2
-rw-r--r--debian/open-infrastructure-container-tools.postrm24
-rw-r--r--debian/open-infrastructure-container-tools.preinst24
3 files changed, 50 insertions, 0 deletions
diff --git a/debian/open-infrastructure-container-tools.links b/debian/open-infrastructure-container-tools.links
new file mode 100644
index 0000000..2ee27e3
--- /dev/null
+++ b/debian/open-infrastructure-container-tools.links
@@ -0,0 +1,2 @@
+/usr/bin/container-uptime /usr/bin/uptime
+/usr/share/man/man1/container-uptime.1.gz /usr/share/man/man1/uptime.1.gz
diff --git a/debian/open-infrastructure-container-tools.postrm b/debian/open-infrastructure-container-tools.postrm
new file mode 100644
index 0000000..331f534
--- /dev/null
+++ b/debian/open-infrastructure-container-tools.postrm
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ remove)
+ # procps: uptime
+ dpkg-divert --package open-infrastructure-container-tools --quiet --remove --rename --divert /usr/bin/uptime.orig.procps /usr/bin/uptime
+ dpkg-divert --package open-infrastructure-container-tools --quiet --remove --rename --divert /usr/share/man/man1/uptime.orig.procps.1.gz /usr/share/man/man1/uptime.1.gz
+ ;;
+
+ purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/open-infrastructure-container-tools.preinst b/debian/open-infrastructure-container-tools.preinst
new file mode 100644
index 0000000..b2878fa
--- /dev/null
+++ b/debian/open-infrastructure-container-tools.preinst
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ install|upgrade)
+ # procps: uptime
+ dpkg-divert --package open-infrastructure-container-tools --quiet --add --rename --divert /usr/bin/uptime.orig.procps /usr/bin/uptime
+ dpkg-divert --package open-infrastructure-container-tools --quiet --add --rename --divert /usr/share/man/man1/uptime.orig.procps.1.gz /usr/share/man/man1/uptime.1.gz
+ ;;
+
+ abort-upgrade)
+
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0