aboutsummaryrefslogtreecommitdiff
path: root/debian/post-build-nx.sh
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-02-11 23:39:16 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-02-11 23:39:16 +0100
commit4473c3ab9c4ea4ece35fcc1da1608179404d9fba (patch)
tree7bf4b137cbc931d4c401dd632dd7a775214febbc /debian/post-build-nx.sh
parentec72377982314efccbc8597a65ec364b8b75d251 (diff)
downloadnx-libs-4473c3ab9c4ea4ece35fcc1da1608179404d9fba.tar.gz
nx-libs-4473c3ab9c4ea4ece35fcc1da1608179404d9fba.tar.bz2
nx-libs-4473c3ab9c4ea4ece35fcc1da1608179404d9fba.zip
Do not install libXinerama directly into /usr/lib/nx. Recommended method is installing to /usr/lib/nx/Xinerama, so that you can enable/disable usage of the Xinerama extension.
Diffstat (limited to 'debian/post-build-nx.sh')
-rwxr-xr-xdebian/post-build-nx.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/post-build-nx.sh b/debian/post-build-nx.sh
index 0724e197a..9a6143cb2 100755
--- a/debian/post-build-nx.sh
+++ b/debian/post-build-nx.sh
@@ -13,11 +13,17 @@ cp -aL nx-X11/exports/include/* nx-X11/.build-exports/include
find nx-X11/exports/lib/ | egrep "^.*\.so$" | while read libpath; do
libfile=$(basename $libpath)
libdir=$(dirname $libpath)
+
mkdir -p ${libdir//exports/.build-exports}
cp -L $libpath ${libdir//exports/.build-exports}
+
find $libdir/$libfile.* | while read symlink; do
ln -s $libfile ${libdir//exports/.build-exports}/$(basename $symlink)
done
+
+ # do not install libXinerama into default path...
+ rm -f ${libdir//exports/.build-exports}/lib/libXinerama*
+
done
exit 0