summaryrefslogtreecommitdiffstats
path: root/debian/traceroute.prerm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:40:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:40:29 +0000
commitb9b66f0ed977be6f30d93514371f9835a1b1069f (patch)
treeff02a25fe7ac43fc854f95204259af273f2b519a /debian/traceroute.prerm
parentAdding upstream version 1:2.1.5. (diff)
downloadtraceroute-debian/1%2.1.5-1.tar.xz
traceroute-debian/1%2.1.5-1.zip
Adding debian version 1:2.1.5-1.debian/1%2.1.5-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/traceroute.prerm')
-rw-r--r--debian/traceroute.prerm32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/traceroute.prerm b/debian/traceroute.prerm
new file mode 100644
index 0000000..b00d32a
--- /dev/null
+++ b/debian/traceroute.prerm
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ remove|upgrade|deconfigure)
+ update-alternatives --remove traceroute /usr/bin/traceroute.db
+
+ for _ALTERNATIVE in traceroute6 lft traceproto
+ do
+ update-alternatives --remove ${_ALTERNATIVE} /usr/bin/${_ALTERNATIVE}.db
+ done
+
+ for _ALTERNATIVE in tcptraceroute
+ do
+ update-alternatives --remove ${_ALTERNATIVE} /usr/sbin/${_ALTERNATIVE}.db
+ done
+ ;;
+
+ failed-upgrade)
+
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0