r4894 - packages/trunk/chocolate-doom/debian
Jon Dowland
jmtd-guest at alioth.debian.org
Tue Dec 11 11:07:32 UTC 2007
Author: jmtd-guest
Date: 2007-12-11 11:07:32 +0000 (Tue, 11 Dec 2007)
New Revision: 4894
Added:
packages/trunk/chocolate-doom/debian/chocolate-doom.postinst
packages/trunk/chocolate-doom/debian/chocolate-doom.prerm
Log:
pre/post inst/rm for "doom" alternative
Added: packages/trunk/chocolate-doom/debian/chocolate-doom.postinst
===================================================================
--- packages/trunk/chocolate-doom/debian/chocolate-doom.postinst (rev 0)
+++ packages/trunk/chocolate-doom/debian/chocolate-doom.postinst 2007-12-11 11:07:32 UTC (rev 4894)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ configure|abort-upgrade)
+ update-alternatives --install /usr/games/doom \
+ doom \
+ /usr/games/chocolate-doom \
+ 50
+ ;;
+
+ abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Added: packages/trunk/chocolate-doom/debian/chocolate-doom.prerm
===================================================================
--- packages/trunk/chocolate-doom/debian/chocolate-doom.prerm (rev 0)
+++ packages/trunk/chocolate-doom/debian/chocolate-doom.prerm 2007-12-11 11:07:32 UTC (rev 4894)
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ remove)
+ update-alternatives --remove doom /usr/games/chocolate-doom
+ ;;
+ upgrade|deconfigure|failed-upgrade)
+ ;;
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
More information about the Pkg-games-commits
mailing list