summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscruggsj <scruggsj@localhost>2006-03-07 22:49:48 +0000
committerscruggsj <scruggsj@localhost>2006-03-07 22:49:48 +0000
commitc8a03db21eca2822ee67a0d4bb118b64d21d01a7 (patch)
tree231a9750ca12c7477fbe8595a4f9354bc3ccc4f2
parentChangelog: (diff)
downloadnx-c8a03db21eca2822ee67a0d4bb118b64d21d01a7.tar.gz
nx-c8a03db21eca2822ee67a0d4bb118b64d21d01a7.tar.bz2
nx-c8a03db21eca2822ee67a0d4bb118b64d21d01a7.zip
Changelog:
* Added ebuild for the latest stable release: 0.4.4 * Added abuild to the latest development release of the 0.4.x series because this is the last release to support the old 1.4.0 backend. * Added abuild to point to the brand new pre-release of the 0.5.0 branch. This should have a lot of bug fixes in it and a lot of new features. * Added a patch to all three of them that fixes an error with xorg 7. svn path=/testing/; revision=13
-rw-r--r--net-misc/nxserver-freenx/Manifest30
-rw-r--r--net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.4.4-r13
-rw-r--r--net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.4.5.200603053
-rw-r--r--net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.5.0.20060307-r43
-rw-r--r--net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch16
-rw-r--r--net-misc/nxserver-freenx/files/nxserver-freenx-0.4.4-xorg7.patch29
-rw-r--r--net-misc/nxserver-freenx/files/nxserver-freenx-0.4.5-xorg7.patch29
-rw-r--r--net-misc/nxserver-freenx/metadata.xml11
-rw-r--r--net-misc/nxserver-freenx/nxserver-freenx-0.4.4-r1.ebuild102
-rw-r--r--net-misc/nxserver-freenx/nxserver-freenx-0.4.5.20060305.ebuild141
-rw-r--r--net-misc/nxserver-freenx/nxserver-freenx-0.5.0.20060307-r4.ebuild141
11 files changed, 508 insertions, 0 deletions
diff --git a/net-misc/nxserver-freenx/Manifest b/net-misc/nxserver-freenx/Manifest
new file mode 100644
index 0000000..494c5a0
--- /dev/null
+++ b/net-misc/nxserver-freenx/Manifest
@@ -0,0 +1,30 @@
+MD5 dfb3c66aa16b74ac4f38083a81d5e605 files/digest-nxserver-freenx-0.4.4-r1 235
+RMD160 1aa6af87eacf5d91ec94646ca3a8832dd6e98273 files/digest-nxserver-freenx-0.4.4-r1 235
+SHA256 e6484c4c51a3cb2df0b871c0b31b7de28a1ec512645256c71912cacdb9fb6478 files/digest-nxserver-freenx-0.4.4-r1 235
+MD5 9630b2316545cdb60a1a900a1db5baf8 files/digest-nxserver-freenx-0.4.5.20060305 262
+RMD160 bd58fc459ab3c312feb17e729a996dcb0ad26e6a files/digest-nxserver-freenx-0.4.5.20060305 262
+SHA256 257ec699ad9ad119f77d1f93c1c3e4738fff52790671c7763aa3b6ef984014eb files/digest-nxserver-freenx-0.4.5.20060305 262
+MD5 a4b5d0d9f7ec977514c173c188edec99 files/digest-nxserver-freenx-0.5.0.20060307-r4 289
+RMD160 f88be1c8fb230afb1ee6b6d4807e78c459d1ac5a files/digest-nxserver-freenx-0.5.0.20060307-r4 289
+SHA256 ae50c428aa7ec8a00c84a403473bddb2f39326129ab8dd26ba01af41d9adde00 files/digest-nxserver-freenx-0.5.0.20060307-r4 289
+MD5 925fd2cad3adceb556bf1de6cf866ed0 files/freenx-0.4.4-adduser-fix.patch 562
+RMD160 a6dcc853d73cf13cf395cc346fa5da86a00ec4ec files/freenx-0.4.4-adduser-fix.patch 562
+SHA256 f5cbff53a8fe403e7068b43bc4c3005132e578e14effcbd3063ccf5da112ed17 files/freenx-0.4.4-adduser-fix.patch 562
+MD5 39f14a5d716264bcb04988f14d00a22d files/nxserver-freenx-0.4.4-xorg7.patch 1079
+RMD160 4efa015b61d29c0a19ceb43bb3142fdd9411569f files/nxserver-freenx-0.4.4-xorg7.patch 1079
+SHA256 f79919173211ca5d63a6921b0eb303f850d621d1b4f3a2e93bf834d9d4233f89 files/nxserver-freenx-0.4.4-xorg7.patch 1079
+MD5 2c6946908ee2002bd76e04036f5c3cbd files/nxserver-freenx-0.4.5-xorg7.patch 1100
+RMD160 a3f5df283de33cbab9bfa1ad4c63f802c9d64905 files/nxserver-freenx-0.4.5-xorg7.patch 1100
+SHA256 46a0237a7c89cd1c1a3d788d506d33d2f41259b726c7ad7c46321e9b09b710e1 files/nxserver-freenx-0.4.5-xorg7.patch 1100
+MD5 77fd36d93b0a1b9f35abbe6a1c146561 metadata.xml 482
+RMD160 43d7ffbdffac6f9862dfea8535446439e8c03cc7 metadata.xml 482
+SHA256 a057fa4844b9a4b9a6213a3dad7e620bee77a1e36bc0571ea948ecf585c17e45 metadata.xml 482
+MD5 c182eaee5d91912bef8fc315e0cf3c22 nxserver-freenx-0.4.4-r1.ebuild 3176
+RMD160 b531e048dca1bf85f66df4fb24f065f523b53237 nxserver-freenx-0.4.4-r1.ebuild 3176
+SHA256 7c9d905d1b4b0ed3a1cfb4281640c868ec3ef64949d66f7ddc0907d44cb1e4ca nxserver-freenx-0.4.4-r1.ebuild 3176
+MD5 6c9ff19e82867a28d78ce3f8c53e5d71 nxserver-freenx-0.4.5.20060305.ebuild 3888
+RMD160 a7423e5551bb30b0c83c7f7a6fd0f5d9958b268a nxserver-freenx-0.4.5.20060305.ebuild 3888
+SHA256 9abf4296d20f8a4cd5c15a88e8598b8fdf80062c67fbf86911a30f1a88005067 nxserver-freenx-0.4.5.20060305.ebuild 3888
+MD5 3e674b1e47421254c972aeaf6c704051 nxserver-freenx-0.5.0.20060307-r4.ebuild 3931
+RMD160 9135aebf7dbd9540930b128394bf37861e48678b nxserver-freenx-0.5.0.20060307-r4.ebuild 3931
+SHA256 64af2526817440ce80a3129aea09d7fd7e623920ecefcf196395bcb62d826c32 nxserver-freenx-0.5.0.20060307-r4.ebuild 3931
diff --git a/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.4.4-r1 b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.4.4-r1
new file mode 100644
index 0000000..472e56b
--- /dev/null
+++ b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.4.4-r1
@@ -0,0 +1,3 @@
+MD5 4d92f80718edbaacd875404bcb2850b6 freenx-0.4.4.tar.gz 46111
+RMD160 37fd095f6e208b881df5b40dc4cb2fabd1a91456 freenx-0.4.4.tar.gz 46111
+SHA256 8f661edbf9137e31df4c5e6134cabc89921c0e9a742943264f3d7e9dbeae8674 freenx-0.4.4.tar.gz 46111
diff --git a/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.4.5.20060305 b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.4.5.20060305
new file mode 100644
index 0000000..c41f97d
--- /dev/null
+++ b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.4.5.20060305
@@ -0,0 +1,3 @@
+MD5 9ec79040a5a7d50c8d92499a5c249cdd freenx-0.4.5.20060305.tar.gz 49156
+RMD160 2c159d42a02a0695d96dfbe88c995fbd8768b096 freenx-0.4.5.20060305.tar.gz 49156
+SHA256 c03307568ea978fd23cca58be123f51e87fb7c8e38ff57ec552e303128b3eb2f freenx-0.4.5.20060305.tar.gz 49156
diff --git a/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.5.0.20060307-r4 b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.5.0.20060307-r4
new file mode 100644
index 0000000..36bbd49
--- /dev/null
+++ b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.5.0.20060307-r4
@@ -0,0 +1,3 @@
+MD5 6077e42a32a6aa814b8fbfa267b5ff97 freenx-0.5.0-test-2006-03-07-4.tar.gz 49619
+RMD160 c12fba3c1042492ce575584f81f192c97ec69fc3 freenx-0.5.0-test-2006-03-07-4.tar.gz 49619
+SHA256 cd488b87cc6f950e8a188de4c4133ea64e3dbad20a46694369e8642ab9634f9f freenx-0.5.0-test-2006-03-07-4.tar.gz 49619
diff --git a/net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch b/net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch
new file mode 100644
index 0000000..773ef3a
--- /dev/null
+++ b/net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch
@@ -0,0 +1,16 @@
+diff -purN freenx-0.4.4.org/nxsetup freenx-0.4.4.new/nxsetup
+--- freenx-0.4.4.org/nxsetup 2005-08-02 12:29:59.000000000 -0500
++++ freenx-0.4.4.new/nxsetup 2005-08-07 19:17:08.000000000 -0500
+@@ -116,7 +116,11 @@ useradd_nx()
+ # no, its a "normal" useradd
+ else
+ USERADD_OPTIONS="-d $NX_HOME_DIR -s $PATH_BIN/nxserver"
+- [ -n $SETUP_GID ] && USERADD_OPTIONS="-g $SETUP_GID $USERADD_OPTIONS"
++ # gid specified?
++ if [ -n "$SETUP_GID" ]
++ then
++ USERADD_OPTIONS="-g $SETUP_GID $USERADD_OPTIONS"
++ fi
+ # uid specified?
+ if [ -n "$SETUP_UID" ]
+ then
diff --git a/net-misc/nxserver-freenx/files/nxserver-freenx-0.4.4-xorg7.patch b/net-misc/nxserver-freenx/files/nxserver-freenx-0.4.4-xorg7.patch
new file mode 100644
index 0000000..72d1a99
--- /dev/null
+++ b/net-misc/nxserver-freenx/files/nxserver-freenx-0.4.4-xorg7.patch
@@ -0,0 +1,29 @@
+--- freenx-server/nxnode 2005-08-07 12:53:57.000000000 +0300
++++ freenx-server/nxnode 2006-02-02 00:00:25.000000000 +0200
+@@ -22,6 +22,26 @@
+
+ echo "NX> 1000 NXNODE - Version $NX_VERSION $NX_LICENSE"
+
++### Patch for Xorg-x11 >=7.0 by Oskari Rauta begins here ###
++
++# Meet me at IRC-net/#gentoo as jake1981 or jake___
++# or mail me to jake1981 under domain luukku.com
++# if you got questions. Implement/use or develop it freely.
++
++# Reason of patch:
++# Keyboard doesn't work in Xorg-x11 >= 7.0 if XKEYSYMDB isn't exported
++# and pointed to correct file. Hopefully your file is located in same
++# place as mine (default installation location).
++
++if test `X -version 2>&1 | grep "X Window System Version" | awk '{ print $5 }' | awk -F. '{ print $1 }'` -ge 7
++ then
++ export XKEYSYMDB=/usr/share/X11/XKeysymDB
++ echo "NX> NXNODE - Detected Xorg-X11 Version 7.0 or newer."
++ echo "NX> NXNODE - Exporting XKEYSYMDB for enabling keyboard."
++ fi
++
++### Patch for Xorg-x11 >= 7.0 by Oskari Rauta ends here..
++
+ if [ "$1" != "--check" -a "$1" != "--setkey" ]
+ then
+ read CMDLINE
diff --git a/net-misc/nxserver-freenx/files/nxserver-freenx-0.4.5-xorg7.patch b/net-misc/nxserver-freenx/files/nxserver-freenx-0.4.5-xorg7.patch
new file mode 100644
index 0000000..4f169ab
--- /dev/null
+++ b/net-misc/nxserver-freenx/files/nxserver-freenx-0.4.5-xorg7.patch
@@ -0,0 +1,29 @@
+--- freenx-server/nxnode 2005-08-07 12:53:57.000000000 +0300
++++ freenx-server/nxnode 2006-02-02 00:00:25.000000000 +0200
+@@ -22,6 +22,26 @@
+
+ echo "NX> 1000 NXNODE - Version $NX_VERSION $NX_LICENSE"
+
++### Patch for Xorg-x11 >=7.0 by Oskari Rauta begins here ###
++
++# Meet me at IRC-net/#gentoo as jake1981 or jake___
++# or mail me to jake1981 under domain luukku.com
++# if you got questions. Implement/use or develop it freely.
++
++# Reason of patch:
++# Keyboard doesn't work in Xorg-x11 >= 7.0 if XKEYSYMDB isn't exported
++# and pointed to correct file. Hopefully your file is located in same
++# place as mine (default installation location).
++
++if test `X -version 2>&1 | grep "X Window System Version" | awk '{ print $5 }' | awk -F. '{ print $1 }'` -ge 7
++ then
++ export XKEYSYMDB=/usr/share/X11/XKeysymDB
++ echo "NX> NXNODE - Detected Xorg-X11 Version 7.0 or newer."
++ echo "NX> NXNODE - Exporting XKEYSYMDB for enabling keyboard."
++ fi
++
++### Patch for Xorg-x11 >= 7.0 by Oskari Rauta ends here..
++
+ if [ "$1" != "--check" -a "$1" != "--setkey" -a "$1" != "--agent" ]
+ then
+ read CMDLINE
diff --git a/net-misc/nxserver-freenx/metadata.xml b/net-misc/nxserver-freenx/metadata.xml
new file mode 100644
index 0000000..33fd2cf
--- /dev/null
+++ b/net-misc/nxserver-freenx/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>stuart@gentoo.org</email>
+ <name>Stuart Herbert</name>
+ <description>Maintainer</description>
+</maintainer>
+<longdescription>NXServer is an X11/VNC/NXServer proxy server especially tuned for using remote desktops over low-bandwidth links such as the Internet, WANS, and wireless</longdescription>
+</pkgmetadata>
diff --git a/net-misc/nxserver-freenx/nxserver-freenx-0.4.4-r1.ebuild b/net-misc/nxserver-freenx/nxserver-freenx-0.4.4-r1.ebuild
new file mode 100644
index 0000000..664f7f1
--- /dev/null
+++ b/net-misc/nxserver-freenx/nxserver-freenx-0.4.4-r1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.4.4.ebuild,v 1.1 2005/05/23 19:10:14 stuart Exp $
+
+inherit eutils
+
+DESCRIPTION="An X11/RDP/VNC proxy server especially well suited to low bandwidth links such as ISDN or modem"
+HOMEPAGE="http://freenx.berlios.de/"
+SRC_URI="http://debian.tu-bs.de/knoppix/nx/freenx-${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+RESTRICT="nomirror strip"
+IUSE="commercial"
+DEPEND="virtual/ssh
+ dev-tcltk/expect
+ net-analyzer/gnu-netcat
+ x86? ( commercial? ( >=net-misc/nxclient-1.4* )
+ !commercial? ( !net-misc/nxclient ) )
+ !x86? ( !net-misc/nxclient )
+ >=net-misc/nxproxy-1.4.0
+ >=net-misc/nx-x11-1.4.0
+ !net-misc/nxserver-personal
+ !net-misc/nxserver-business
+ !net-misc/nxserver-enterprise"
+
+S=${WORKDIR}/freenx-${PV}
+
+pkg_setup () {
+ enewuser nx -1 -1 /usr/NX/home/nx
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch gentoo-nomachine.diff
+ # Patch to fix the adduser error
+ epatch $FILESDIR/freenx-0.4.4-adduser-fix.patch
+ epatch $FILESDIR/$P-0.4.4-xorg7.patch
+}
+
+src_compile() {
+ einfo "Nothing to compile"
+}
+
+src_install() {
+
+ NX_DIR=/usr/NX
+ NX_ETC_DIR=$NX_DIR/etc
+ NX_SESS_DIR=$NX_DIR/var/db
+ NX_HOME_DIR=$NX_DIR/home/nx
+
+ into ${NX_DIR}
+ dobin nxserver
+ dobin nxnode
+ dobin nxnode-login
+ dobin nxkeygen
+ dobin nxloadconfig
+ dobin nxsetup
+ ( use x86 && use commercial ) || dobin nxprint
+ ( use x86 && use commercial ) || dobin nxclient
+
+ dodir ${NX_ETC_DIR}
+ for x in passwords passwords.orig ; do
+ touch ${D}${NX_ETC_DIR}/$x
+ chmod 600 ${D}${NX_ETC_DIR}/$x
+ done
+
+ insinto ${NX_ETC_DIR}
+ doins node.conf.sample
+
+ ssh-keygen -f ${D}${NX_ETC_DIR}/users.id_dsa -t dsa -N "" -q
+
+ for x in closed running failed ; do
+ keepdir ${NX_SESS_DIR}/$x
+ fperms 0700 ${NX_SESS_DIR}/$x
+ done
+
+ dodir ${NX_HOME_DIR}/.ssh
+ fperms 0700 ${NX_HOME_DIR}
+ fperms 0700 ${NX_HOME_DIR}/.ssh
+
+ cat << EOF >${D}${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key
+ssh-dss AAAAB3NzaC1kc3MAAACBAJe/0DNBePG9dYLWq7cJ0SqyRf1iiZN/IbzrmBvgPTZnBa5FT/0Lcj39sRYt1paAlhchwUmwwIiSZaON5JnJOZ6jKkjWIuJ9MdTGfdvtY1aLwDMpxUVoGwEaKWOyin02IPWYSkDQb6cceuG9NfPulS9iuytdx0zIzqvGqfvudtufAAAAFQCwosRXR2QA8OSgFWSO6+kGrRJKiwAAAIEAjgvVNAYWSrnFD+cghyJbyx60AAjKtxZ0r/Pn9k94Qt2rvQoMnGgt/zU0v/y4hzg+g3JNEmO1PdHh/wDPVOxlZ6Hb5F4IQnENaAZ9uTZiFGqhBO1c8Wwjiq/MFZy3jZaidarLJvVs8EeT4mZcWxwm7nIVD4lRU2wQ2lj4aTPcepMAAACANlgcCuA4wrC+3Cic9CFkqiwO/Rn1vk8dvGuEQqFJ6f6LVfPfRTfaQU7TGVLk2CzY4dasrwxJ1f6FsT8DHTNGnxELPKRuLstGrFY/PR7KeafeFZDf+fJ3mbX5nxrld3wi5titTnX+8s4IKv29HJguPvOK/SI7cjzA+SqNfD7qEo8= root@nettuno
+EOF
+ fperms 0600 ${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key
+ cp ${D}${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key ${D}${NX_HOME_DIR}/.ssh/authorized_keys2
+ fperms 0600 ${NX_HOME_DIR}/.ssh/authorized_keys2
+
+ echo -n "127.0.0.1" ${D}${NX_HOME_DIR}/.ssh/known_hosts
+
+ chown -R nx:root ${D}${NX_DIR}
+}
+
+pkg_postinst () {
+ usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!"
+
+ echo
+ einfo "If you are using NX version 1.5.0, make sure you edit the file:"
+ einfo "/usr/NX/etc/node.conf and set ENABLE_1_5_0_BACKEND to 1."
+ echo
+}
diff --git a/net-misc/nxserver-freenx/nxserver-freenx-0.4.5.20060305.ebuild b/net-misc/nxserver-freenx/nxserver-freenx-0.4.5.20060305.ebuild
new file mode 100644
index 0000000..aebf485
--- /dev/null
+++ b/net-misc/nxserver-freenx/nxserver-freenx-0.4.5.20060305.ebuild
@@ -0,0 +1,141 @@
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.4.5.ebuild,v 1.1 2005/05/23 19:10:14 stuart Exp $
+
+inherit eutils
+
+DESCRIPTION="An X11/RDP/VNC proxy server especially well suited to low bandwidth links such as ISDN or modem"
+HOMEPAGE="http://freenx.berlios.de/"
+URI_BASE="http://svn.gnqs.org/downloads/gentoo-nx-overlay"
+SRC_URI="$URI_BASE/freenx-${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+RESTRICT="nomirror strip"
+IUSE="commercial"
+DEPEND="virtual/ssh
+ dev-tcltk/expect
+ sys-apps/gawk
+ net-analyzer/gnu-netcat
+ x86? ( commercial? ( >=net-misc/nxclient-1.4.0 )
+ !commercial? ( !net-misc/nxclient ) )
+ !x86? ( !net-misc/nxclient )
+ >=net-misc/nxproxy-1.4.0
+ >=net-misc/nx-x11-1.4.0
+ !net-misc/nxserver-personal
+ !net-misc/nxserver-business
+ !net-misc/nxserver-enterprise"
+
+S=${WORKDIR}/freenx-${PV}
+
+pkg_setup () {
+ enewuser nx -1 -1 /usr/NX/home/nx
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch gentoo-nomachine.diff
+ epatch $FILESDIR/$PN-0.4.5-xorg7.patch
+}
+
+src_compile() {
+ einfo "Nothing to compile"
+}
+
+src_install() {
+
+ NX_DIR=/usr/NX
+ NX_ETC_DIR=$NX_DIR/etc
+ NX_SESS_DIR=$NX_DIR/var/db
+ NX_HOME_DIR=$NX_DIR/home/nx
+
+ into ${NX_DIR}
+ dobin nxserver
+ dobin nxnode
+ dobin nxnode-login
+ dobin nxkeygen
+ dobin nxloadconfig
+ dobin nxsetup
+ ( use x86 && use commercial ) || dobin nxprint
+ ( use x86 && use commercial ) || dobin nxclient
+
+ dodir ${NX_ETC_DIR}
+ for x in passwords passwords.orig ; do
+ touch ${D}${NX_ETC_DIR}/$x
+ chmod 600 ${D}${NX_ETC_DIR}/$x
+ done
+
+ insinto ${NX_ETC_DIR}
+ doins node.conf.sample
+
+ ssh-keygen -f ${D}${NX_ETC_DIR}/users.id_dsa -t dsa -N "" -q
+
+ for x in closed running failed ; do
+ keepdir ${NX_SESS_DIR}/$x
+ fperms 0700 ${NX_SESS_DIR}/$x
+ done
+
+ dodir ${NX_HOME_DIR}/.ssh
+ fperms 0700 ${NX_HOME_DIR}
+ fperms 0700 ${NX_HOME_DIR}/.ssh
+
+ cat << EOF >${D}${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key
+ssh-dss AAAAB3NzaC1kc3MAAACBAJe/0DNBePG9dYLWq7cJ0SqyRf1iiZN/IbzrmBvgPTZnBa5FT/0Lcj39sRYt1paAlhchwUmwwIiSZaON5JnJOZ6jKkjWIuJ9MdTGfdvtY1aLwDMpxUVoGwEaKWOyin02IPWYSkDQb6cceuG9NfPulS9iuytdx0zIzqvGqfvudtufAAAAFQCwosRXR2QA8OSgFWSO6+kGrRJKiwAAAIEAjgvVNAYWSrnFD+cghyJbyx60AAjKtxZ0r/Pn9k94Qt2rvQoMnGgt/zU0v/y4hzg+g3JNEmO1PdHh/wDPVOxlZ6Hb5F4IQnENaAZ9uTZiFGqhBO1c8Wwjiq/MFZy3jZaidarLJvVs8EeT4mZcWxwm7nIVD4lRU2wQ2lj4aTPcepMAAACANlgcCuA4wrC+3Cic9CFkqiwO/Rn1vk8dvGuEQqFJ6f6LVfPfRTfaQU7TGVLk2CzY4dasrwxJ1f6FsT8DHTNGnxELPKRuLstGrFY/PR7KeafeFZDf+fJ3mbX5nxrld3wi5titTnX+8s4IKv29HJguPvOK/SI7cjzA+SqNfD7qEo8= root@nettuno
+EOF
+ fperms 0600 ${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key
+ cp ${D}${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key ${D}${NX_HOME_DIR}/.ssh/authorized_keys2
+ fperms 0600 ${NX_HOME_DIR}/.ssh/authorized_keys2
+
+ echo -n "127.0.0.1" ${D}${NX_HOME_DIR}/.ssh/known_hosts
+
+ chown -R nx:root ${D}${NX_DIR}
+
+ SANDBOX_ON=0
+
+ touch /var/log/nxserver.log
+ chown nx /var/log/nxserver.log
+
+ dodir /etc/env.d
+ cat << EOF >${D}/etc/env.d/50nxcomp
+PATH=/usr/NX/bin
+ROOTPATH=/usr/NX/bin
+LDPATH=/usr/NX/lib
+CONFIG_PROTECT=/usr/NX/etc
+EOF
+
+ dodir /etc/init.d
+ cat << EOF >${D}/etc/init.d/nxserver
+#!/sbin/runscript
+
+depend() {
+ use sshd
+}
+
+start() {
+ einfo "Starting nxserver"
+ /usr/NX/bin/nxserver --start >/dev/null
+ eend $?
+}
+
+stop() {
+ einfo "Stopping nxserver"
+ /usr/NX/bin/nxserver --stop >/dev/null
+ eend $?
+}
+EOF
+ chmod +x /etc/init.d/nxserver
+ SANDBOX_ON=1
+}
+
+pkg_postinst () {
+ usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!"
+
+ echo
+ einfo "If you are using NX version 1.5.0, make sure you edit the file:"
+ einfo "/usr/NX/etc/node.conf and set ENABLE_1_5_0_BACKEND to 1."
+ echo
+ einfo "Init script /etc/init.d/nxserver created. Remember to add"
+ einfo "nxserver to default runlevel if you want it to start at boot:"
+ einfo " rc-update add nxserver default"
+ echo
+}
diff --git a/net-misc/nxserver-freenx/nxserver-freenx-0.5.0.20060307-r4.ebuild b/net-misc/nxserver-freenx/nxserver-freenx-0.5.0.20060307-r4.ebuild
new file mode 100644
index 0000000..cfd2e4c
--- /dev/null
+++ b/net-misc/nxserver-freenx/nxserver-freenx-0.5.0.20060307-r4.ebuild
@@ -0,0 +1,141 @@
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.5.0.20060307-r4.ebuild,v 1.1 2005/05/23 19:10:14 stuart Exp $
+
+inherit eutils
+
+DESCRIPTION="An X11/RDP/VNC proxy server especially well suited to low bandwidth links such as ISDN or modem"
+HOMEPAGE="http://freenx.berlios.de/"
+URI_BASE="http://debian.tu-bs.de/knoppix/nx/snapshots"
+SRC_URI="$URI_BASE/freenx-0.5.0-test-2006-03-07-4.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+RESTRICT="nomirror strip"
+IUSE="commercial"
+DEPEND="virtual/ssh
+ dev-tcltk/expect
+ sys-apps/gawk
+ net-analyzer/gnu-netcat
+ x86? ( commercial? ( >=net-misc/nxclient-1.5.0)
+ !commercial? ( !net-misc/nxclient ) )
+ !x86? ( !net-misc/nxclient )
+ >=net-misc/nxproxy-1.5.0
+ >=net-misc/nx-x11-1.5.0
+ !net-misc/nxserver-personal
+ !net-misc/nxserver-business
+ !net-misc/nxserver-enterprise"
+
+S=${WORKDIR}/freenx-0.5.0-test-2006-03-07-4
+
+pkg_setup () {
+ enewuser nx -1 -1 /usr/NX/home/nx
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch gentoo-nomachine.diff
+ epatch $FILESDIR/$PN-0.4.5-xorg7.patch
+}
+
+src_compile() {
+ einfo "Nothing to compile"
+}
+
+src_install() {
+
+ NX_DIR=/usr/NX
+ NX_ETC_DIR=$NX_DIR/etc
+ NX_SESS_DIR=$NX_DIR/var/db
+ NX_HOME_DIR=$NX_DIR/home/nx
+
+ into ${NX_DIR}
+ dobin nxserver
+ dobin nxnode
+ dobin nxnode-login
+ dobin nxkeygen
+ dobin nxloadconfig
+ dobin nxsetup
+ ( use x86 && use commercial ) || dobin nxprint
+ ( use x86 && use commercial ) || dobin nxclient
+
+ dodir ${NX_ETC_DIR}
+ for x in passwords passwords.orig ; do
+ touch ${D}${NX_ETC_DIR}/$x
+ chmod 600 ${D}${NX_ETC_DIR}/$x
+ done
+
+ insinto ${NX_ETC_DIR}
+ doins node.conf.sample
+
+ ssh-keygen -f ${D}${NX_ETC_DIR}/users.id_dsa -t dsa -N "" -q
+
+ for x in closed running failed ; do
+ keepdir ${NX_SESS_DIR}/$x
+ fperms 0700 ${NX_SESS_DIR}/$x
+ done
+
+ dodir ${NX_HOME_DIR}/.ssh
+ fperms 0700 ${NX_HOME_DIR}
+ fperms 0700 ${NX_HOME_DIR}/.ssh
+
+ cat << EOF >${D}${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key
+ssh-dss AAAAB3NzaC1kc3MAAACBAJe/0DNBePG9dYLWq7cJ0SqyRf1iiZN/IbzrmBvgPTZnBa5FT/0Lcj39sRYt1paAlhchwUmwwIiSZaON5JnJOZ6jKkjWIuJ9MdTGfdvtY1aLwDMpxUVoGwEaKWOyin02IPWYSkDQb6cceuG9NfPulS9iuytdx0zIzqvGqfvudtufAAAAFQCwosRXR2QA8OSgFWSO6+kGrRJKiwAAAIEAjgvVNAYWSrnFD+cghyJbyx60AAjKtxZ0r/Pn9k94Qt2rvQoMnGgt/zU0v/y4hzg+g3JNEmO1PdHh/wDPVOxlZ6Hb5F4IQnENaAZ9uTZiFGqhBO1c8Wwjiq/MFZy3jZaidarLJvVs8EeT4mZcWxwm7nIVD4lRU2wQ2lj4aTPcepMAAACANlgcCuA4wrC+3Cic9CFkqiwO/Rn1vk8dvGuEQqFJ6f6LVfPfRTfaQU7TGVLk2CzY4dasrwxJ1f6FsT8DHTNGnxELPKRuLstGrFY/PR7KeafeFZDf+fJ3mbX5nxrld3wi5titTnX+8s4IKv29HJguPvOK/SI7cjzA+SqNfD7qEo8= root@nettuno
+EOF
+ fperms 0600 ${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key
+ cp ${D}${NX_HOME_DIR}/.ssh/server.id_dsa.pub.key ${D}${NX_HOME_DIR}/.ssh/authorized_keys2
+ fperms 0600 ${NX_HOME_DIR}/.ssh/authorized_keys2
+
+ echo -n "127.0.0.1" ${D}${NX_HOME_DIR}/.ssh/known_hosts
+
+ chown -R nx:root ${D}${NX_DIR}
+
+ SANDBOX_ON=0
+
+ touch /var/log/nxserver.log
+ chown nx /var/log/nxserver.log
+
+ dodir /etc/env.d
+ cat << EOF >${D}/etc/env.d/50nxcomp
+PATH=/usr/NX/bin
+ROOTPATH=/usr/NX/bin
+LDPATH=/usr/NX/lib
+CONFIG_PROTECT=/usr/NX/etc
+EOF
+
+ dodir /etc/init.d
+ cat << EOF >${D}/etc/init.d/nxserver
+#!/sbin/runscript
+
+depend() {
+ use sshd
+}
+
+start() {
+ einfo "Starting nxserver"
+ /usr/NX/bin/nxserver --start >/dev/null
+ eend $?
+}
+
+stop() {
+ einfo "Stopping nxserver"
+ /usr/NX/bin/nxserver --stop >/dev/null
+ eend $?
+}
+EOF
+ chmod +x /etc/init.d/nxserver
+ SANDBOX_ON=1
+}
+
+pkg_postinst () {
+ usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!"
+
+ echo
+ einfo "If you are using NX version 1.5.0, make sure you edit the file:"
+ einfo "/usr/NX/etc/node.conf and set ENABLE_1_5_0_BACKEND to 1."
+ echo
+ einfo "Init script /etc/init.d/nxserver created. Remember to add"
+ einfo "nxserver to default runlevel if you want it to start at boot:"
+ einfo " rc-update add nxserver default"
+ echo
+}