Commit a9bc7bdb authored by Mihai Moldovan's avatar Mihai Moldovan

debian/libnx-xinerama1.*: move Xinerama dir back to nx-x11-common. Only delete…

debian/libnx-xinerama1.*: move Xinerama dir back to nx-x11-common. Only delete known files. Fixes RPM build failures.
parent 7a6b40a1
......@@ -160,7 +160,7 @@ install-full:
# $(DESTDIR)$(NXLIBDIR)/X11/Xinerama/libNX_Xext.so.6 -> /usr/<libdir>/libXext.so.6
# $(DESTDIR)$(NXLIBDIR)/X11/Xinerama/libXinerama.so.1 -> /usr/<libdir>/libNX_Xinerama.so.1
# Only create the owned directory here for nx-x11-common.
$(INSTALL_DIR) $(DESTDIR)$(NXLIBDIR)/X11
$(INSTALL_DIR) $(DESTDIR)$(NXLIBDIR)/X11/Xinerama
$(INSTALL_DIR) $(DESTDIR)/$(ETCDIR_NX)
$(INSTALL_DIR) $(DESTDIR)/$(ETCDIR_X2GO)
......
......@@ -26,13 +26,8 @@ case "$1" in
libdir=/usr/lib/#DEB_BUILD_MULTIARCH#
# Already existent files and directories are not removed.
# Already existent files are not removed.
# Users will need to explicitly remove them and (re-) configure this package.
if test ! -e /usr/lib/nx/X11/Xinerama; then
install -d -m 755 /usr/lib/nx/X11/Xinerama
fi
if test -e $libdir/libX11.so.6; then
ln -s $libdir/libX11.so.6 /usr/lib/nx/X11/Xinerama/libNX_X11.so.6
fi
......
......@@ -20,7 +20,18 @@ set -e
case "$1" in
remove)
if test -d /usr/lib/nx/X11/Xinerama; then
rm -rf /usr/lib/nx/X11/Xinerama
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment