From 16965f02e779c13e600cde09665cfcc7b4ba56d5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 08 May 2014 13:11:27 -0400 Subject: xz: Add maintainer scripts. --- 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 -- cgit v0.9.1