diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-28 08:15:52 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-28 08:38:19 +0200 |
commit | 45983d13072020f5d210b9c613f0db5636dad6a3 (patch) | |
tree | ae47dd04b9cb8cc0067fddc134019343391657b4 /debian/nxagent.prerm | |
parent | 0382b4018d96cfcc0c406231d294d9a6bff76902 (diff) | |
download | nx-libs-45983d13072020f5d210b9c613f0db5636dad6a3.tar.gz nx-libs-45983d13072020f5d210b9c613f0db5636dad6a3.tar.bz2 nx-libs-45983d13072020f5d210b9c613f0db5636dad6a3.zip |
Xinerama symlinking: Attach Xinerama symlinking to nxagent bin:package (and not libnx-xinerama1).
Diffstat (limited to 'debian/nxagent.prerm')
-rwxr-xr-x | debian/nxagent.prerm | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/debian/nxagent.prerm b/debian/nxagent.prerm new file mode 100755 index 000000000..edc882a46 --- /dev/null +++ b/debian/nxagent.prerm @@ -0,0 +1,51 @@ +#!/bin/sh +# prerm script for nxagent +# +# see: dh_installdeb(1) +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +set -e + + + +case "$1" in + remove) + if test -d /usr/lib/nx/X11/Xinerama; then + if test -e /usr/lib/nx/X11/Xinerama/libNX_X11.so.6; then + rm -f /usr/lib/nx/X11/Xinerama/libNX_X11.so.6 + fi + + if test -e /usr/lib/nx/X11/Xinerama/libNX_Xext.so.6; then + rm -f /usr/lib/nx/X11/Xinerama/libNX_Xext.so.6 + fi + + + if test -e /usr/lib/nx/X11/Xinerama/libXinerama.so.1; then + rm -f /usr/lib/nx/X11/Xinerama/libXinerama.so.1 + fi + fi + ;; + deconfigure|upgrade|failed-upgrade) + : + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 |