summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-08-30 20:25:09 +0000
committerStuart Herbert <stuart@gentoo.org>2004-08-30 20:25:09 +0000
commitc62515f6f1e1c50b2306cda1633279a2a6e0a31d (patch)
tree16e818402edcc890dd93cab9214392ccde58a0f1
parentKeyworded ~sparc wrt #61783 (Manifest recommit) (diff)
downloadgentoo-2-c62515f6f1e1c50b2306cda1633279a2a6e0a31d.tar.gz
gentoo-2-c62515f6f1e1c50b2306cda1633279a2a6e0a31d.tar.bz2
gentoo-2-c62515f6f1e1c50b2306cda1633279a2a6e0a31d.zip
Initial import
-rw-r--r--net-misc/nxserver-freenx/ChangeLog11
-rw-r--r--net-misc/nxserver-freenx/Manifest4
-rw-r--r--net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.11
-rw-r--r--net-misc/nxserver-freenx/files/freenx-0.1-gentoo.patch60
-rw-r--r--net-misc/nxserver-freenx/metadata.xml11
-rw-r--r--net-misc/nxserver-freenx/nxserver-freenx-0.1.ebuild61
6 files changed, 148 insertions, 0 deletions
diff --git a/net-misc/nxserver-freenx/ChangeLog b/net-misc/nxserver-freenx/ChangeLog
new file mode 100644
index 000000000000..8a9909449ba8
--- /dev/null
+++ b/net-misc/nxserver-freenx/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/nxserver-freenx
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/ChangeLog,v 1.1 2004/08/30 20:25:09 stuart Exp $
+
+*nxserver-freenx-0.1 (30 Aug 2004)
+
+ 30 Aug 2004; Stuart Herbert <stuart@gentoo.org>
+ +files/freenx-0.1-gentoo.patch, +nxserver-freenx-0.1.ebuild:
+ Initial import; based on an ebuild from Martin Honermeyer
+ <maze@strahlungsfrei.de>; see bug #61874
+
diff --git a/net-misc/nxserver-freenx/Manifest b/net-misc/nxserver-freenx/Manifest
new file mode 100644
index 000000000000..6d4843192508
--- /dev/null
+++ b/net-misc/nxserver-freenx/Manifest
@@ -0,0 +1,4 @@
+MD5 54db635e7977d1e91cefc37181309d44 nxserver-freenx-0.1.ebuild 1977
+MD5 33043815c72ce168ea1411b625b09354 ChangeLog 378
+MD5 00eb0a54ca1f6c92c78f076b5dfe8e30 files/digest-nxserver-freenx-0.1 67
+MD5 51446469a3dc970b28b816487003ab9f files/freenx-0.1-gentoo.patch 2749
diff --git a/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.1 b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.1
new file mode 100644
index 000000000000..95c00a3b8526
--- /dev/null
+++ b/net-misc/nxserver-freenx/files/digest-nxserver-freenx-0.1
@@ -0,0 +1 @@
+MD5 304daa6d49392a23d41c9c526cd45575 nxserver_0.1.orig.tar.gz 9575
diff --git a/net-misc/nxserver-freenx/files/freenx-0.1-gentoo.patch b/net-misc/nxserver-freenx/files/freenx-0.1-gentoo.patch
new file mode 100644
index 000000000000..d86842e37097
--- /dev/null
+++ b/net-misc/nxserver-freenx/files/freenx-0.1-gentoo.patch
@@ -0,0 +1,60 @@
+--- nxnode.orig 2004-07-30 21:20:56.000000000 +0100
++++ nxnode 2004-08-28 21:01:07.220784071 +0100
+@@ -17,7 +17,7 @@
+
+ # constants
+
+-NX_DIR=/usr/NX.free
++NX_DIR=/usr/NX
+
+ read CMDLINE
+
+@@ -144,7 +144,7 @@
+ P=""
+ [ -n "$agent_user" ] && U="-u $agent_user"
+ [ -n "$agent_password" ] && P="-p $agent_password"
+- LD_LIBRARY_PATH="/usr/NX.free/lib" /usr/NX.free/bin/nxdesktop -name "NX - $user@$HOSTNAME:$display - $session (GPL Edition)" -keyboard $keyboard -geometry $geometry $U $P $agent_server 2>>~/.nx/C-$sess_id/session &
++ LD_LIBRARY_PATH=/usr/NX/lib $NX_DIR/bin/nxdesktop -name "NX - $user@$HOSTNAME:$display - $session (GPL Edition)" -keyboard $keyboard -geometry $geometry $U $P $agent_server 2>>~/.nx/C-$sess_id/session &
+ else
+
+ # nxviewer session
+@@ -152,8 +152,8 @@
+ if [ "$type" = "vnc" ]
+ then
+ mkdir -p ~/.nx/C-$sess_id/scripts/
+- echo "$agent_password" | /usr/NX.free/bin/nxpasswd ~/.nx/C-$sess_id/scripts/.passwd doit
+- LD_LIBRARY_PATH="/usr/NX.free/lib" /usr/NX.free/bin/nxviewer -encodings tight hextile copyrect raw -passwd ~/.nx/C-$sess_id/scripts/.passwd -name "NX - $user@$HOSTNAME:$display - $session (GPL Edition)" $agent_server 2>>~/.nx/C-$sess_id/session &
++ echo "$agent_password" | $NX_DIR/bin/nxpasswd ~/.nx/C-$sess_id/scripts/.passwd doit
++ LIB_LIBRARY_PATH=/usr/NX/lib $NX_DIR/bin/nxviewer -encodings tight hextile copyrect raw -passwd ~/.nx/C-$sess_id/scripts/.passwd -name "NX - $user@$HOSTNAME:$display - $session (GPL Edition)" $agent_server 2>>~/.nx/C-$sess_id/session &
+ else
+ # backwards compatibility
+ K=""
+@@ -165,7 +165,7 @@
+
+
+ # "normal" nxagent session
+- LD_LIBRARY_PATH="/usr/NX.free/lib" /usr/NX.free/bin/nxagent -persistent -name "NX - $user@$HOSTNAME:$display - $session (GPL Edition)" $K $G $B :$display 2>>~/.nx/C-$sess_id/session &
++ LD_LIBRARY_PATH=/usr/NX/lib $NX_DIR/bin/nxagent -persistent -name "NX - $user@$HOSTNAME:$display - $session (GPL Edition)" $K $G $B :$display 2>>~/.nx/C-$sess_id/session &
+ fi
+ fi
+ PID=$!
+--- nxserver.orig 2004-08-28 20:57:42.380485559 +0100
++++ nxserver 2004-08-28 21:04:41.223414803 +0100
+@@ -19,7 +19,7 @@
+
+ # Important constants
+
+-NX_DIR=/usr/NX.free
++NX_DIR=/usr/NX
+ NX_SESS_DIR=$NX_DIR/var/db/
+ NX_ETC_DIR=$NX_DIR/etc/
+ VERSION="1.4.0-01"
+@@ -89,7 +89,7 @@
+ cp -f $NX_ETC_DIR/passwords $NX_ETC_DIR/passwords.orig
+ echo "$PASSDB_CHUSER:*" >> $NX_ETC_DIR/passwords
+ # deactivated to avoid problems with comm-server
+- #su - $PASSDB_CHUSER -c "mkdir -p ~/.ssh; cat $NX_ETC_DIR/users.id_dsa.pub >> ~/.ssh/authorized_keys2; chmod 600 ~/.ssh/authorized_keys2"
++ su - $PASSDB_CHUSER -c "mkdir -p ~/.ssh; cat $NX_ETC_DIR/users.id_dsa.pub >> ~/.ssh/authorized_keys2; chmod 600 ~/.ssh/authorized_keys2"
+ }
+
+ passdb_list_user()
diff --git a/net-misc/nxserver-freenx/metadata.xml b/net-misc/nxserver-freenx/metadata.xml
new file mode 100644
index 000000000000..33fd2cf5c120
--- /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.1.ebuild b/net-misc/nxserver-freenx/nxserver-freenx-0.1.ebuild
new file mode 100644
index 000000000000..1b49f8b0dfde
--- /dev/null
+++ b/net-misc/nxserver-freenx/nxserver-freenx-0.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2004 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.1.ebuild,v 1.1 2004/08/30 20:25:09 stuart Exp $
+
+# although we inherit from nxserver eclass, we override a lot of the
+# functions, because that eclass is really designed to work with the
+# commercial NX server
+
+inherit nxserver-1.4
+
+DESCRIPTION="X11 protocol compression library"
+HOMEPAGE="http://www.kalyxo.org/twiki/bin/view/Main/FreeNX"
+SRC_URI="http://kalyxo.freedesktop.org/debian/pool/n/nxserver/nxserver_${PV}.orig.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND="net-misc/nx-x11
+ >=net-misc/nxclient-1.4.0
+ >=net-misc/nxssh-1.4.0"
+
+S=${WORKDIR}/nxserver-${PV}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/freenx-0.1-gentoo.patch
+}
+
+src_compile() {
+ einfo "Nothing to compile"
+}
+
+src_install() {
+
+ # our job here is to make this package look as much like the commercial
+ # nxserver as possible
+ #
+ # this means we only have to maintain the one pkg_postinst() function
+ # for both the commercial and gpl'd servers :)
+
+ into /usr/NX
+ dobin nxserver
+ dobin nxnode
+
+ diropts -m 0700
+ dodir /usr/NX/home/nx/.ssh
+
+ cat << EOF >${D}/usr/NX/home/nx/.ssh/authorized_keys2
+ssh-dss AAAAB3NzaC1kc3MAAACBAJe/0DNBePG9dYLWq7cJ0SqyRf1iiZN/IbzrmBvgPTZnBa5FT/0Lcj39sRYt1paAlhchwUmwwIiSZaON5JnJOZ6jKkjWIuJ9MdTGfdvtY1aLwDMpxUVoGwEaKWOyin02IPWYSkDQb6cceuG9NfPulS9iuytdx0zIzqvGqfvudtufAAAAFQCwosRXR2QA8OSgFWSO6+kGrRJKiwAAAIEAjgvVNAYWSrnFD+cghyJbyx60AAjKtxZ0r/Pn9k94Qt2rvQoMnGgt/zU0v/y4hzg+g3JNEmO1PdHh/wDPVOxlZ6Hb5F4IQnENaAZ9uTZiFGqhBO1c8Wwjiq/MFZy3jZaidarLJvVs8EeT4mZcWxwm7nIVD4lRU2wQ2lj4aTPcepMAAACANlgcCuA4wrC+3Cic9CFkqiwO/Rn1vk8dvGuEQqFJ6f6LVfPfRTfaQU7TGVLk2CzY4dasrwxJ1f6FsT8DHTNGnxELPKRuLstGrFY/PR7KeafeFZDf+fJ3mbX5nxrld3wi5titTnX+8s4IKv29HJguPvOK/SI7cjzA+SqNfD7qEo8= root@nettuno
+EOF
+
+ for x in closed running failed ; do
+ dodir /usr/NX/var/db/$x
+ fperms 0600 /usr/NX/var/db/$x
+ done
+
+ dodir /usr/NX/etc
+ touch ${D}/usr/NX/etc/passwords
+ touch ${D}/usr/NX/etc/passwords.orig
+}