summaryrefslogtreecommitdiff
path: root/net/freenx/files/patch-freenx-nxserver
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-nxserver
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-nxserver')
-rw-r--r--net/freenx/files/patch-freenx-nxserver44
1 files changed, 44 insertions, 0 deletions
diff --git a/net/freenx/files/patch-freenx-nxserver b/net/freenx/files/patch-freenx-nxserver
new file mode 100644
index 000000000000..0fb6112053f4
--- /dev/null
+++ b/net/freenx/files/patch-freenx-nxserver
@@ -0,0 +1,44 @@
+--- freenx-0.3.1/nxserver.orig Sun Mar 13 19:56:34 2005
++++ freenx-0.3.1/nxserver Mon Mar 28 16:49:04 2005
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/usr/local/bin/bash
+
+ # Free implementation of nxserver components
+ #
+@@ -48,7 +48,7 @@
+
+ passdb_get_crypt_pass()
+ {
+- echo "$@" | md5sum | cut -d" " -f1
++ echo "$@" | md5 | cut -d" " -f1
+ }
+
+ passdb_get_pass()
+@@ -697,7 +697,7 @@
+
+ rm -f "$SESS_LOCKFILE"
+
+- uniqueid=$(echo $[$RANDOM*$RANDOM] | md5sum | cut -d" " -f1 | tr "[a-z]" "[A-Z]")
++ uniqueid=$(echo $[$RANDOM*$RANDOM] | md5 | cut -d" " -f1 | tr "[a-z]" "[A-Z]")
+ FULL_PARAMS="user=$USER&userip=$USERIP&uniqueid=$uniqueid&display=$SESS_DISPLAY&$PARAMS"
+ log "$FULL_PARAMS"
+
+@@ -755,7 +755,7 @@
+ if [ "$ENCRYPTION" = "1" ]
+ then
+ let PROXY_DISPLAY=$SESS_DISPLAY+4000
+- netcat 127.0.0.1 $PROXY_DISPLAY
++ nc 127.0.0.1 $PROXY_DISPLAY
+ exit 0
+ else
+ echo_x "NX> 1001 Bye."
+@@ -953,7 +953,7 @@
+
+ [ ${#CMD_CHUSER} -ge 32 ] && cmd_abort "Error: User $CMD_CHUSER must be shorter than 32 characters."
+ egrep -q "^$CMD_CHUSER:" $NX_ETC_DIR/passwords && cmd_abort "Error: User $CMD_CHUSER already in database."
+- getent passwd | egrep -q "^$CMD_CHUSER:" || cmd_abort "Error: User $CMD_CHUSER not existing on local system. Can't add."
++ cat /etc/passwd | egrep -q "^$CMD_CHUSER:" || cmd_abort "Error: User $CMD_CHUSER not existing on local system. Can't add."
+ passdb_add_user "$CMD_CHUSER"
+ }
+