summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/.git-dpm8
-rw-r--r--debian/changelog8
-rw-r--r--debian/clean20
-rw-r--r--debian/control12
-rw-r--r--debian/patches/0001-topic-destdir-Add-DESTDIR-support-for-all-install-co.patch70
-rw-r--r--debian/patches/0002-menu-Tweak-the-Debian-menu-files-for-official-packag.patch148
-rw-r--r--debian/patches/series3
-rw-r--r--debian/source/format2
-rw-r--r--debian/source/lintian-overrides (renamed from debian/source.lintian-overrides)0
-rw-r--r--debian/watch2
-rw-r--r--debian/wm-icons.lintian-overrides1
-rw-r--r--[l---------]debian/wm-icons.menu-method58
-rwxr-xr-xdebian/wm-icons.postinst247
-rwxr-xr-xdebian/wm-icons.postrm182
14 files changed, 91 insertions, 670 deletions
diff --git a/debian/.git-dpm b/debian/.git-dpm
deleted file mode 100644
index b1aabb8..0000000
--- a/debian/.git-dpm
+++ /dev/null
@@ -1,8 +0,0 @@
-# see git-dpm(1) from git-dpm package
-19f2836bb27ca31a54ce15897302cf6a9ba7e14e
-19f2836bb27ca31a54ce15897302cf6a9ba7e14e
-0df889374e0509a56e36e0e3b1a5449d069de4d3
-0df889374e0509a56e36e0e3b1a5449d069de4d3
-wm-icons_0.4.0.orig.tar.gz
-8ea93740452fe1761707796229bfe75bdb0a9a70
-3582973
diff --git a/debian/changelog b/debian/changelog
index b5a306c..7bbeec3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+wm-icons (0.4.0-10) unstable; urgency=low
+
+ * Updated to standards version 3.9.6 (no changes required)
+ * Updated the VCS fields in control to use https
+ * Moved to source format 1.0 and dgit
+
+ -- Manoj Srivastava <srivasta@debian.org> Mon, 25 Jan 2016 09:59:59 -0800
+
wm-icons (0.4.0-9) unstable; urgency=low
* Bug fix: "/etc/menu-methods/wm-icons returned error status 1.", thanks
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..f4e7403
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,20 @@
+ Makefile.in
+ acinclude.m4
+ aclocal.m4
+ bin/Makefile.in
+ config.guess
+ config.sub
+ configure
+ devel/Makefile.in
+ devel/bin/Makefile.in
+ devel/template/CVS/Entries
+ devel/template/CVS/Repository
+ devel/template/CVS/Root
+ doc/Makefile.in
+ etc/Makefile.in
+ etc/debian-menu-system/Makefile.in
+ icons/Makefile.in
+ install-sh
+ missing
+ mkinstalldirs
+ rpm/Makefile.in
diff --git a/debian/control b/debian/control
index a57d2cf..ec9d760 100644
--- a/debian/control
+++ b/debian/control
@@ -1,17 +1,13 @@
Source: wm-icons
-VCS-Git: git://anonscm.debian.org/users/srivasta/debian/wm-icons.git
-VCS-Browser: http://anonscm.debian.org/gitweb/?p=users/srivasta/debian/wm-icons.git
+VCS-Git: https://anonscm.debian.org/git/users/srivasta/debian/wm-icons.git
+VCS-Browser: https://anonscm.debian.org/gitweb/?p=users/srivasta/debian/wm-icons.git
Section: misc
-Standards-Version: 3.9.5
+Standards-Version: 3.9.6
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, libtool
-# 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
-
+ automake | automaken, libtool, gettext (>= 0.18)
Package: wm-icons
Architecture: all
diff --git a/debian/patches/0001-topic-destdir-Add-DESTDIR-support-for-all-install-co.patch b/debian/patches/0001-topic-destdir-Add-DESTDIR-support-for-all-install-co.patch
deleted file mode 100644
index 556ee3e..0000000
--- a/debian/patches/0001-topic-destdir-Add-DESTDIR-support-for-all-install-co.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 1b99e379a7fe070fc683858d8b997454562b5cdd Mon Sep 17 00:00:00 2001
-From: Manoj Srivastava <srivasta@golden-gryphon.com>
-Date: Sat, 27 Apr 2013 17:28:13 -0700
-Subject: [PATCH 1/2] [topic--destdir]: Add DESTDIR support for all install
- commands in Makefile.am
-
-This is useful by itself, but is pretty ctitical for packaging.
-
-(cherry picked from commit aca847f0ae3c384e21eb7e059224394984decf70)
-Signed-off-by: Manoj Srivastava <srivasta@golden-gryphon.com>
----
- Makefile.am | 2 +-
- icons/Makefile.am | 16 ++++++++--------
- 2 files changed, 9 insertions(+), 9 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index 48c6456..7f83c11 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -14,7 +14,7 @@ SUBDIRS = bin doc icons etc devel rpm
- # is for a distribution package building.
- # Set the default icon set aliases (symlinks).
- install-data-local:
-- $(bindir)/wm-icons-config --user-dir="$(icondir)" --defaults --quiet
-+ $(DESTDIR)$(bindir)/wm-icons-config --user-dir="$(DESTDIR)$(icondir)" --defaults --quiet
-
- wm-configs _pack-symlinks _unpack-symlinks:
- cd devel/bin && $(MAKE) $(AM_MAKEFLAGS) $@
-diff --git a/icons/Makefile.am b/icons/Makefile.am
-index 9608529..8e07844 100644
---- a/icons/Makefile.am
-+++ b/icons/Makefile.am
-@@ -16,16 +16,16 @@ EXTRA_DIST = \
- SYMLINKS_LST = _symlinks.lst
-
- install-data-local:
-- $(mkinstalldirs) $(icondir)
-+ $(mkinstalldirs) $(DESTDIR)$(icondir)
- chmod -R o-w,go+rX *
- cd $(top_srcdir)/icons; \
- for iconset in $(SELECTED_ICON_SETS); do \
-- rm -rf $(icondir)/$$iconset; \
-+ rm -rf $(DESTDIR)$(icondir)/$$iconset; \
- tar cpf - "$$iconset" \
-- | (cd "$(icondir)" && tar xfBp -); \
-- find "$(icondir)/$$iconset" -name CVS \
-+ | (cd "$(DESTDIR)$(icondir)" && tar xfBp -); \
-+ find "$(DESTDIR)$(icondir)/$$iconset" -name CVS \
- -exec rm -r {} \; 2>/dev/null; \
-- (cd "$(icondir)/$$iconset" && [ -f $(SYMLINKS_LST) ] \
-+ (cd "$(DESTDIR)$(icondir)/$$iconset" && [ -f $(SYMLINKS_LST) ] \
- && $(AWK) '{ system("ln -sf " $$1 " " $$2) }' \
- < $(SYMLINKS_LST) \
- && rm $(SYMLINKS_LST) || true \
-@@ -34,9 +34,9 @@ install-data-local:
-
- uninstall-local:
- for iconset in $(SELECTED_ICON_SETS); do \
-- rm -rf $(icondir)/$$iconset; \
-+ rm -rf $(DESTDIR)$(icondir)/$$iconset; \
- done
-- for i in $(icondir)/*; do \
-+ for i in $(DESTDIR)$(icondir)/*; do \
- if [ -L "$$i" ] && [ ! -e "$$i" ]; then rm -f "$$i"; fi; \
- done
-- -rmdir $(icondir)
-+ -rmdir $(DESTDIR)$(icondir)
---
-1.9.1
-
diff --git a/debian/patches/0002-menu-Tweak-the-Debian-menu-files-for-official-packag.patch b/debian/patches/0002-menu-Tweak-the-Debian-menu-files-for-official-packag.patch
deleted file mode 100644
index d19dbe8..0000000
--- a/debian/patches/0002-menu-Tweak-the-Debian-menu-files-for-official-packag.patch
+++ /dev/null
@@ -1,148 +0,0 @@
-From 310777dcc6bec3c86a8a8543b8866141053f75c8 Mon Sep 17 00:00:00 2001
-From: Manoj Srivastava <srivasta@debian.org>
-Date: Mon, 17 Apr 2006 14:33:17 +0000
-Subject: [PATCH 2/2] [menu] Tweak the Debian menu files for official packages
-
-Defer language translations for now
-
-git-archimport-id: srivasta@debian.org--etch/wm-icons--debian--0.4--patch-2
-(cherry picked from commit d8bea97e35db3fb856b1c6131ff79a21063f49e4)
-
-git-archimport-id: srivasta@debian.org--etch/wm-icons--debian--0.4--patch-3
-(cherry picked from commit 7e89639821ac681c3ed74037c2a7ac3d4567f6f3)
-
-git-archimport-id: srivasta@debian.org--etch/wm-icons--debian--0.4--patch-4
-(cherry picked from commit 3cfe2ea894a3599b943dc2546820b400ae161d58)
-
-git-archimport-id: srivasta@debian.org--etch/wm-icons--debian--0.4--patch-5
-(cherry picked from commit 7aa0bd600186e9d60a76be9b37499499ea6f0cfd)
----
- etc/debian-menu-system/README | 14 ++++----------
- etc/debian-menu-system/wm-icons-fvwm2rc-menu.in | 16 ++++++++++------
- etc/debian-menu-system/wm-icons.h.in | 23 +++++++++++++++++------
- 3 files changed, 31 insertions(+), 22 deletions(-)
-
-diff --git a/etc/debian-menu-system/README b/etc/debian-menu-system/README
-index 73b9985..eaf3648 100644
---- a/etc/debian-menu-system/README
-+++ b/etc/debian-menu-system/README
-@@ -10,20 +10,14 @@ as a simple user.
- the "standard sections" and wm-icons icons and a map from packages name
- to wm-icons icons.
-
--* wm-icons-fvwm2rc-menu is a menu-method script for FVWM. You should edit
-- the lines:
-- rootprefix="/usr/local/share/fvwm/debian-menu-system/"
-- userprefix="/.fvwm/debian-menu-system/"
-- replace "/usr/local/share/fvwm/" by the FVWM configuration directory
-- and ".fvwm" by the FVWM user directory. Then, you should add
-- Read debian-menu-system/wm-icons-menu
-+* wm-icons-fvwm2rc-menu is a menu-method script for FVWM. You should add
-+ Read wm-icons/menudefs.hook
- in the configuration file and bind it in some ways e.g.:
- add:
-- + "menu system%menu/programs.xpm" Popup MenuFvwmDebianMenuSystem
-+ + "menu system%menu/programs.xpm" Popup "/DebianWmIcons"
- in your root menu
- or add say:
-- Mouse 1 R A Menu MenuFvwmDebianMenuSystem
-- You should also use the configuration file "this dir"/../fvwm2rc
-+ Mouse 1 R A Menu "/DebianWmIcons"
-
- * Other window managers: just (copy and rename and) edit the correponding
- menu methods script; you should add "!include wm-icons.h" and then you
-diff --git a/etc/debian-menu-system/wm-icons-fvwm2rc-menu.in b/etc/debian-menu-system/wm-icons-fvwm2rc-menu.in
-index 55964e7..9b32f11 100755
---- a/etc/debian-menu-system/wm-icons-fvwm2rc-menu.in
-+++ b/etc/debian-menu-system/wm-icons-fvwm2rc-menu.in
-@@ -1,10 +1,11 @@
--#!/usr/sbin/install-menu
-+#!/usr/bin/install-menu
- compat="menu-1"
-+!include lang.h
- !include menu.h
- # you may/should edit/check the systemFindIcon in wm-icons.h
- !include wm-icons.h
-
--function ltitle()=translate(lang(),title())
-+function ltitle()=translate($lang,title())
-
- # if you want wm-icons only:
- # replace "wmIconsFindIcon" by wmIconsFindIconWmOnly
-@@ -21,6 +22,9 @@ supported
- fvwm2module= "+ \"" escfirst(ltitle(), $hotkey,"&") \
- cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \
- "\" Module " $command "\n"
-+ fvwm= "+ \"" escfirst(ltitle() ,$hotkey,"&") \
-+ cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \
-+ "\" " $command "\n"
- fvwm2= "+ \"" escfirst(ltitle() ,$hotkey,"&") \
- cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \
- "\" " $command "\n"
-@@ -46,8 +50,8 @@ submenutitle= "+ \"" escfirst(ltitle() ,$hotkey,"&") \
- cond_surr(wmIconsFindSectionIcon($section,$icon,"menu/"),"%","%") \
- "\" PopUp \"" replacewith($section, " ", "_") "\"\n"
-
--rootprefix="/usr/local/share/fvwm/debian-menu-system/"
--userprefix="/.fvwm/debian-menu-system/"
-+rootprefix="/etc/X11/fvwm/wm-icons/"
-+userprefix="/.fvwm/wm-icons/"
- treewalk="c(m)"
--genmenu="wm-icons-menu"
--rootsection="MenuFvwmDebianMenuSystem"
-+genmenu="menudefs.hook"
-+rootsection="/DebianWmIcons"
-diff --git a/etc/debian-menu-system/wm-icons.h.in b/etc/debian-menu-system/wm-icons.h.in
-index 8bff428..bf3a177 100644
---- a/etc/debian-menu-system/wm-icons.h.in
-+++ b/etc/debian-menu-system/wm-icons.h.in
-@@ -13,13 +13,24 @@
- # need to replace /urs/local/share/fvwm by "fvwm-themes @datadir@"/fvwm
- function systemFindIcon($filename)= \
- ifeqelse($filename, "", "", \
-+ ifelsefile("/usr/share/icons/wm-icons/mini/" $filename, \
-+ "/usr/share/icons/wm-icons/mini/" $filename, \
- ifelsefile("/usr/share/icons/mini/" $filename, \
-- "/usr/share/icons/mini/" $filename, \
-+ "/usr/share/icons/mini/" $filename, \
-+ ifelsefile("/usr/share/icons/wm-icons/16x16-general/" $filename, \
-+ "/usr/share/icons/wm-icons/16x16-general/" $filename, \
-+ ifelsefile("/usr/share/icons/wm-icons/16x16-gnome/" $filename, \
-+ "/usr/share/icons/wm-icons/16x16-gnome/" $filename, \
-+ ifelsefile("/usr/share/icons/wm-icons/16x16-kde/" $filename, \
-+ "/usr/share/icons/wm-icons/16x16-kde/" $filename, \
-+ ifelsefile("/usr/share/fvwm-crystal/fvwm/icons/Default/" $filename, \
-+ "/usr/share/fvwm-crystal/fvwm/icons/Default/" $filename, \
- ifelsefile("/usr/local/share/fvwm/tr-images/16x16-gnome/" $filename, \
-- "/usr/local/share/fvwm/tr-images/16x16-gnome/" $filename, \
-+ "/usr/local/share/fvwm/tr-images/16x16-gnome/" $filename, \
- ifelsefile("/usr/local/share/fvwm/tr-images/16x16-kde2/" $filename, \
-- "/usr/local/share/fvwm/tr-images/16x16-kde2/" $filename,\
-- ""))))
-+ "/usr/local/share/fvwm/tr-images/16x16-kde2/" $filename, \
-+ "")))))))))
-+
-
- # return the wm-icons associated to a standard section. If the section is
- # not standard return the "system/user" icons for this section and if not
-@@ -30,7 +41,7 @@ function wmIconsFindSectionIcon($s,$i,$t)= \
- ifeqelse(systemFindIcon($i),"",\
- ifeqelse(wmIconsGetSectionIcon(parent($s)),"",\
- ifeqelse(wmIconsGetSectionIcon(parent(parent($s))),"",\
-- $t "folder.xpm",\
-+ $t "folder.xpm",\
- $t wmIconsGetSectionIcon(parent(parent($s)))),\
- $t wmIconsGetSectionIcon(parent($s))),\
- systemFindIcon($i)),\
-@@ -41,7 +52,7 @@ function wmIconsFindSectionIconWmOnly($s,$i,$t)= \
- ifeqelse(wmIconsGetSectionIcon($s),"",\
- ifeqelse(wmIconsGetSectionIcon(parent($s)),"",\
- ifeqelse(wmIconsGetSectionIcon(parent(parent($s))),"",\
-- $t "folder.xpm",\
-+ $t "folder.xpm",\
- $t wmIconsGetSectionIcon(parent(parent($s)))),\
- $t wmIconsGetSectionIcon(parent($s))),\
- $t wmIconsGetSectionIcon($s))
---
-1.9.1
-
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 38030cf..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1,3 +0,0 @@
-# exported from git by git-debcherry
-0001-topic-destdir-Add-DESTDIR-support-for-all-install-co.patch
-0002-menu-Tweak-the-Debian-menu-files-for-official-packag.patch
diff --git a/debian/source/format b/debian/source/format
index 163aaf8..d3827e7 100644
--- a/debian/source/format
+++ b/debian/source/format
@@ -1 +1 @@
-3.0 (quilt)
+1.0
diff --git a/debian/source.lintian-overrides b/debian/source/lintian-overrides
index 0fd89b0..0fd89b0 100644
--- a/debian/source.lintian-overrides
+++ b/debian/source/lintian-overrides
diff --git a/debian/watch b/debian/watch
index 39a2e07..22f8d67 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,4 @@
# format version number, currently 2; this line is compulsory!
version=3
-http://sf.net/wm-icons/wm-icons-(.+)\.tar\.bz2
+opts="pgpmode=none" http://sf.net/wm-icons/wm-icons-(.+)\.tar\.bz2
diff --git a/debian/wm-icons.lintian-overrides b/debian/wm-icons.lintian-overrides
index 0a246c5..f4c3787 100644
--- a/debian/wm-icons.lintian-overrides
+++ b/debian/wm-icons.lintian-overrides
@@ -1,3 +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
-wm-icons: menu-method-should-include-menu-h etc/menu-methods/wm-icons
diff --git a/debian/wm-icons.menu-method b/debian/wm-icons.menu-method
index afe1a7e..9b32f11 120000..100644
--- a/debian/wm-icons.menu-method
+++ b/debian/wm-icons.menu-method
@@ -1 +1,57 @@
-../etc/debian-menu-system/wm-icons-fvwm2rc-menu \ No newline at end of file
+#!/usr/bin/install-menu
+compat="menu-1"
+!include lang.h
+!include menu.h
+# you may/should edit/check the systemFindIcon in wm-icons.h
+!include wm-icons.h
+
+function ltitle()=translate($lang,title())
+
+# if you want wm-icons only:
+# replace "wmIconsFindIcon" by wmIconsFindIconWmOnly
+# if you want that your system icons be prioritary for applications
+# icons:
+# replace "wmIconsFindIcon" by wmIconsSystemFindIcon"
+#
+# Do not forget to edit/check the systemFindIcon function in wm-icons.h
+#
+supported
+ wm= "+ \"" escfirst(ltitle(), $hotkey,"&") \
+ cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \
+ "\" Restart " $command "\n"
+ fvwm2module= "+ \"" escfirst(ltitle(), $hotkey,"&") \
+ cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \
+ "\" Module " $command "\n"
+ fvwm= "+ \"" escfirst(ltitle() ,$hotkey,"&") \
+ cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \
+ "\" " $command "\n"
+ fvwm2= "+ \"" escfirst(ltitle() ,$hotkey,"&") \
+ cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \
+ "\" " $command "\n"
+ x11= "+ \"" escfirst(ltitle() ,$hotkey,"&") \
+ cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \
+ "\" Exec " $command "\n"
+ text= "+ \"" escfirst(ltitle() ,$hotkey,"&") \
+ cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") "\"" \
+ " Exec /usr/bin/X11/xterm -T \"" ltitle() "\" -e " $command "\n"
+endsupported
+
+startmenu= "DestroyMenu \"" replacewith($section, " ", "_") "\"" "\n" \
+ "AddToMenu \"" replacewith($section, " ", "_") "\"" \
+ " \"" ltitle() "\" Title" "\n"
+endmenu= "\n"
+
+# if you want wm-icons only:
+# replace "wmIconsFindSectionIcon" by wmIconsFindSectionIconWmOnly
+# in both case wm-icons are used for standard sections
+# Do not forget to edit/check the systemFindIcon function in wm-icons.h
+#
+submenutitle= "+ \"" escfirst(ltitle() ,$hotkey,"&") \
+ cond_surr(wmIconsFindSectionIcon($section,$icon,"menu/"),"%","%") \
+ "\" PopUp \"" replacewith($section, " ", "_") "\"\n"
+
+rootprefix="/etc/X11/fvwm/wm-icons/"
+userprefix="/.fvwm/wm-icons/"
+treewalk="c(m)"
+genmenu="menudefs.hook"
+rootsection="/DebianWmIcons"
diff --git a/debian/wm-icons.postinst b/debian/wm-icons.postinst
deleted file mode 100755
index 06e3388..0000000
--- a/debian/wm-icons.postinst
+++ /dev/null
@@ -1,247 +0,0 @@
-#! /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
deleted file mode 100755
index 80f295f..0000000
--- a/debian/wm-icons.postrm
+++ /dev/null
@@ -1,182 +0,0 @@
-#! /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