summaryrefslogtreecommitdiff
path: root/net/freenx/files/patch-freenx-nxnode
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-04-09 12:09:09 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-04-09 12:09:09 +0000
commit23973b4aec17674ba22d08d098d7b0ef8582dd3c (patch)
tree060c8724e1bb4c8aa0567b4c56a88ac098d77c79 /net/freenx/files/patch-freenx-nxnode
parentThis is a port of NoMachine's NX server, which is a way to (diff)
NoMachine NX is the next-generation X compression and roundtrip suppression
scheme. It can operate remote X11 sessions over 56k modem dialup links or anything better. This port contains a free (GPL) implementation of the nxserver component. PR: ports/79670 Submitted by: dewey hylton <freenx@deweyonline.com>
Notes
Notes: svn path=/head/; revision=132807
Diffstat (limited to 'net/freenx/files/patch-freenx-nxnode')
-rw-r--r--net/freenx/files/patch-freenx-nxnode57
1 files changed, 57 insertions, 0 deletions
diff --git a/net/freenx/files/patch-freenx-nxnode b/net/freenx/files/patch-freenx-nxnode
new file mode 100644
index 000000000000..6fd627be0c33
--- /dev/null
+++ b/net/freenx/files/patch-freenx-nxnode
@@ -0,0 +1,57 @@
+--- freenx-0.3.1/nxnode.orig Sat Mar 12 12:57:35 2005
++++ freenx-0.3.1/nxnode Mon Mar 28 12:10:41 2005
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/usr/local/bin/bash
+
+ # Free implementation of nxserver components
+ #
+@@ -198,7 +198,7 @@
+ P=""
+ [ -n "$agent_user" ] && U="-u $agent_user"
+ [ -n "$agent_password" ] && P="-p -"
+- echo "$agent_password" | $PATH_BIN/nxdesktop -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" $K $G $U $P $agent_server $AGENT_EXTRA_OPTIONS_RDP 2>>~/.nx/C-$sess_id/session &
++ echo "$agent_password" | LD_LIBRARY_PATH=$NX_DIR/lib $PATH_BIN/nxdesktop -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" $K $G $U $P $agent_server $AGENT_EXTRA_OPTIONS_RDP 2>>~/.nx/C-$sess_id/session &
+ else
+
+ # nxviewer session
+@@ -206,17 +206,17 @@
+ if [ "$type" = "vnc" ]
+ then
+ mkdir -p ~/.nx/C-$sess_id/scripts/
+- echo "$agent_password" | $PATH_BIN/nxpasswd ~/.nx/C-$sess_id/scripts/.passwd doit
+- $PATH_BIN/nxviewer -encodings tight hextile copyrect raw -passwd ~/.nx/C-$sess_id/scripts/.passwd -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" $agent_server $AGENT_EXTRA_OPTIONS_RFB 2>>~/.nx/C-$sess_id/session &
++ echo "$agent_password" | LD_LIBRARY_PATH=$NX_DIR/lib $PATH_BIN/nxpasswd ~/.nx/C-$sess_id/scripts/.passwd doit
++ LD_LIBRARY_PATH=$NX_DIR/lib $PATH_BIN/nxviewer -encodings tight hextile copyrect raw -passwd ~/.nx/C-$sess_id/scripts/.passwd -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" $agent_server $AGENT_EXTRA_OPTIONS_RFB 2>>~/.nx/C-$sess_id/session &
+ else
+ # "normal" nxagent session
+ if [ -n "$R" -a "$ENABLE_ROOTLESS_MODE" != "1" ]
+ then
+ # nxproxy single application mode session
+- $PATH_BIN/nxproxy -C :$display $PROXY_EXTRA_OPTIONS 2>>~/.nx/C-$sess_id/session &
++ LD_LIBRARY_PATH=$NX_DIR/lib $PATH_BIN/nxproxy -C :$display $PROXY_EXTRA_OPTIONS 2>>~/.nx/C-$sess_id/session &
+ else
+ # nxagent session
+- $PATH_BIN/nxagent -persistent $R -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" $K $G $B :$display $AGENT_EXTRA_OPTIONS_X 2>>~/.nx/C-$sess_id/session &
++ LD_LIBRARY_PATH=$NX_DIR/lib $PATH_BIN/nxagent -persistent $R -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" $K $G $B :$display $AGENT_EXTRA_OPTIONS_X 2>>~/.nx/C-$sess_id/session &
+ fi
+ fi
+ fi
+@@ -460,7 +460,7 @@
+ # TODO: imagecompressionmethod ...
+ [ "$imagecompressionmethod" = "0" ] && PACK="pack=nopack,"
+
+- proxy_cookie=$(echo $[$RANDOM*$RANDOM] | md5sum | cut -d" " -f1)
++ proxy_cookie=$(echo $[$RANDOM*$RANDOM] | md5 | cut -d" " -f1)
+
+ # write options file
+ [ -z "$samba" ] && samba=0
+@@ -573,7 +573,7 @@
+ $COMMAND_SMBMOUNT //$computername/$rdir $HOME/$dir -o username $username ip 127.0.0.1 port $port
+ if [ $? -eq 0 ]
+ then
+- $PATH_BIN/nxclient -dialog ok -caption "NXServer Message" -message "Info: Share: '//$computername/$rdir' mounted on: '$HOME/$dir'" -noautokill -display :$display
++ LD_LIBRARY_PATH=$NX_DIR/lib $PATH_BIN/nxclient -dialog ok -caption "NXServer Message" -message "Info: Share: '//$computername/$rdir' mounted on: '$HOME/$dir'" -noautokill -display :$display
+ fi
+ }
+