summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@golden-gryphon.com>2013-04-27 11:50:46 -0700
committerManoj Srivastava <srivasta@golden-gryphon.com>2013-04-27 14:30:22 -0700
commitf5452e9ff78e573534f98893b100215ed039ddd3 (patch)
tree5d5c10d639d8675298da71a0c4b5475ac272f0d5
parent0df889374e0509a56e36e0e3b1a5449d069de4d3 (diff)
[master]: Migrated to the new debhelper based packaging system.
Signed-off-by: Manoj Srivastava <srivasta@golden-gryphon.com>
-rw-r--r--debian/changelog104
-rw-r--r--debian/compat1
-rw-r--r--debian/control35
-rw-r--r--debian/copyright33
-rwxr-xr-xdebian/rules22
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch4
-rw-r--r--debian/wm-icons.install9
-rw-r--r--debian/wm-icons.lintian-overrides2
-rwxr-xr-xdebian/wm-icons.postinst247
-rwxr-xr-xdebian/wm-icons.postrm182
11 files changed, 640 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..82ee1c7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,104 @@
+wm-icons (0.4.0-6) experimental; urgency=low
+
+ * New bug fixing release
+ * Bug fix: "wrong code in postrm update-menu hook", thanks to Ian
+ Zimmerman (Closes: #618434).
+
+ -- Manoj Srivastava <srivasta@debian.org> Sat, 27 Apr 2013 02:26:58 -0700
+
+wm-icons (0.4.0-5) unstable; urgency=low
+
+ * A number of minor changes to fix small policy compliance issues.
+
+ -- Manoj Srivastava <srivasta@debian.org> Sun, 01 Nov 2009 17:23:02 -0600
+
+wm-icons (0.4.0-4) unstable; urgency=low
+
+ * [63f3b69]: [debiandir] Remove autogenerated files on clean
+ Remove all the files regenerated during build using autoconf from version
+ control.
+ * [630e580]: [debiandir] Use autoreconf instead of calling the commands
+ one by one
+ * [4c0f205]: Updated handling of parallel builds in DEB_BUILD_OPTIONS
+ to conform to policy.
+ * [529f0c4]: [autotools-cleanup] Remove files generated by autotools from VCS
+
+ -- Manoj Srivastava <srivasta@debian.org> Tue, 28 Apr 2009 17:21:02 -0500
+
+wm-icons (0.4.0-3) unstable; urgency=low
+
+ * Re-run autotools at build time. This gets away from the ancient
+ versions used by upstream, without bloating up the diff.
+
+ -- Manoj Srivastava <srivasta@debian.org> Mon, 02 Jun 2008 17:33:11 -0500
+
+wm-icons (0.4.0-2) unstable; urgency=low
+
+ * Record the fact that this package has moved to a new git repository.
+ * Move to the new, make -j friendly targets in debian/rules.
+ * Bug fix: "wm-icons: debian/watch fails to report upstream&#39;s
+ version", thanks to Raphael Geissert (Closes: #449686).
+
+ -- Manoj Srivastava <srivasta@debian.org> Mon, 02 Jun 2008 13:32:36 -0500
+
+wm-icons (0.4.0-1) unstable; urgency=low
+
+ * New upstream release
+ * New icon sets: 16x16-crystalclear, 48x48-crystalclear, 22x22-gartoon,
+ 48x48-gartoon, 32x32-gant, 64x64-gant. These are png icon sets.
+ * New icon sets: 24x24-infox, 48x48-infox. These are xpm icon sets.
+ * New icon sets: 16x16-aquafusion, 22x22-aquafusion, 32x32-aquafusion,
+ 48x48-aquafusion, 64x64-aquafusion. These are png icon sets.
+ * wm-icons now has a menu-methods script, that parses various menu files
+ and adds entries into an FVWM menu, complete with mini icons, for all
+ packages that register a mini icon. For themeable icons, if packages
+ register a bare icon name, this will search the current theme for the
+ appropriate icon. Not much support out there yet for this.
+
+ -- Manoj Srivastava <srivasta@debian.org> Mon, 17 Apr 2006 13:57:25 -0500
+
+wm-icons (0.3.0-7) unstable; urgency=low
+
+ * Bug fix: "Include arch-ids files", thanks to Julien Danjou
+ This is dues to the botched fixing of 283176 in the last
+ upload. Directories need to be removed with -rf (Closes: #300483).
+
+ -- Manoj Srivastava <srivasta@debian.org> Sun, 20 Mar 2005 13:15:02 -0600
+
+wm-icons (0.3.0-6) unstable; urgency=low
+
+ * Bug fix: "wm-icons: binary package includes GNU Arch id files", thanks
+ to Eric Wong (Closes: #283176).
+
+ -- Manoj Srivastava <srivasta@debian.org> Wed, 1 Dec 2004 14:20:57 -0600
+
+wm-icons (0.3.0-5) unstable; urgency=low
+
+ * Moved to the new build system, and arch.
+
+ -- Manoj Srivastava <srivasta@debian.org> Wed, 18 Feb 2004 23:41:38 -0600
+
+wm-icons (0.3.0-4) unstable; urgency=low
+
+ * use awk instead of gawk closes: Bug#188259
+
+ -- Manoj Srivastava <srivasta@debian.org> Tue, 8 Apr 2003 17:32:45 -0500
+
+wm-icons (0.3.0-3) unstable; urgency=low
+
+ * No longer provide a /usr/doc symlink. Upgrade to latest polict version.
+
+ -- Manoj Srivastava <srivasta@debian.org> Mon, 11 Nov 2002 23:30:51 -0600
+
+wm-icons (0.3.0-2) unstable; urgency=low
+
+ * Move the sample configurations for window managers into the doc dir as
+ well. Oh, and I guess this fulfills the RFP, so closes: Bug#118428
+
+ -- Manoj Srivastava <srivasta@debian.org> Mon, 25 Feb 2002 03:28:41 -0600
+
+wm-icons (0.3.0-1) unstable; urgency=low
+
+ * New version
+
+ -- Manoj Srivastava <srivasta@debian.org> Mon, 25 Feb 2002 01:10:09 -0600
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..dcd3ed7
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,35 @@
+Source: wm-icons
+VCS-Git: git://git.debian.org/~srivasta/debian/wm-icons.git
+VCS-Browser: http://git.debian.org/?p=users/srivasta/debian/wm-icons.git
+Section: misc
+Standards-Version: 3.9.4
+Maintainer: Manoj Srivastava <srivasta@debian.org>
+Priority: optional
+Homepage: http://wm-icons.sourceforge.net/
+Build-Depends-Indep: debhelper (>= 9.0.0), dh-autoreconf, autoconf, automake | automaken, cvs
+# depending on cvs sucks, but gettext needs it without depending on it,
+# and autoreconf calls autopoint from gettext, which uses a CVS repo in
+# a tar ball. See Bug#506022 and Bug#508230
+
+
+Package: wm-icons
+Architecture: all
+Depends: ${misc:Depends}
+Enhances: fvwm1, fvwm2, fvwm95, scwm, enlightenment, twm, flwm,
+ wmaker, sawfish-gnome, aewm, 9wm, blackbox, fluxbox, gwm, icewm,
+ larswm, ion, lwm, ratpoison, vtwm, w9wm, sawfish, sapphire, olwm,
+ olvwm, ctwm, amiwm, pwm
+Description: Themed icon set that is Window Manager agnostic
+ The Window Manager Icons is a set of generic icons for use by window
+ managers in a graphical environment. It is an efficient icon
+ distribution designed to be standardized and configurable. It
+ includes several themed icon sets, a template icon set to help
+ building new themed icon sets, scripts and configurations for several
+ window managers.
+ .
+ wm-icons comes with different styles and common window manager sizes
+ (small menu icons, larger desktop icons, etc.) as well as advice and
+ setup for integrating them with various window managers such as FVWM,
+ SCWM, etc. Each set consists of an icon in that size and style for
+ each of about 84 different generic categories ("game", "editor",
+ "file-manager", etc).
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a038d5c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: wm-icons
+Source: http://wm-icons.sourceforge.net/
+
+Files: *
+Copyright: 1999, Julian Gilbey <jdg@debian.org>
+ 1999, Mikhael Goikhman
+License: GPL-2.0+
+Comment: Changes:
+ added Debian GNU/Linux package maintenance system files, and a
+ manual page.
+
+
+Files: debian/*
+Copyright: 2002, 2003, 2004, 2005, 2006, 2013 Manoj Srivastava <srivasta@debian.org>
+License: GPL-2.0+
+
+License: GPL-2.0+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..52e6bbe
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+TMPTOP=debian/wm-icons
+
+%:
+ dh $@ --with autoreconf
+
+override_dh_auto_configure:
+ ac_cv_lib_util_getloadavg=no dh_auto_configure -- \
+ --sysconfdir=/etc --enable-all-sets
+
+override_dh_install:
+ dh_install
+ (cd $(TMPTOP)/usr/share/icons/wm-icons/; \
+ rm -f menu mini norm; \
+ ln -s 16x16-general menu; \
+ ln -s 14x14-general mini; \
+ ln -s 48x48-general norm;)
+ mv $(TMPTOP)/usr/share/wm-icons \
+ $(TMPTOP)/usr/share/doc/wm-icons/examples/
+ rm -rf $(TMPTOP)/usr/share/doc/wm-icons/examples/debian-menu-system
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..39a2e07
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# format version number, currently 2; this line is compulsory!
+version=3
+
+http://sf.net/wm-icons/wm-icons-(.+)\.tar\.bz2
diff --git a/debian/wm-icons.install b/debian/wm-icons.install
new file mode 100644
index 0000000..f7049fa
--- /dev/null
+++ b/debian/wm-icons.install
@@ -0,0 +1,9 @@
+etc/debian-menu-system/wm-icons etc/menu-methods/
+etc/debian-menu-system/wm-icons.h etc/menu-methods/
+etc/debian-menu-system/wm-icons-data.h etc/menu-methods/
+doc/FAQ usr/share/doc/wm-icons
+doc/icons.lst usr/share/doc/wm-icons
+doc/README.3dpixmaps usr/share/doc/wm-icons
+doc/README.martys usr/share/doc/wm-icons
+doc/README.penguins usr/share/doc/wm-icons
+doc/wm-icons.lsm usr/share/doc/wm-icons
diff --git a/debian/wm-icons.lintian-overrides b/debian/wm-icons.lintian-overrides
new file mode 100644
index 0000000..f4c3787
--- /dev/null
+++ b/debian/wm-icons.lintian-overrides
@@ -0,0 +1,2 @@
+wm-icons: menu-method-should-include-menu-h etc/menu-methods/wm-icons-data.h
+wm-icons: menu-method-should-include-menu-h etc/menu-methods/wm-icons.h
diff --git a/debian/wm-icons.postinst b/debian/wm-icons.postinst
new file mode 100755
index 0000000..06e3388
--- /dev/null
+++ b/debian/wm-icons.postinst
@@ -0,0 +1,247 @@
+#! /bin/sh
+# -*- Mode: Sh -*-
+# postinst ---
+# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com )
+# Created On : Fri Nov 14 11:25:07 2003
+# Created On Node : glaurung.green-gryphon.com
+# Last Modified By : Manoj Srivastava
+# Last Modified On : Mon Apr 17 10:04:28 2006
+# Last Machine Used: glaurung.internal.golden-gryphon.com
+# Update Count : 34
+# Status : Unknown, Use with caution!
+# HISTORY :
+# Description :
+#
+# arch-tag: 5401e9ef-39cc-4aee-96a4-61dfb8f32cf7
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#
+
+# Abort if any command returns an error value
+set -e
+
+package_name=wm-icons
+
+if [ -z "$package_name" ]; then
+ print >&2 "Internal Error. Please report a bug."
+ exit 1;
+fi
+
+# This script is called as the last step of the installation of the
+# package. All the package's files are in place, dpkg has already done
+# its automatic conffile handling, and all the packages we depend of
+# are already fully installed and configured.
+# 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
+#
+# quoting from the policy:
+# Any necessary prompting should almost always be confined to the
+# post-installation script, and should be protected with a conditional
+# so that unnecessary prompting doesn't happen if a package's
+# installation fails and the `postinst' is called with `abort-upgrade',
+# `abort-remove' or `abort-deconfigure'.
+
+# The following idempotent stuff doesn't generally need protecting
+# against being run in the abort-* cases.
+
+# Install info files into the dir file
+##: install-info --quiet --section "section pattern" "Section Title" \
+##: --description="Name of the document" /usr/info/${package_name}.info
+
+# Create stub directories under /usr/local
+##: if test ! -d /usr/local/lib/${package_name}; then
+##: if test ! -d /usr/local/lib; then
+##: if mkdir /usr/local/lib; then
+##: chown root.staff /usr/local/lib || true
+##: chmod 2775 /usr/local/lib || true
+##: fi
+##: fi
+##: if mkdir /usr/local/lib/${package_name}; then
+##: chown root.staff /usr/local/lib/${package_name} || true
+##: chmod 2775 /usr/local/lib/${package_name} || true
+##: fi
+##: fi
+
+if [ -e /etc/menu-methods/$package_name ] && [ ! -x /etc/menu-methods/$package_name ]; then
+ chmod a+x /etc/menu-methods/$package_name
+fi
+
+# Ensure the menu system is updated
+[ ! -x /usr/bin/update-menus ] || update-menus
+
+
+## Deprecated
+##if test -x /usr/sbin/wm-menu-config; then wm-menu-config fvwm on; fi
+
+
+# Arrange for a daemon to be started at system boot time
+##: update-rc.d ${package_name} default >/dev/null
+
+
+
+# This package uses debconf to ask a question, so source the debconf
+# confmodule as early as possible. However, it does not depend on debconf,
+# so debconf may not be installed.
+# if [ -e /usr/share/debconf/confmodule ]; then
+# . /usr/share/debconf/confmodule
+# db_capb
+# fi
+
+
+case "$1" in
+ configure)
+ # Configure this package. If the package must prompt the user for
+ # information, do it here.
+ # Install emacs lisp files
+ ##:if [ -x /usr/lib/emacsen-common/emacs-package-install ]; then
+ ##: /usr/lib/emacsen-common/emacs-package-install $package_name
+ ##:fi
+
+
+ # Activate menu-methods script
+ #chmod a+x /etc/menu-methods/${package_name}
+
+ # Update ld.so cache
+ ##: ldconfig
+
+ # Make our version of a program available
+ #update-alternatives \
+ # --install /usr/bin/fvwm fvwm /usr/bin/fvwm2 200 \
+ # --slave /usr/share/man/man1/fvwm.1.gz fvwm.1.gz \
+ # /usr/share/man/man1/fvwm2.1.gz
+ #update-alternatives \
+ # --install /usr/bin/x-window-manager x-window-manager /usr/bin/fvwm2 50 \
+ # --slave /usr/share/man/man1/x-window-manager.1.gz \
+ # x-window-manager.1.gz /usr/share/man/man1/fvwm2.1.gz
+
+ # Tell ucf that the file in /usr/share/foo is the latest
+ # maintainer version, and let it handle how to manage the real
+ # confuguration file in /etc. This is how a static configuration
+ # file can be handled:
+ ##:if which ucf >/dev/null 2>&1; then
+ ##: ucf /usr/share/${package_name}/configuration /etc/${package_name}.conf
+ ##:fi
+
+ ### We could also do this on the fly. The following is from Tore
+ ### Anderson:
+
+ #. /usr/share/debconf/confmodule
+
+ ### find out what the user answered.
+ # db_get foo/run_on_boot
+ # run_on_boot=$RET
+ # db_stop
+
+ ### safely create a temporary file to generate our suggested
+ ### configuration file.
+ # tempfile=`tempfile`
+ # cat << _eof > $tempfile
+ ### Configuration file for Foo.
+
+ ### this was answered by you, the user in a debconf dialogue
+ # RUNONBOOT=$run_on_boot
+
+ ### this was not, as it has a sane default value.
+ # COLOUROFSKY=blue
+
+ #_eof
+
+ ### Note that some versions of debconf do not release stdin, so
+ ### the following invocation of ucf may not work, since the stdin
+ ### is never coneected to ucfr.
+
+ ### now, invoke ucf, which will take care of the rest, and ask
+ ### the user if he wants to update his file, if it is modified.
+ #ucf $tempfile /etc/foo.conf
+
+ ### done! now we'll just clear up our cruft.
+ #rm -f $tempfile
+
+
+
+ # There are three sub-cases:
+ if test "${2+set}" != set; then
+ # We're being installed by an ancient dpkg which doesn't remember
+ # which version was most recently configured, or even whether
+ # there is a most recently configured version.
+ :
+
+ elif test -z "$2" || test "$2" = "<unknown>"; then
+ # The package has not ever been configured on this system, or was
+ # purged since it was last configured.
+ :
+
+ else
+ # Version $2 is the most recently configured version of this
+ # package.
+ :
+ fi
+ ;;
+ abort-upgrade)
+ # Back out of an attempt to upgrade this package FROM THIS VERSION
+ # to version $2. Undo the effects of "prerm upgrade $2".
+ ##:
+
+ ;;
+ abort-remove)
+ if test "$2" != in-favour; then
+ echo "$0: undocumented call to \`postinst $*'" 1>&2
+ exit 0
+ fi
+ # Back out of an attempt to remove this package, which was due to
+ # a conflict with package $3 (version $4). Undo the effects of
+ # "prerm remove in-favour $3 $4".
+ ##:
+
+ ;;
+ abort-deconfigure)
+ if test "$2" != in-favour || test "$5" != removing; then
+ echo "$0: undocumented call to \`postinst $*'" 1>&2
+ exit 0
+ fi
+ # Back out of an attempt to deconfigure this package, which was
+ # due to package $6 (version $7) which we depend on being removed
+ # to make way for package $3 (version $4). Undo the effects of
+ # "prerm deconfigure in-favour $3 $4 removing $6 $7".
+ ##:
+
+ ;;
+ *) echo "$0: didn't understand being called with \`$1'" 1>&2
+ exit 0;;
+esac
+
+# Install doc base documentation
+##:if which install-docs >/dev/null 2>&1; then
+##: if [ -e /usr/share/doc-base/${package_name} ]; then
+##: install-docs -i /usr/share/doc-base/${package_name}
+##: fi
+##:fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+
+exit 0
diff --git a/debian/wm-icons.postrm b/debian/wm-icons.postrm
new file mode 100755
index 0000000..80f295f
--- /dev/null
+++ b/debian/wm-icons.postrm
@@ -0,0 +1,182 @@
+#! /bin/sh
+# -*- Mode: Sh -*-
+# postrm ---
+# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com )
+# Created On : Fri Nov 14 12:22:20 2003
+# Created On Node : glaurung.green-gryphon.com
+# Last Modified By : Manoj Srivastava
+# Last Modified On : Mon Apr 17 10:07:25 2006
+# Last Machine Used: glaurung.internal.golden-gryphon.com
+# Update Count : 20
+# Status : Unknown, Use with caution!
+# HISTORY :
+# Description :
+#
+# arch-tag: 56802d51-d980-4822-85c0-28fce19ed430
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+
+# Abort if any command returns an error value
+set -e
+
+package_name=wm-icons
+
+if [ -z "$package_name" ]; then
+ print >&2 "Internal Error. Please report a bug."
+ exit 1;
+fi
+
+# This script is called twice during the removal of the package; once
+# after the removal of the package's files from the system, and as
+# the final step in the removal of this package, after the package's
+# conffiles have been removed.
+# 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
+
+# Ensure the menu system is updated
+[ ! -x /usr/bin/update-menus ] || update-menus
+
+case "$1" in
+ remove)
+ # This package is being removed, but its configuration has not yet
+ # been purged.
+ :
+ # Deprecated
+ # if test -x /usr/sbin/wm-menu-config; then wm-menu-config fvwm off; fi
+
+ if [ -e /etc/menu-methods/$package_name ] && [ -x /etc/menu-methods/$package_name ]; then
+ chmod a-x /etc/menu-methods/$package_name
+ fi
+ [ ! -x /usr/bin/update-menus ] || update-menus
+
+
+ # Remove diversion
+ ##: dpkg-divert --package ${package_name} --remove --rename \
+ ##: --divert /usr/bin/other.real /usr/bin/other
+
+ # ldconfig is NOT needed during removal of a library, only during
+ # installation
+
+ ;;
+ purge)
+ # This package has previously been removed and is now having
+ # its configuration purged from the system.
+
+ #remove the files that install-menu creates:
+ # (cd /etc/X11/fvwm/; rm system.twmrc menus.dat menudefs.hook)
+
+
+ # we mimic dpkg as closely as possible, so we remove configuration
+ # files with dpkg backup extensions too:
+ :
+
+ # and finally clear it out from the ucf database
+ ##: ucf --purge /etc/${package_name}.conf
+
+ # Remove symlinks from /etc/rc?.d
+ ##: update-rc.d ${package_name} remove >/dev/null
+
+# if [ -e /usr/share/debconf/confmodule ]; then
+# # Purge this package's data from the debconf database.
+# . /usr/share/debconf/confmodule
+# db_purge
+# fi
+
+ # This package has previously been removed and is now having
+ # its configuration purged from the system.
+ ##: for flavour in emacs20 emacs21; do
+ ##: STARTDIR=/etc/$flavour/site-start.d;
+ ##: STARTFILE="${package_name}-init.el";
+ ##: if [ -e "$STARTDIR/20$STARTFILE" ]; then
+ ##: rm -f "$STARTDIR/20$STARTFILE"
+ ##: fi
+ ##: done
+
+ ;;
+ disappear)
+ if test "$2" != overwriter; then
+ echo "$0: undocumented call to \`postrm $*'" 1>&2
+ exit 0
+ fi
+ # This package has been completely overwritten by package $3
+ # (version $4). All our files are already gone from the system.
+ # This is a special case: neither "prerm remove" nor "postrm remove"
+ # have been called, because dpkg didn't know that this package would
+ # disappear until this stage.
+ :
+
+ ;;
+ upgrade)
+ # About to upgrade FROM THIS VERSION to version $2 of this package.
+ # "prerm upgrade" has been called for this version, and "preinst
+ # upgrade" has been called for the new version. Last chance to
+ # clean up.
+ :
+
+ ;;
+ failed-upgrade)
+ # About to upgrade from version $2 of this package TO THIS VERSION.
+ # "prerm upgrade" has been called for the old version, and "preinst
+ # upgrade" has been called for this version. This is only used if
+ # the previous version's "postrm upgrade" couldn't handle it and
+ # returned non-zero. (Fix old postrm bugs here.)
+ :
+
+ ;;
+ abort-install)
+ # Back out of an attempt to install this package. Undo the effects of
+ # "preinst install...". There are two sub-cases.
+ :
+
+ if test "${2+set}" = set; then
+ # When the install was attempted, version $2's configuration
+ # files were still on the system. Undo the effects of "preinst
+ # install $2".
+ :
+
+ else
+ # We were being installed from scratch. Undo the effects of
+ # "preinst install".
+ :
+
+ fi ;;
+ abort-upgrade)
+ # Back out of an attempt to upgrade this package from version $2
+ # TO THIS VERSION. Undo the effects of "preinst upgrade $2".
+ :
+
+ ;;
+ *) echo "$0: didn't understand being called with \`$1'" 1>&2
+ exit 0;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+
+exit 0