summaryrefslogtreecommitdiffstats
path: root/xz.pkg/postinst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-05-08 13:11:27 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-05-08 13:11:27 (EDT)
commit16965f02e779c13e600cde09665cfcc7b4ba56d5 (patch)
tree1528e781c991d31ba289c29822669fbe011e2c6c /xz.pkg/postinst
parent94020c50f9f4b87934aa3fdbe1f2a6c95187da62 (diff)
xz: Add maintainer scripts.
Diffstat (limited to 'xz.pkg/postinst')
-rw-r--r--xz.pkg/postinst8
1 files changed, 8 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