diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-09 12:09:09 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-09 12:09:09 +0000 |
commit | 23973b4aec17674ba22d08d098d7b0ef8582dd3c (patch) | |
tree | 060c8724e1bb4c8aa0567b4c56a88ac098d77c79 /net/freenx/files/patch-freenx-nxsetup | |
parent | This 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-nxsetup')
-rw-r--r-- | net/freenx/files/patch-freenx-nxsetup | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/net/freenx/files/patch-freenx-nxsetup b/net/freenx/files/patch-freenx-nxsetup new file mode 100644 index 000000000000..3d3c7b37d20e --- /dev/null +++ b/net/freenx/files/patch-freenx-nxsetup @@ -0,0 +1,63 @@ +--- freenx-0.3.1/nxsetup.orig Tue Feb 15 19:00:31 2005 ++++ freenx-0.3.1/nxsetup Mon Mar 28 15:53:10 2005 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/local/bin/bash + + # Coypright (c) 2004-2005 by Fabian Franz <freenx@fabian-franz.de>. + # 2005 by Jon Severinsson <jonno@users.berlios.de>. +@@ -97,7 +97,9 @@ + { + set -e + +- if [ "$(pidof sshd)" = "" ] ++ #if [ "$(pidof sshd)" = "" ] ++ MAYBE_PID=`cat /var/run/sshd.pid` ++ if test -z "$MAYBE_PID" + then + echo -n "Starting ssh service ..." + # Generate Host keys if they are not available, yet +@@ -129,10 +131,12 @@ + chmod 600 "$NX_LOGFILE" + echo "done" + +- if ! { getent passwd | egrep -q "^nx:"; } ++ #if ! { getent passwd | egrep -q "^nx:"; } ++ if ! { cat /etc/passwd |egrep -q "^nx:"; } + then + echo -n "Setting up user nx ..." +- useradd_nx ++ #useradd_nx ++ pw useradd nx -d $NX_HOME_DIR -s $PATH_BIN/nxserver + echo "done" + fi + +@@ -173,19 +177,22 @@ + echo "done" + + echo -n "Setting up permissions ..." +- chown -R nx:root $NX_SESS_DIR +- chown -R nx:root $NX_ETC_DIR +- chown -R nx:root $NX_HOME_DIR +- chown nx:root "$NX_LOGFILE" ++ chown -R nx:nx $NX_SESS_DIR ++ chown -R nx:nx $NX_ETC_DIR ++ chown -R nx:nx $NX_HOME_DIR ++ chown nx:nx "$NX_LOGFILE" ++ chmod 0400 $NX_HOME_DIR/.ssh/$SSH_AUTHORIZED_KEYS + echo "done" + } + + uninstall_nx() + { +- if { getent passwd | egrep -q "^nx:"; } ++ #if { getent passwd | egrep -q "^nx:"; } ++ if { cat /etc/passwd | egrep -q "^nx:"; } + then + echo -n "Removing user nx ..." +- userdel nx ++ #userdel nx ++ pw userdel nx + echo "done" + fi + |