[Glibc-bsd-commits] r1417 - trunk/freebsd-utils/debian
Robert Millan
rmh at costa.debian.org
Fri Mar 31 18:30:30 UTC 2006
Author: rmh
Date: 2006-03-31 18:30:29 +0000 (Fri, 31 Mar 2006)
New Revision: 1417
Added:
trunk/freebsd-utils/debian/kbdcontrol.postrm
Modified:
trunk/freebsd-utils/debian/changelog
trunk/freebsd-utils/debian/kbdcontrol.init.d
trunk/freebsd-utils/debian/kbdcontrol.postinst
Log:
When kbdcontrol is disabled, remove /etc/kbdcontrol.conf in postrm.
Modified: trunk/freebsd-utils/debian/changelog
===================================================================
--- trunk/freebsd-utils/debian/changelog 2006-03-31 13:09:44 UTC (rev 1416)
+++ trunk/freebsd-utils/debian/changelog 2006-03-31 18:30:29 UTC (rev 1417)
@@ -1,4 +1,4 @@
-freebsd-utils (6.0-2.really.5.4-0.2) UNRELEASED; urgency=low
+freebsd-utils (6.0-2.really.5.4-0.2) unreleased; urgency=low
* Automatic, (sort of) user-friendly setup for kbdcontrol.
Modified: trunk/freebsd-utils/debian/kbdcontrol.init.d
===================================================================
--- trunk/freebsd-utils/debian/kbdcontrol.init.d 2006-03-31 13:09:44 UTC (rev 1416)
+++ trunk/freebsd-utils/debian/kbdcontrol.init.d 2006-03-31 18:30:29 UTC (rev 1417)
@@ -18,7 +18,7 @@
if test -e /etc/kbdcontrol.conf ; then
echo -n "Loading console keymap..."
kbdcontrol -l `grep -v ^# /etc/kbdcontrol.conf` < /dev/console
- echo " done."
+ echo "done."
fi
exit 0
Modified: trunk/freebsd-utils/debian/kbdcontrol.postinst
===================================================================
--- trunk/freebsd-utils/debian/kbdcontrol.postinst 2006-03-31 13:09:44 UTC (rev 1416)
+++ trunk/freebsd-utils/debian/kbdcontrol.postinst 2006-03-31 18:30:29 UTC (rev 1417)
@@ -7,18 +7,6 @@
. /usr/share/debconf/confmodule
-# summary of how this script can be called:
-# * <postinst> `configure' <most-recently-configured-version>
-# * <old-postinst> `abort-upgrade' <new version>
-# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-# <new-version>
-# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-# <failed-install-package> <version> `removing'
-# <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-#
-
case "$1" in
configure)
db_get kbdcontrol/keymap
Added: trunk/freebsd-utils/debian/kbdcontrol.postrm
===================================================================
--- trunk/freebsd-utils/debian/kbdcontrol.postrm 2006-03-31 13:09:44 UTC (rev 1416)
+++ trunk/freebsd-utils/debian/kbdcontrol.postrm 2006-03-31 18:30:29 UTC (rev 1417)
@@ -0,0 +1,35 @@
+#! /bin/sh
+# postrm script for #PACKAGE#
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ rm -f /etc/kbdcontrol.conf
+ ;;
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
More information about the Glibc-bsd-commits
mailing list