summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xz.pkg/postinst8
-rw-r--r--xz.pkg/prerm7
2 files changed, 15 insertions, 0 deletions
diff --git a/xz.pkg/postinst b/xz.pkg/postinst
new file mode 100644
index 0000000..5898f60
--- /dev/null
+++ b/xz.pkg/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ "x${1}" = 'xconfigure' ]; then
+ for link in unxz xzcat lzma unlzma lzcat; do
+ update-alternatives --install /usr/bin/${link} ${link} \
+ /usr/bin/${link}.tuk 20
+ done
+fi
diff --git a/xz.pkg/prerm b/xz.pkg/prerm
new file mode 100644
index 0000000..3008321
--- /dev/null
+++ b/xz.pkg/prerm
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ "x${1}" = 'xremove' ]; then
+ for link in unxz xzcat lzma unlzma lzcat; do
+ update-alternatives --remove ${link} /usr/bin/${link}.tuk
+ done
+fi