From a4fe10cf29d672fd19708fbe6b658b9ce81b8cdd Mon Sep 17 00:00:00 2001 From: Julien Lavergne Date: Mon, 4 Apr 2011 23:29:36 +0200 Subject: [PATCH] * Restore original virtual terminal color palette (from xubuntu-artwork) - debian/lubuntu-artwork.postint & debian/lubuntu-artwork.postrm: Use the new default virtual terminal color palette instead of forcing the original one. - debian/control: Depend on libnewt0.52 to make sure that the newt-palette alternatives are registered. --- debian/changelog | 11 +++++++ debian/control | 2 +- debian/lubuntu-artwork.postinst | 38 +++++++++++++++++++++++ debian/lubuntu-artwork.postrm | 54 +++++++++++++++++++++++++++++++++ 4 files changed, 104 insertions(+), 1 deletion(-) create mode 100755 debian/lubuntu-artwork.postinst create mode 100755 debian/lubuntu-artwork.postrm diff --git a/debian/changelog b/debian/changelog index 5d8ada8..aa4b7bd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +lubuntu-artwork (0.14) UNRELEASED; urgency=low + + * Restore original virtual terminal color palette (from xubuntu-artwork) + - debian/lubuntu-artwork.postint & debian/lubuntu-artwork.postrm: Use the + new default virtual terminal color palette instead of forcing the original + one. + - debian/control: Depend on libnewt0.52 to make sure that the newt-palette + alternatives are registered. + + -- Julien Lavergne Mon, 04 Apr 2011 23:19:20 +0200 + lubuntu-artwork (0.13) natty; urgency=low * usr/share/lxdm/themes/Lubuntu/greeter.ui: diff --git a/debian/control b/debian/control index a64934c..6a97b66 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,7 @@ Vcs-Browser: http://bazaar.launchpad.net/~lubuntu-desktop/+junk/artwork/files Package: lubuntu-artwork Architecture: all -Depends: ${misc:Depends}, gtk2-engines-murrine +Depends: ${misc:Depends}, gtk2-engines-murrine, libnewt0.52 (>= 0.52.11-2ubuntu7) Description: artwork for Lubuntu Artwork for Lubuntu, contained the wallpaper and others specific images and logos. diff --git a/debian/lubuntu-artwork.postinst b/debian/lubuntu-artwork.postinst new file mode 100755 index 0000000..a869f76 --- /dev/null +++ b/debian/lubuntu-artwork.postinst @@ -0,0 +1,38 @@ +#!/bin/sh +# This script can be called in the following ways: +# +# After the package was installed: +# configure +# +# +# If prerm fails during upgrade or fails on failed upgrade: +# abort-upgrade +# +# If prerm fails during deconfiguration of a package: +# abort-deconfigure in-favour +# removing +# +# If prerm fails during replacement due to conflict: +# abort-remove in-favour + +set -e + +case "$1" in + configure) + # Lubuntu prefers legacy newt colors over Aubergine by default + if update-alternatives --query newt-palette | grep -qs "Status: auto"; then + update-alternatives --set newt-palette /etc/newt/palette.original + fi + ;; + + abort-upgrade|abort-deconfigure|abort-remove) + ;; + + *) + echo "$0 called with unknown argument \`$1'" 1>&2 + exit 1 + ;; +esac + +#DEBHELPER# +exit 0 diff --git a/debian/lubuntu-artwork.postrm b/debian/lubuntu-artwork.postrm new file mode 100755 index 0000000..408900f --- /dev/null +++ b/debian/lubuntu-artwork.postrm @@ -0,0 +1,54 @@ +#!/bin/sh +# This script can be called in the following ways: +# +# After the package was removed: +# remove +# +# After the package was purged: +# purge +# +# After the package was upgraded: +# upgrade +# if that fails: +# failed-upgrade +# +# +# After all of the packages files have been replaced: +# disappear +# +# +# If preinst fails during install: +# abort-install +# +# If preinst fails during upgrade of removed package: +# abort-install +# +# If preinst fails during upgrade: +# abort-upgrade + +set -e + +case "$1" in + remove) + if update-alternatives --query newt-palette | grep -qs "Value: /etc/newt/palette.original"; then + update-alternatives --auto newt-palette + fi + ;; + + purge) + ;; + + upgrade|failed-upgrade|disappear) + ;; + + abort-install|abort-upgrade) + ;; + + *) + echo "$0 called with unknown argument \`$1'" 1>&2 + exit 1 + ;; +esac + +#DEBHELPER# +exit 0