|
|
@ -1,5 +1,7 @@
|
|
|
|
#! /bin/sh -e
|
|
|
|
#! /bin/sh -e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package_name=ksmserver-trinity
|
|
|
|
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
case "$1" in
|
|
|
|
|
|
|
|
|
|
|
|
upgrade)
|
|
|
|
upgrade)
|
|
|
@ -10,32 +12,78 @@ case "$1" in
|
|
|
|
mkdir -p /usr/share/autostart
|
|
|
|
mkdir -p /usr/share/autostart
|
|
|
|
|
|
|
|
|
|
|
|
# Intrepid plasma
|
|
|
|
# Intrepid plasma
|
|
|
|
dpkg-divert --remove --rename /usr/share/autostart/plasma.desktop
|
|
|
|
divert=`dpkg-divert --listpackage /usr/share/autostart/plasma.desktop`
|
|
|
|
mkdir -p /usr/bin
|
|
|
|
if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then
|
|
|
|
dpkg-divert --add --rename --divert /usr/bin/plasma.kde4 /usr/bin/plasma
|
|
|
|
dpkg-divert --remove --local --rename /usr/share/autostart/plasma.desktop
|
|
|
|
rm -f /usr/bin/plasma
|
|
|
|
fi
|
|
|
|
ln -s /usr/bin/plasma.autodetect /usr/bin/plasma
|
|
|
|
divert=`dpkg-divert --listpackage /usr/bin/plasma`
|
|
|
|
|
|
|
|
if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then
|
|
|
|
|
|
|
|
if [ -L /usr/bin/plasma ]; then
|
|
|
|
|
|
|
|
rm -f /usr/bin/plasma
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
dpkg-divert --remove --local --rename /usr/bin/plasma
|
|
|
|
|
|
|
|
divert=""
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$divert" ]; then
|
|
|
|
|
|
|
|
dpkg-divert --package $package_name --rename \
|
|
|
|
|
|
|
|
--divert /usr/bin/plasma.kde4 \
|
|
|
|
|
|
|
|
--add /usr/bin/plasma
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Jaunty plasma-desktop
|
|
|
|
# Jaunty plasma-desktop
|
|
|
|
dpkg-divert --remove --rename /usr/share/autostart/plasma-desktop.desktop
|
|
|
|
divert=`dpkg-divert --listpackage /usr/share/autostart/plasma-desktop.desktop`
|
|
|
|
mkdir -p /usr/bin
|
|
|
|
if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then
|
|
|
|
dpkg-divert --add --rename --divert /usr/bin/plasma-desktop.kde4 /usr/bin/plasma-desktop
|
|
|
|
dpkg-divert --remove --local --rename /usr/share/autostart/plasma-desktop.desktop
|
|
|
|
rm -f /usr/bin/plasma-desktop
|
|
|
|
fi
|
|
|
|
ln -s /usr/bin/plasma-desktop.autodetect /usr/bin/plasma-desktop
|
|
|
|
divert=`dpkg-divert --listpackage /usr/bin/plasma-desktop`
|
|
|
|
|
|
|
|
if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then
|
|
|
|
|
|
|
|
if [ -L /usr/bin/plasma-desktop ]; then
|
|
|
|
|
|
|
|
rm -f /usr/bin/plasma-desktop
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
dpkg-divert --remove --local --rename /usr/bin/plasma-desktop
|
|
|
|
|
|
|
|
divert=""
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$divert" ]; then
|
|
|
|
|
|
|
|
dpkg-divert --package $package_name --rename \
|
|
|
|
|
|
|
|
--divert /usr/bin/plasma-desktop.kde4 \
|
|
|
|
|
|
|
|
--add /usr/bin/plasma-desktop
|
|
|
|
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
install)
|
|
|
|
install)
|
|
|
|
# Intrepid plasma
|
|
|
|
# Intrepid plasma
|
|
|
|
mkdir -p /usr/bin
|
|
|
|
divert=`dpkg-divert --listpackage /usr/share/autostart/plasma.desktop`
|
|
|
|
dpkg-divert --add --rename --divert /usr/bin/plasma.kde4 /usr/bin/plasma
|
|
|
|
if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then
|
|
|
|
rm -f /usr/bin/plasma
|
|
|
|
dpkg-divert --remove --local --rename /usr/share/autostart/plasma.desktop
|
|
|
|
ln -s /usr/bin/plasma.autodetect /usr/bin/plasma
|
|
|
|
fi
|
|
|
|
|
|
|
|
divert=`dpkg-divert --listpackage /usr/bin/plasma`
|
|
|
|
|
|
|
|
if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then
|
|
|
|
|
|
|
|
if [ -L /usr/bin/plasma ]; then
|
|
|
|
|
|
|
|
rm -f /usr/bin/plasma
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
dpkg-divert --remove --local --rename /usr/bin/plasma
|
|
|
|
|
|
|
|
divert=""
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
dpkg-divert --package $package_name --rename \
|
|
|
|
|
|
|
|
--divert /usr/bin/plasma.kde4 \
|
|
|
|
|
|
|
|
--add /usr/bin/plasma
|
|
|
|
|
|
|
|
|
|
|
|
# Jaunty plasma-desktop
|
|
|
|
# Jaunty plasma-desktop
|
|
|
|
mkdir -p /usr/bin
|
|
|
|
divert=`dpkg-divert --listpackage /usr/share/autostart/plasma-desktop.desktop`
|
|
|
|
dpkg-divert --add --rename --divert /usr/bin/plasma-desktop.kde4 /usr/bin/plasma-desktop
|
|
|
|
if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then
|
|
|
|
rm -f /usr/bin/plasma-desktop
|
|
|
|
dpkg-divert --remove --local --rename /usr/share/autostart/plasma-desktop.desktop
|
|
|
|
ln -s /usr/bin/plasma-desktop.autodetect /usr/bin/plasma-desktop
|
|
|
|
fi
|
|
|
|
|
|
|
|
divert=`dpkg-divert --listpackage /usr/bin/plasma-desktop`
|
|
|
|
|
|
|
|
if [ -n "$divert" ] && [ "$divert" = "LOCAL" ]; then
|
|
|
|
|
|
|
|
if [ -L /usr/bin/plasma-desktop ]; then
|
|
|
|
|
|
|
|
rm -f /usr/bin/plasma-desktop
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
dpkg-divert --remove --local --rename /usr/bin/plasma-desktop
|
|
|
|
|
|
|
|
divert=""
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
dpkg-divert --package $package_name --rename \
|
|
|
|
|
|
|
|
--divert /usr/bin/plasma-desktop.kde4 \
|
|
|
|
|
|
|
|
--add /usr/bin/plasma-desktop
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
abort-upgrade)
|
|
|
|
abort-upgrade)
|
|
|
|