diff options
author | P. 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) |
commit | 16965f02e779c13e600cde09665cfcc7b4ba56d5 (patch) | |
tree | 1528e781c991d31ba289c29822669fbe011e2c6c | |
parent | 94020c50f9f4b87934aa3fdbe1f2a6c95187da62 (diff) |
xz: Add maintainer scripts.
-rw-r--r-- | xz.pkg/postinst | 8 | ||||
-rw-r--r-- | xz.pkg/prerm | 7 |
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 |