[Forensics-changes] [SCM] debian-forensics/tct branch, debian-sid, updated. upstream/1.18-20-g36a1cd1
Daniel Baumann
daniel at debian.org
Sat Feb 9 23:47:29 UTC 2008
The following commit has been merged in the debian-sid branch:
commit 36a1cd1ab75ccf4ab433ea95498129bb5273e2a8
Author: Daniel Baumann <daniel at debian.org>
Date: Sun Feb 10 00:47:27 2008 +0100
Adding alternatives handling for icat, ils and mactime (Closes: #219010).
diff --git a/debian/tct.postinst b/debian/tct.postinst
new file mode 100644
index 0000000..d7d55f1
--- /dev/null
+++ b/debian/tct.postinst
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ configure)
+ update-alternatives \
+ --install /usr/bin/icat icat /usr/bin/icat-tct 100 \
+ --slave /usr/share/man/man1/icat.1.gz icat.1.gz /usr/share/man/man1/icat-tct.1.gz
+
+ update-alternatives \
+ --install /usr/bin/ils ils /usr/bin/ils-tct 100 \
+ --slave /usr/share/man/man1/ils.1.gz ils.1.gz /usr/share/man/man1/ils-tct.1.gz
+
+ update-alternatives \
+ --install /usr/bin/mactime mactime /usr/bin/mactime-tct 100 \
+ --slave /usr/share/man/man1/mactime.1.gz mactime.1.gz /usr/share/man/man1/mactime-tct.1.gz
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/tct.prerm b/debian/tct.prerm
new file mode 100644
index 0000000..7458426
--- /dev/null
+++ b/debian/tct.prerm
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ remove|upgrade|deconfigure)
+ update-alternatives --remove icat /usr/bin/icat-tct
+ update-alternatives --remove ils /usr/bin/ils-tct
+ update-alternatives --remove mactime /usr/bin/mactime-tct
+ ;;
+
+ failed-upgrade)
+
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
--
debian-forensics/tct
More information about the forensics-changes
mailing list