Commit 760c5c07 authored by Mike Gabriel's avatar Mike Gabriel

Provide patches that are tarball / distro aware. Either NX (redistributed) has…

Provide patches that are tarball / distro aware. Either NX (redistributed) has been installed to /usr/local/lib/nx via tarball or it has been packagedfor a distribution and is installed to /usr/lib/nx. Other installation paths are currently not supported.
parent d6fee9a4
...@@ -14,6 +14,10 @@ nx-libs (2:3.5.0.2-1) UNRELEASED; urgency=low ...@@ -14,6 +14,10 @@ nx-libs (2:3.5.0.2-1) UNRELEASED; urgency=low
patch: 209_x2goagent-add-man-page.patch patch: 209_x2goagent-add-man-page.patch
* Modify patch: 101_nxagent_set-rgb-path.patch, add path to RGB file * Modify patch: 101_nxagent_set-rgb-path.patch, add path to RGB file
if NX (redistributed) is installed via tarball under /usr/local. if NX (redistributed) is installed via tarball under /usr/local.
* Provide patches that are tarball / distro aware. Either NX (redistributed)
has been installed to /usr/local/lib/nx via tarball or it has been packaged
for a distribution and is installed to /usr/lib/nx. Other installation paths
are currently not supported.
-- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Wed, 11 Jan 2012 15:30:36 +0100 -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Wed, 11 Jan 2012 15:30:36 +0100
......
Description: FHS adaptation for Debian packaging Description: FHS adaptation for Debian packaging
On Debian, NX libraries and binaries are installed to From tarball, NX libraries and binaries are installed to
/usr/lib/nx. /usr/local/lib/nx.
Forwarded: not-needed Forwarded: not-needed
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2012-12-31 Last-Update: 2012-12-31
...@@ -17,7 +17,7 @@ Last-Update: 2012-12-31 ...@@ -17,7 +17,7 @@ Last-Update: 2012-12-31
#endif #endif
#else #else
-#define UsrLibDir Concat3(/usr,/,LibDirName) -#define UsrLibDir Concat3(/usr,/,LibDirName)
+#define UsrLibDir Concat4(/usr,/,LibDirName,/nx) +#define UsrLibDir Concat4(/usr/local,/,LibDirName,/nx)
#ifndef AlternateUsrLibDir #ifndef AlternateUsrLibDir
#define AlternateUsrLibDir NO #define AlternateUsrLibDir NO
#endif #endif
......
...@@ -13,7 +13,7 @@ Last-Update: 2011-12-31 ...@@ -13,7 +13,7 @@ Last-Update: 2011-12-31
EXPATINC = $(EXPATTOP)/lib EXPATINC = $(EXPATTOP)/lib
-INCLUDES = -I$(EXPATINC) -I$(EXPATTOP) -I. -INCLUDES = -I$(EXPATINC) -I$(EXPATTOP) -I.
+INCLUDES = -I/usr/include/xmltok -I$(EXPATINC) -I$(EXPATTOP) -I. +INCLUDES = -I/usr/include/xmltok -I/usr/local/include/xmltok -I$(EXPATINC) -I$(EXPATTOP) -I.
/* /*
* Endianness (for short's) * Endianness (for short's)
......
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
+# along with this program. If not, see http://www.gnu.org/licenses/. +# along with this program. If not, see http://www.gnu.org/licenses/.
+ +
+NX_LIBS=/usr/lib/nx +NX_LIBS=/usr/lib/nx
+LD_LIBRARY_PATH=/usr/lib/nx:/usr/lib/nx/X11:$LD_LIBRARY_PATH +NX_LOCAL_LIBS=/usr/local/lib/nx
+LD_LIBRARY_PATH=$NX_LIBS:$NX_LIBS/X11:$NX_LOCAL_LIBS:$NX_LOCAL_LIBS/X11:$LD_LIBRARY_PATH
+ +
+export NX_LIBS +test -d NX_LIBS && export NX_LIBS || export NX_LIBS=$NX_LOCAL_LIBS
+export LD_LIBRARY_PATH +export LD_LIBRARY_PATH
+ +
+exec /usr/lib/nx/nxagent "$@" +exec $NX_LIBS/nxagent "$@"
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
+# along with this program. If not, see http://www.gnu.org/licenses/. +# along with this program. If not, see http://www.gnu.org/licenses/.
+ +
+NX_LIBS=/usr/lib/nx +NX_LIBS=/usr/lib/nx
+LD_LIBRARY_PATH=/usr/lib/nx:/usr/lib/nx/X11:$LD_LIBRARY_PATH +NX_LOCAL_LIBS=/usr/local/lib/nx
+LD_LIBRARY_PATH=$NX_LIBS:$NX_LIBS/X11:$NX_LOCAL_LIBS:$NX_LOCAL_LIBS/X11:$LD_LIBRARY_PATH
+ +
+export NX_LIBS +test -d NX_LIBS && export NX_LIBS || export NX_LIBS=$NX_LOCAL_LIBS
+export LD_LIBRARY_PATH +export LD_LIBRARY_PATH
+ +
+exec /usr/lib/nx/nxauth "$@" +exec $NX_LIBS/nxauth "$@"
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
+# along with this program. If not, see http://www.gnu.org/licenses/. +# along with this program. If not, see http://www.gnu.org/licenses/.
+ +
+NX_LIBS=/usr/lib/nx +NX_LIBS=/usr/lib/nx
+LD_LIBRARY_PATH=/usr/lib/nx:/usr/lib/nx/X11:$LD_LIBRARY_PATH +NX_LOCAL_LIBS=/usr/local/lib/nx
+LD_LIBRARY_PATH=$NX_LIBS:$NX_LIBS/X11:$NX_LOCAL_LIBS:$NX_LOCAL_LIBS/X11:$LD_LIBRARY_PATH
+ +
+export NX_LIBS +test -d NX_LIBS && export NX_LIBS || export NX_LIBS=$NX_LOCAL_LIBS
+export LD_LIBRARY_PATH +export LD_LIBRARY_PATH
+ +
+exec /usr/lib/nx/nxproxy "$@" +exec $NX_LIBS/nxproxy "$@"
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
+# along with this program. If not, see http://www.gnu.org/licenses/. +# along with this program. If not, see http://www.gnu.org/licenses/.
+ +
+NX_LIBS=/usr/lib/nx +NX_LIBS=/usr/lib/nx
+LD_LIBRARY_PATH=/usr/lib/nx:/usr/lib/nx/X11:$LD_LIBRARY_PATH +NX_LOCAL_LIBS=/usr/local/lib/nx
+LD_LIBRARY_PATH=$NX_LIBS:$NX_LIBS/X11:$NX_LOCAL_LIBS:$NX_LOCAL_LIBS/X11:$LD_LIBRARY_PATH
+ +
+export NX_LIBS +test -d NX_LIBS && export NX_LIBS || export NX_LIBS=$NX_LOCAL_LIBS
+export LD_LIBRARY_PATH +export LD_LIBRARY_PATH
+ +
+exec /usr/lib/nx/x2goagent "$@" +exec $NX_LIBS/../x2go/x2goagent "$@"
Description: FHS path fix for SecurityPolicy file Description: FHS path fix for SecurityPolicy file
This patch is needed on Debian only, not reporting this path This patch is needed for Tarball installation mode of NX (redistributed)
change to upstream. only, not reporting this path change to upstream.
. .
Originally contributed by Marcelo Boveto Shima <marceloshima@gmail.com>. Originally contributed by Marcelo Boveto Shima <marceloshima@gmail.com>.
Forwarded: not-needed Forwarded: not-needed
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31 Last-Update: 2012-01-12
--- a/nx-X11/programs/Xserver/Xext/security.c --- a/nx-X11/programs/Xserver/Xext/security.c
+++ b/nx-X11/programs/Xserver/Xext/security.c +++ b/nx-X11/programs/Xserver/Xext/security.c
@@ -86,7 +86,7 @@ @@ -86,7 +86,7 @@
...@@ -13,7 +13,7 @@ Last-Update: 2011-12-31 ...@@ -13,7 +13,7 @@ Last-Update: 2011-12-31
#ifdef NXAGENT_SERVER #ifdef NXAGENT_SERVER
-#define NX_ALTERNATIVEPOLICYFILE "/usr/lib/xserver/SecurityPolicy" -#define NX_ALTERNATIVEPOLICYFILE "/usr/lib/xserver/SecurityPolicy"
+#define NX_ALTERNATIVEPOLICYFILE "/usr/share/nx/SecurityPolicy" +#define NX_ALTERNATIVEPOLICYFILE "/usr/local/share/nx/SecurityPolicy"
#endif #endif
Description: FHS path fix for keyboard config file Description: FHS path fix for keyboard config file
This patch is needed on Debian only, not reporting this path This patch is needed for Tarball installation and on Distros like
addition to upstream. Debian, not reporting this path addition to upstream.
. .
Originally contributed by FreeNX Team. Originally contributed by FreeNX Team.
Forwarded: not-needed Forwarded: not-needed
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
014_nxcompshad_makefile-uninstall.patch 014_nxcompshad_makefile-uninstall.patch
015_nxproxy_makefile-uninstall.patch 015_nxproxy_makefile-uninstall.patch
016_nx-x11_install-location.patch 016_nx-x11_install-location.patch
016a_debian_nx-X11_install-location.patch
017_nx-x11_update-autotools-helper-files.patch 017_nx-x11_update-autotools-helper-files.patch
018_nx-x11_update-libtool-ltmain-script.patch 018_nx-x11_update-libtool-ltmain-script.patch
019_nx-x11_expat-build-against-system-libxmltok.patch 019_nx-x11_expat-build-against-system-libxmltok.patch
...@@ -23,6 +24,7 @@ ...@@ -23,6 +24,7 @@
023_add-x2goagent-wrapper.patch 023_add-x2goagent-wrapper.patch
101_nxagent_set-rgb-path.patch 101_nxagent_set-rgb-path.patch
102_xserver-xext_set-securitypolicy-path.patch 102_xserver-xext_set-securitypolicy-path.patch
102a_debian_xserver-xext_set-securitypolicy-path.patch
103_nxagent_set-X0-config-path.patch 103_nxagent_set-X0-config-path.patch
105_nxagent_export-remote-keyboard-config.patch 105_nxagent_export-remote-keyboard-config.patch
106_nxagent_utf8-copy-clipboard.patch 106_nxagent_utf8-copy-clipboard.patch
......
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