mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* debian/control: add screen-profiles and screen-profiles-extras transitional packages * debian/postinst, debian/prerm, debian/rules: fix screen-profiles -> byobu upgrades; drop byobu's attempt to remove the dpkg-divert on /usr/bin/screen, as this fails; establish links in the postinst, remove in the prerm * debian/screen-profiles.postinst: remove the diversion on *installation* of this transitional package Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
5e48aa7df3
commit
ee6ca31487
6 changed files with 51 additions and 14 deletions
15
debian/changelog
vendored
15
debian/changelog
vendored
|
@ -7,11 +7,18 @@ byobu (2.16) unreleased; urgency=low
|
|||
* byobu-config, byobu-launcher, byobu-launcher-install,
|
||||
byobu-launcher-uninstall, debian/install, debian/rules,
|
||||
rpm/byobu.spec: rename to byobu-launcher*
|
||||
* debian/rules: establish symlink for screen-launcher for existing
|
||||
launch-on-login configurations; this seems better than auto-editing
|
||||
user's .profile
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 23 Jun 2009 02:41:46 -0500
|
||||
Fixes for: LP: #391105, #390405
|
||||
* debian/control: add screen-profiles and screen-profiles-extras
|
||||
transitional packages
|
||||
* debian/postinst, debian/prerm, debian/rules: fix screen-profiles ->
|
||||
byobu upgrades; drop byobu's attempt to remove the dpkg-divert on
|
||||
/usr/bin/screen, as this fails; establish links in the postinst,
|
||||
remove in the prerm
|
||||
* debian/screen-profiles.postinst: remove the diversion on *installation*
|
||||
of this transitional package
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 23 Jun 2009 14:05:56 -0500
|
||||
|
||||
byobu (2.15-0ubuntu1) karmic; urgency=low
|
||||
|
||||
|
|
12
debian/control
vendored
12
debian/control
vendored
|
@ -35,3 +35,15 @@ Description: additional colored profiles for the byobu package
|
|||
The byobu contains a basic set of light and dark screen profiles.
|
||||
The byobu-extras package provides additional profiles of various
|
||||
different light and dark colors.
|
||||
|
||||
Package: screen-profiles
|
||||
Depends: byobu
|
||||
Architecture: all
|
||||
Description: package renamed -> byobu
|
||||
This package has been renamed to 'byobu'.
|
||||
|
||||
Package: screen-profiles-extras
|
||||
Depends: byobu-extras
|
||||
Architecture: all
|
||||
Description: package renamed -> byobu-extras
|
||||
This package has been renamed to 'byobu-extras'.
|
||||
|
|
12
debian/postinst
vendored
12
debian/postinst
vendored
|
@ -2,14 +2,10 @@
|
|||
|
||||
PKG="byobu"
|
||||
|
||||
if [ -x "/usr/bin/screen.real" ]; then
|
||||
# Byobu used to divert the real /usr/bin/screen, but we don't
|
||||
# do this anymore; clean up old diversion if upgrading
|
||||
if ls -alF /usr/bin/screen 2>/dev/null | grep -qs "^l.*/usr/bin/screen -> byobu"; then
|
||||
rm -f /usr/bin/screen
|
||||
fi
|
||||
dpkg-divert --package "$PKG" --rename --remove /usr/bin/screen
|
||||
fi
|
||||
# The following two links significantly improve the upgrade
|
||||
# experience from screen-profiles to byobu.
|
||||
ln -sf /usr/bin/byobu-status /usr/bin/screen-profiles-status
|
||||
ln -sf /usr/bin/byobu-launcher /usr/bin/screen-launcher
|
||||
|
||||
# Notify users that they should reload their profile
|
||||
DIR="/var/run/screen"
|
||||
|
|
10
debian/prerm
vendored
Normal file
10
debian/prerm
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
PKG="byobu"
|
||||
|
||||
# Remove helper symlinks
|
||||
for i in /usr/bin/screen-profiles-status /usr/bin/screen-launcher; do
|
||||
[ -h "$i" ] && rm -f "$i"
|
||||
done
|
||||
|
||||
#DEBHELPER#
|
6
debian/rules
vendored
6
debian/rules
vendored
|
@ -48,8 +48,10 @@ install: build install-po
|
|||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_link usr/bin/byobu-status usr/bin/screen-profiles-status
|
||||
dh_link usr/bin/byobu-launcher usr/bin/screen-launcher
|
||||
# These links must be done in the postinst, as screen-profiles might not
|
||||
# be uninstalled yet
|
||||
#dh_link usr/bin/byobu-status usr/bin/screen-profiles-status
|
||||
#dh_link usr/bin/byobu-launcher usr/bin/screen-launcher
|
||||
dh_link usr/share/byobu/keybindings/f-keys usr/share/byobu/keybindings/common
|
||||
dh_install -X.bzr
|
||||
|
||||
|
|
10
debian/screen-profiles.postinst
vendored
Normal file
10
debian/screen-profiles.postinst
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
if dpkg --compare-versions "$2" lt-nl 2.0; then
|
||||
if [ -e "/usr/bin/screen.real" ]; then
|
||||
# clean up old screen diversion
|
||||
dpkg-divert --package screen-profiles --rename --remove /usr/bin/screen
|
||||
fi
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
Loading…
Add table
Add a link
Reference in a new issue