aboutsummaryrefslogtreecommitdiff
path: root/debian/nxagent.prerm
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-09-28 08:15:52 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-09-28 08:35:42 +0200
commitd35a3622dd57f18cfa94051302a694cbc506d982 (patch)
tree341b28989d39f950d27e10f80b0a123e4b7d92a4 /debian/nxagent.prerm
parent3027f50195dfd3ca8a9cc482a949a5c04eec6bb6 (diff)
downloadnx-libs-d35a3622dd57f18cfa94051302a694cbc506d982.tar.gz
nx-libs-d35a3622dd57f18cfa94051302a694cbc506d982.tar.bz2
nx-libs-d35a3622dd57f18cfa94051302a694cbc506d982.zip
Xinerama symlinking: Attach Xinerama symlinking to nxagent bin:package (and not libnx-xinerama1).3.5.0.x
Backported from Arctica GH 3.6.x branch.
Diffstat (limited to 'debian/nxagent.prerm')
-rwxr-xr-xdebian/nxagent.prerm51
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