The attached postinst allows fluxbox to install together with blackbox, and it nukes the files left behind by dpkg (see also #309485, #310390). Also, this hack has to happen in postinst/configure as there is no postinst/upgrade. It checks $2, which is empty on fresh installs and contains the previous version number on upgrades.
-- .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer, admin, user, and author `. `'` `- Debian - when you have better things to do than fixing a system Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver! in africa some of the native tribes have a custom of beating the ground with clubs and uttering spine chilling cries. anthropologists call this a form of primitive self-expression. in america they call it golf.
#!/bin/sh -x # # fluxbox postinst # # Shamelessly ripped off of Marcelo Magallon's script # by Brent Fulgham <[EMAIL PROTECTED]> # # # Ripped off blackbox's postinst, by Matt Hope <[EMAIL PROTECTED]> # set -e WMentry="/usr/bin/fluxbox" add_wm_entry () { update-alternatives --install /usr/bin/x-window-manager x-window-manager $WMentry 50 \ --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz /usr/share/man/man1/fluxbox.1.gz } # Older versions of this package included 'bsetbg' and # related dpkg-divert rules. remove_old_divert () { if [ -n "$1" ] && dpkg --compare-versions "$1" le "0.1.7-3"; then if [ -f /usr/bin/bsetbg ] && [ -f /usr/bin/bsetbg.blackbox ] \ && dpkg-divert --list /usr/bin/bsetbg | \ grep -q '^diversion.*by fluxbox$'; then rm /usr/bin/bsetbg fi if [ -f /usr/share/man/man1/bsetbg.1.gz ] \ && [ -f /usr/share/man/man1/bsetbg.blackbox.1.gz ] \ && dpkg-divert --list /usr/share/man/man1/bsetbg.1.gz | \ grep -q '^diversion.*by fluxbox$'; then rm /usr/share/man/man1/bsetbg.1.gz fi dpkg-divert --package fluxbox --remove --rename /usr/bin/bsetbg dpkg-divert --package fluxbox --remove --rename /usr/share/man/man1/bsetbg.1.gz fi } case "$1" in configure) remove_old_divert $2 add_wm_entry ;; abort-*) # how did we get here? Force a non-zero exit code exit 1 ;; *) ;; esac #DEBHELPER#
signature.asc
Description: Digital signature