summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2007-03-30 16:06:27 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2007-03-30 16:06:27 +0000
commitb563566c723f0eacebfb9fef3e4e5697228f6361 (patch)
tree54e11a46adc5926c71049d34873a7886a54e6370 /net-misc/nxnode
parentMasked net-misc/nxnode and net-misc/nxserver-freeedition on no-multilib profiles (diff)
downloadgentoo-2-b563566c723f0eacebfb9fef3e4e5697228f6361.tar.gz
gentoo-2-b563566c723f0eacebfb9fef3e4e5697228f6361.tar.bz2
gentoo-2-b563566c723f0eacebfb9fef3e4e5697228f6361.zip
Initial commit
Diffstat (limited to 'net-misc/nxnode')
-rw-r--r--net-misc/nxnode/ChangeLog11
-rw-r--r--net-misc/nxnode/Manifest20
-rw-r--r--net-misc/nxnode/files/digest-nxnode-2.1.03
-rw-r--r--net-misc/nxnode/files/nxnode-2.1.0-init70
-rw-r--r--net-misc/nxnode/files/nxnode-2.1.0-setup.patch43
-rw-r--r--net-misc/nxnode/metadata.xml9
-rw-r--r--net-misc/nxnode/nxnode-2.1.0.ebuild102
7 files changed, 258 insertions, 0 deletions
diff --git a/net-misc/nxnode/ChangeLog b/net-misc/nxnode/ChangeLog
new file mode 100644
index 000000000000..da7dffc03c1a
--- /dev/null
+++ b/net-misc/nxnode/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/nxnode
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/ChangeLog,v 1.1 2007/03/30 16:06:27 voyageur Exp $
+
+*nxnode-2.1.0 (30 Mar 2007)
+
+ 30 Mar 2007; Bernard Cafarelli <voyageur@gentoo.org>
+ +files/nxnode-2.1.0-init, +files/nxnode-2.1.0-setup.patch, +metadata.xml,
+ +nxnode-2.1.0.ebuild:
+ Initial commit, bug #153866
+
diff --git a/net-misc/nxnode/Manifest b/net-misc/nxnode/Manifest
new file mode 100644
index 000000000000..25dc91f6bc9f
--- /dev/null
+++ b/net-misc/nxnode/Manifest
@@ -0,0 +1,20 @@
+AUX nxnode-2.1.0-init 1385 RMD160 80c45e04b03674569df8d458e9708005839714f3 SHA1 862d648374461973b522f08201c4b076b0946033 SHA256 0b3489fc45b833908cafb206cf68ed86333b903a8134ef189a5df49cdcd07859
+MD5 7f43d4cfa2725a326357b7dfd20f7192 files/nxnode-2.1.0-init 1385
+RMD160 80c45e04b03674569df8d458e9708005839714f3 files/nxnode-2.1.0-init 1385
+SHA256 0b3489fc45b833908cafb206cf68ed86333b903a8134ef189a5df49cdcd07859 files/nxnode-2.1.0-init 1385
+AUX nxnode-2.1.0-setup.patch 1357 RMD160 f5af6e093ecdb45551b95b1d047065f5f3aa9b54 SHA1 7d3e5a0d51c5a49addea2b1dd75276497e1b5164 SHA256 ee95f966f0598e966d2cef3d8fff0888ec7880afded8d275e2f415939b1508c3
+MD5 82a440e1c0f91809ad5cca32066b4fd0 files/nxnode-2.1.0-setup.patch 1357
+RMD160 f5af6e093ecdb45551b95b1d047065f5f3aa9b54 files/nxnode-2.1.0-setup.patch 1357
+SHA256 ee95f966f0598e966d2cef3d8fff0888ec7880afded8d275e2f415939b1508c3 files/nxnode-2.1.0-setup.patch 1357
+DIST nxnode-2.1.0-22.i386.tar.gz 5185601 RMD160 dc25e4c2ef8b05cedac1b5cb78ec06f4b2263e5e SHA1 dcd5ec104e0e4a6b7eac1f6a86ead73c696f28f8 SHA256 a333ef9efc80c6346e0646b2298f4c113276c44325aff095882da420454b21e7
+EBUILD nxnode-2.1.0.ebuild 2477 RMD160 61bbcb4e26f7bd5613dfb7064a2891b2c202ce98 SHA1 149d4eff295ac2002cf51d639d5d42b1f89cf543 SHA256 da1ce68c1f8a7460e5d4e3a453f17a6aef3c521560f31592bf777deef74f27a5
+MD5 15c98c936bc24eff237ccbdc71ff8218 nxnode-2.1.0.ebuild 2477
+RMD160 61bbcb4e26f7bd5613dfb7064a2891b2c202ce98 nxnode-2.1.0.ebuild 2477
+SHA256 da1ce68c1f8a7460e5d4e3a453f17a6aef3c521560f31592bf777deef74f27a5 nxnode-2.1.0.ebuild 2477
+MISC metadata.xml 322 RMD160 4153277d0d1356a561092d2c2d19fab763bef763 SHA1 010f0c6a15fa83a5aa3dfce1fc199df3e022d7b5 SHA256 73d7fed43c304311cd22beda97ec22a55eecdd6e92c62460845f7b6564b3c409
+MD5 5fa64ac4a712fa86775d18a12c5e6569 metadata.xml 322
+RMD160 4153277d0d1356a561092d2c2d19fab763bef763 metadata.xml 322
+SHA256 73d7fed43c304311cd22beda97ec22a55eecdd6e92c62460845f7b6564b3c409 metadata.xml 322
+MD5 a9b715dd03725dd93663a838a6ebc2ab files/digest-nxnode-2.1.0 265
+RMD160 600c67e5da0afe89bd37973cb2aa213e0e9b9652 files/digest-nxnode-2.1.0 265
+SHA256 4cea482554e6c133df5abc846205059cebf96bb3e7ac1ad720ceb88b5a9f6a33 files/digest-nxnode-2.1.0 265
diff --git a/net-misc/nxnode/files/digest-nxnode-2.1.0 b/net-misc/nxnode/files/digest-nxnode-2.1.0
new file mode 100644
index 000000000000..d3e948e36bb4
--- /dev/null
+++ b/net-misc/nxnode/files/digest-nxnode-2.1.0
@@ -0,0 +1,3 @@
+MD5 b82273cd26d6dd708529f24296bd2ec0 nxnode-2.1.0-22.i386.tar.gz 5185601
+RMD160 dc25e4c2ef8b05cedac1b5cb78ec06f4b2263e5e nxnode-2.1.0-22.i386.tar.gz 5185601
+SHA256 a333ef9efc80c6346e0646b2298f4c113276c44325aff095882da420454b21e7 nxnode-2.1.0-22.i386.tar.gz 5185601
diff --git a/net-misc/nxnode/files/nxnode-2.1.0-init b/net-misc/nxnode/files/nxnode-2.1.0-init
new file mode 100644
index 000000000000..e3b1f8fd67d1
--- /dev/null
+++ b/net-misc/nxnode/files/nxnode-2.1.0-init
@@ -0,0 +1,70 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# opts="${opts} reload configtest"
+
+NX_NODE_CFG="/usr/NX/etc/node.cfg"
+NX_SENSOR_CMD="/usr/NX/bin/nxsensor"
+NX_SENSOR_PID="/usr/NX/var/run/nxsensor.pid"
+NX_SENSOR_HOST="127.0.0.1"
+NX_SENSOR_PORT="19250"
+
+depend()
+{
+ need net
+}
+
+is_enabled()
+{
+ local tmp
+
+ if ! [[ -x $NX_SENSOR_CMD ]] ; then
+ eerror "$NX_SENSOR_CMD not found"
+ return 1
+ fi
+
+ tmp=`/usr/bin/awk -F'"' '/^ENABLE_SENSOR/ {print $2}' $NX_NODE_CFG`
+ if [[ $tmp != "1" ]]; then
+ eerror "nxsensor is disabled in $NX_NODE_CFG"
+ return 1
+ fi
+
+ tmp=`/usr/bin/awk -F'"' '/^NODE_SENSOR_HOST/ {print $2}' $NX_NODE_CFG`
+ if [[ -n $tmp ]] ; then
+ NX_SENSOR_HOST="$tmp"
+ fi
+
+ tmp=`/usr/bin/awk -F'"' '/^NODE_SENSOR_PORT/ {print $2}' $NX_NODE_CFG`
+ if [[ -n $tmp ]] ; then
+ NX_SENSOR_PORT="$tmp"
+ fi
+
+ return 0
+}
+
+start() {
+ is_enabled || return 1
+ ebegin "Starting nxsensor"
+ $NX_SENSOR_CMD -a $NX_SENSOR_HOST -a "::ffff:$NX_SENSOR_HOST" -P $NX_SENSOR_PORT -d
+ PID=`ps -ef | grep $NX_SENSOR_CMD | grep -v grep | awk '{print $2}'`
+ if [[ -z $PID ]] ; then
+ eend 1
+ else
+ echo $PID > $NX_SENSOR_PID
+ eend 0
+ fi
+}
+
+stop() {
+ ebegin "Stopping nxsensor"
+ PID=`cat $NX_SENSOR_PID`
+ if [[ -z $PID ]] ; then
+ eerror "nxsensor not started"
+ eend 1
+ else
+ kill $PID
+ rm -f $NX_SENSOR_PID
+ eend 0
+ fi
+}
diff --git a/net-misc/nxnode/files/nxnode-2.1.0-setup.patch b/net-misc/nxnode/files/nxnode-2.1.0-setup.patch
new file mode 100644
index 000000000000..34382342b863
--- /dev/null
+++ b/net-misc/nxnode/files/nxnode-2.1.0-setup.patch
@@ -0,0 +1,43 @@
+--- scripts/setup/nxnode.orig 2006-11-05 13:37:07.000000000 +0000
++++ scripts/setup/nxnode 2006-11-05 16:02:31.000000000 +0000
+@@ -1167,7 +1167,9 @@
+ then
+ runCommand "$RMCOMMAND -f /etc/rc0.d/K01nxsensor" "Unable to remove '/etc/rc0.d/K01nxsensor'" "warn"
+ fi
+-
++ elif [ "$system" = "gentoo" ]; then
++ # do nothing; this is handled by Gentoo ebuild
++ echo > /dev/null
+ else
+ if [ -h /etc/rc.d/rc3.d/S99nxsensor ];
+ then
+@@ -1212,6 +1214,10 @@
+
+ addNXinit () {
+
++ if [ "$system" = "gentoo" ] ; then
++ return;
++ fi
++
+ runCommand "cat /usr/NX/scripts/init/nxsensor > /etc/init.d/nxsensor" "Unable to create: '/etc/init.d/nxsensor'" "warn"
+ runCommand "chmod +x /etc/init.d/nxsensor" "Cannot set permissions of '/etc/init.d/nxsensor' file" "warn"
+
+@@ -1778,6 +1784,10 @@
+ system=fedora
+ fi
+
++if [ -d /usr/portage ]; then
++ system=gentoo
++fi
++
+ if [ "x$system" = "x" -a -f /etc/release ];
+ then
+ system=solaris
+@@ -1812,6 +1822,7 @@
+ "fedora" ) ;;
+ "debian" ) ;;
+ "solaris" ) ;;
++ "gentoo" );;
+ "" ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unable to autodetect the operating system type, please specify it" ;;
+ * ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unsupported operating system '$system'" ;;
+ esac
diff --git a/net-misc/nxnode/metadata.xml b/net-misc/nxnode/metadata.xml
new file mode 100644
index 000000000000..348cd3f1d688
--- /dev/null
+++ b/net-misc/nxnode/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>nx</herd>
+<maintainer>
+ <email>nx@gentoo.org</email>
+</maintainer>
+<longdescription>Shared components between the different editions of NoMachine's NX Server</longdescription>
+</pkgmetadata>
diff --git a/net-misc/nxnode/nxnode-2.1.0.ebuild b/net-misc/nxnode/nxnode-2.1.0.ebuild
new file mode 100644
index 000000000000..576782eeca8b
--- /dev/null
+++ b/net-misc/nxnode/nxnode-2.1.0.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/nxnode-2.1.0.ebuild,v 1.1 2007/03/30 16:06:27 voyageur Exp $
+
+inherit eutils
+
+DESCRIPTION="nxnode provides the components that are shared between the different editions of NoMachine's NX Server"
+HOMEPAGE="http://www.nomachine.com/"
+SRC_URI="http://64.34.161.181/download/2.1.0/Linux/nxnode-2.1.0-22.i386.tar.gz"
+
+LICENSE="nomachine"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="nostrip"
+
+DEPEND="
+ !net-misc/nx-x11
+ !net-misc/nx-x11-bin
+ !net-misc/nxcomp
+ !net-misc/nxproxy
+ !net-misc/nxserver-freenx
+"
+
+RDEPEND="
+ =net-misc/nxclient-2*
+ x86? ( =dev-libs/glib-1.2*
+ x11-libs/libICE
+ x11-libs/libXmu
+ x11-libs/libSM
+ x11-libs/libXt
+ x11-libs/libXaw
+ x11-libs/libXpm )
+ amd64? ( app-emulation/emul-linux-x86-xlibs )
+ x11-apps/xrdb
+"
+
+S=${WORKDIR}/NX
+
+src_unpack()
+{
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/nxnode-2.1.0-setup.patch
+}
+
+src_install()
+{
+ # we install nxnode into /usr/NX, to make sure it doesn't clash
+ # with libraries installed for FreeNX
+
+ into /usr/NX
+ for x in nxagent nxdesktop nxnode nxpasswd nxsensor nxspool nxuexec nxviewer ; do
+ dobin bin/$x
+ done
+
+ dodir /usr/NX/etc
+ cp etc/node-debian.cfg.sample ${D}/usr/NX/etc/node-gentoo.cfg.sample || die
+ sed -e 's|COMMAND_FUSER = .*|COMMAND_FUSER = "/usr/bin/fuser"|;' -i ${D}/usr/NX/etc/node-gentoo.cfg.sample || die
+ cp etc/node.lic.sample ${D}/usr/NX/etc/node.lic.sample || die
+
+ dodir /usr/NX/lib
+ cp -R lib ${D}/usr/NX || die
+
+ dodir /usr/NX/scripts
+ cp -R scripts ${D}/usr/NX || die
+
+ dodir /usr/NX/share
+ cp -R share ${D}/usr/NX || die
+
+ dodir /usr/NX/var
+ cp -R var ${D}/usr/NX || die
+
+ dodir /etc/init.d
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/nxnode-2.1.0-init nxsensor
+}
+
+pkg_postinst()
+{
+ # Only install license file if none is found
+ if [ ! -f /usr/NX/etc/node.lic ]; then
+ cp ${ROOT}/usr/NX/etc/node.lic.sample ${ROOT}/usr/NX/etc/node.lic || die
+ chmod 0400 ${ROOT}/usr/NX/etc/node.lic
+ chown nx:root ${ROOT}/usr/NX/etc/node.lic
+ fi
+
+ # only run install on the first time
+ if [ -f /usr/NX/etc/node.cfg ]; then
+ einfo "Running NoMachine's update script"
+ ${ROOT}/usr/NX/scripts/setup/nxnode --update
+ else
+ einfo "Running NoMachine's setup script"
+ ${ROOT}/usr/NX/scripts/setup/nxnode --install
+ fi
+
+ elog "If you want server statistics, please add nxsensor to your default runlevel"
+ elog
+ elog " rc-update add nxsensor default"
+ elog
+ elog "You will also need to change ENABLE_SENSOR to 1 in /usr/NX/etc/node.cfg"
+}