2015-06-16 15:22:21 +08:00
|
|
|
infodir=usr/share/info
|
2010-09-23 10:24:25 +08:00
|
|
|
|
|
|
|
post_install() {
|
2015-06-16 15:22:21 +08:00
|
|
|
[ -x usr/bin/install-info ] || return 0
|
|
|
|
install-info $infodir/screen.info.gz $infodir/dir 2>/dev/null
|
2010-09-23 10:24:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
2015-06-16 15:22:21 +08:00
|
|
|
post_install $1
|
|
|
|
if [ $(vercmp $2 4.0.3-15) -lt 0 ]; then
|
|
|
|
echo 'The location of the screen sockets has changed.'
|
|
|
|
echo 'If you need to access running screen sessions, run'
|
|
|
|
echo ' # SCREENDIR=/tmp/screens/S-$USER/ screen ...'
|
|
|
|
fi
|
2010-09-23 10:24:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
pre_remove() {
|
2015-06-16 15:22:21 +08:00
|
|
|
[ -x usr/bin/install-info ] || return 0
|
|
|
|
install-info --delete $infodir/screen.info.gz $infodir/dir 2>/dev/null
|
2010-09-23 10:24:25 +08:00
|
|
|
}
|