From 9a2e89ae2638bb149220806158a1a8cb6586419c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 11 Jun 2014 18:35:23 -0400 Subject: Manage some utilities with update-alternatives. --- (limited to 'bzip2.pkg') diff --git a/bzip2.pkg/postinst b/bzip2.pkg/postinst new file mode 100644 index 0000000..0239ea7 --- /dev/null +++ b/bzip2.pkg/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ "x${1}" = 'xconfigure' ]; then + for link in bzip2 bunzip2 bzcat; do + update-alternatives --install /usr/bin/${link} ${link} \ + /usr/bin/${link}.bzip2 20 + done +fi diff --git a/bzip2.pkg/prerm b/bzip2.pkg/prerm new file mode 100644 index 0000000..d82eecc --- /dev/null +++ b/bzip2.pkg/prerm @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ "x${1}" = 'xremove' ]; then + for link in bzip2 bunzip2 bzcat; do + update-alternatives --remove ${link} /usr/bin/${link}.bzip2 + done +fi -- cgit v0.9.1