From 1262c93dbc890bd15307810f17adcce3a7ebd672 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 13 Oct 2014 15:03:26 -0400 Subject: patch: Add maintainer scripts --- diff --git a/patch.pkg/postinst b/patch.pkg/postinst new file mode 100644 index 0000000..acf86ea --- /dev/null +++ b/patch.pkg/postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "x${1}" = 'xconfigure' ]; then + update-alternatives --install /usr/bin/patch patch /usr/bin/patch.gnu 20 +fi diff --git a/patch.pkg/prerm b/patch.pkg/prerm new file mode 100644 index 0000000..bdbfd66 --- /dev/null +++ b/patch.pkg/prerm @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "x${1}" = 'xremove' ]; then + update-alternatives --remove patch /usr/bin/patch.gnu +fi -- cgit v0.9.1