summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2007-03-30 16:14:32 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2007-03-30 16:14:32 +0000
commit312f889a0c01340dc139672b09e662e6560cab40 (patch)
tree5ad347b917756db2f5e226fd29191c3761929294 /net-misc/nxserver-freeedition
parentManifest fix (diff)
downloadgentoo-2-312f889a0c01340dc139672b09e662e6560cab40.tar.gz
gentoo-2-312f889a0c01340dc139672b09e662e6560cab40.tar.bz2
gentoo-2-312f889a0c01340dc139672b09e662e6560cab40.zip
Initial commit
(Portage version: 2.1.2.3)
Diffstat (limited to 'net-misc/nxserver-freeedition')
-rw-r--r--net-misc/nxserver-freeedition/ChangeLog11
-rw-r--r--net-misc/nxserver-freeedition/Manifest24
-rw-r--r--net-misc/nxserver-freeedition/files/digest-nxserver-freeedition-2.1.03
-rw-r--r--net-misc/nxserver-freeedition/files/nxserver-2.1.0-init37
-rw-r--r--net-misc/nxserver-freeedition/files/nxserver-2.1.0-setup.patch70
-rw-r--r--net-misc/nxserver-freeedition/metadata.xml10
-rw-r--r--net-misc/nxserver-freeedition/nxserver-freeedition-2.1.0.ebuild84
7 files changed, 239 insertions, 0 deletions
diff --git a/net-misc/nxserver-freeedition/ChangeLog b/net-misc/nxserver-freeedition/ChangeLog
new file mode 100644
index 000000000000..7e91f36a92a9
--- /dev/null
+++ b/net-misc/nxserver-freeedition/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/nxserver-freeedition
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freeedition/ChangeLog,v 1.1 2007/03/30 16:14:32 voyageur Exp $
+
+*nxserver-freeedition-2.1.0 (30 Mar 2007)
+
+ 30 Mar 2007; Bernard Cafarelli <voyageur@gentoo.org>
+ +files/nxserver-2.1.0-init, +files/nxserver-2.1.0-setup.patch,
+ +metadata.xml, +nxserver-freeedition-2.1.0.ebuild:
+ Initial commit, bug #153866
+
diff --git a/net-misc/nxserver-freeedition/Manifest b/net-misc/nxserver-freeedition/Manifest
new file mode 100644
index 000000000000..30c1cdf52a98
--- /dev/null
+++ b/net-misc/nxserver-freeedition/Manifest
@@ -0,0 +1,24 @@
+AUX nxserver-2.1.0-init 580 RMD160 e572737b9adec6ea0e0cc2e4ec64026b545dedbc SHA1 56351f74c4e6983f1e615825d18794a79f127a07 SHA256 231613baea68f421f62c4ef86ca080c2f1dc0b63072764efab7a33190d4fa2bd
+MD5 d8324d66f0a69f39a89b4e07eef07c29 files/nxserver-2.1.0-init 580
+RMD160 e572737b9adec6ea0e0cc2e4ec64026b545dedbc files/nxserver-2.1.0-init 580
+SHA256 231613baea68f421f62c4ef86ca080c2f1dc0b63072764efab7a33190d4fa2bd files/nxserver-2.1.0-init 580
+AUX nxserver-2.1.0-setup.patch 1927 RMD160 e0ee56dedff3dac4265d6ca920b7534f6c097ce3 SHA1 8c875b68ca110dc0f66cbb94ac9e28ad8bbf538e SHA256 2c9c934897ea31cfe6a860ad86fb9bf8e0c4b0e3dbff6b1f5472d19755030d7d
+MD5 acbc4350a1f1fbee7d4e1aed7755e197 files/nxserver-2.1.0-setup.patch 1927
+RMD160 e0ee56dedff3dac4265d6ca920b7534f6c097ce3 files/nxserver-2.1.0-setup.patch 1927
+SHA256 2c9c934897ea31cfe6a860ad86fb9bf8e0c4b0e3dbff6b1f5472d19755030d7d files/nxserver-2.1.0-setup.patch 1927
+DIST nxserver-2.1.0-22.i386.tar.gz 5037224 RMD160 fe2544b03c0d0ec5bdfe415fcc15327e7160379b SHA1 869bf9f13a8a13470b4ac07060a97044ec266b54 SHA256 a2c807db46249f6c708b5aa9bb4653b0f5f0add12f94d26609abe7f2de146397
+EBUILD nxserver-freeedition-2.1.0.ebuild 1945 RMD160 229261cb1ea50f12965fd9a165767758ea0c763d SHA1 5213a5a7398f5fa058240f93472dc9eb357715c0 SHA256 a66cc45654ba25bdebb9b778293dc3e2ce5d9eaca7d6527439b67c94b6462ae6
+MD5 0497657b32d34645049267ed17b5d286 nxserver-freeedition-2.1.0.ebuild 1945
+RMD160 229261cb1ea50f12965fd9a165767758ea0c763d nxserver-freeedition-2.1.0.ebuild 1945
+SHA256 a66cc45654ba25bdebb9b778293dc3e2ce5d9eaca7d6527439b67c94b6462ae6 nxserver-freeedition-2.1.0.ebuild 1945
+MISC ChangeLog 377 RMD160 d7a0ebc2902a8c206e2b1aa0e9845bf209235c15 SHA1 dc3937dd4ea394b821533154a4bce27db330513f SHA256 371f940604ef9b73aeda611d38917e47a0b7fb73012bf6ec71d2f6ceaca573e7
+MD5 c2600aa1b1052f298a5e765a803396fb ChangeLog 377
+RMD160 d7a0ebc2902a8c206e2b1aa0e9845bf209235c15 ChangeLog 377
+SHA256 371f940604ef9b73aeda611d38917e47a0b7fb73012bf6ec71d2f6ceaca573e7 ChangeLog 377
+MISC metadata.xml 287 RMD160 02faacc02d568077ef130db1cb51454f85bba209 SHA1 d638c5b9a8960bc9fc4cf5996d4212c7ad4c9802 SHA256 72730fdc467610a8df53a6e0000ce008f5ea84dd7be20d94f429ceab2aade38c
+MD5 b87fb246c6f704cbffa658f7b061b9a4 metadata.xml 287
+RMD160 02faacc02d568077ef130db1cb51454f85bba209 metadata.xml 287
+SHA256 72730fdc467610a8df53a6e0000ce008f5ea84dd7be20d94f429ceab2aade38c metadata.xml 287
+MD5 29d787f82e6f53755b0dad0c8c4bdf83 files/digest-nxserver-freeedition-2.1.0 271
+RMD160 892b72329a6ac7535e393e97b7068fbdaa725866 files/digest-nxserver-freeedition-2.1.0 271
+SHA256 fba8d6c4731b8c9397935d4abac6ad77a62e6d4fc72deacee3365136297b7d94 files/digest-nxserver-freeedition-2.1.0 271
diff --git a/net-misc/nxserver-freeedition/files/digest-nxserver-freeedition-2.1.0 b/net-misc/nxserver-freeedition/files/digest-nxserver-freeedition-2.1.0
new file mode 100644
index 000000000000..62c08391d9ad
--- /dev/null
+++ b/net-misc/nxserver-freeedition/files/digest-nxserver-freeedition-2.1.0
@@ -0,0 +1,3 @@
+MD5 9cbc23a14ffc379a3a5fe184a50719e4 nxserver-2.1.0-22.i386.tar.gz 5037224
+RMD160 fe2544b03c0d0ec5bdfe415fcc15327e7160379b nxserver-2.1.0-22.i386.tar.gz 5037224
+SHA256 a2c807db46249f6c708b5aa9bb4653b0f5f0add12f94d26609abe7f2de146397 nxserver-2.1.0-22.i386.tar.gz 5037224
diff --git a/net-misc/nxserver-freeedition/files/nxserver-2.1.0-init b/net-misc/nxserver-freeedition/files/nxserver-2.1.0-init
new file mode 100644
index 000000000000..f37060d3831a
--- /dev/null
+++ b/net-misc/nxserver-freeedition/files/nxserver-2.1.0-init
@@ -0,0 +1,37 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# opts="${opts} reload configtest"
+
+NX_SERVER_CMD="/usr/NX/bin/nxserver"
+
+depend()
+{
+ need net
+ use nxsensor
+}
+
+start() {
+ ebegin "Starting nxserver"
+ $NX_SERVER_CMD --start
+ if [ $? = 0 ]; then
+ $NX_SERVER_CMD --statistics start
+ eend $?
+ else
+ eend 1
+ fi
+}
+
+stop() {
+ ebegin "Stopping nxserver"
+ $NX_SERVER_CMD --stop
+ $NX_SERVER_CMD --statistics stop
+ eend 0
+}
+
+restart() {
+ $NX_SERVER_CMD --restart
+ $NX_SERVER_CMD --statistics restart
+ eend 0
+}
diff --git a/net-misc/nxserver-freeedition/files/nxserver-2.1.0-setup.patch b/net-misc/nxserver-freeedition/files/nxserver-2.1.0-setup.patch
new file mode 100644
index 000000000000..7cb87125fcec
--- /dev/null
+++ b/net-misc/nxserver-freeedition/files/nxserver-2.1.0-setup.patch
@@ -0,0 +1,70 @@
+--- scripts/setup/nxserver.orig 2006-11-05 16:43:33.000000000 +0000
++++ scripts/setup/nxserver 2006-11-05 17:29:42.000000000 +0000
+@@ -509,6 +509,10 @@
+
+ removeNXinit () {
+
++ if [ "$system" = "gentoo" ]; then
++ return
++ fi
++
+ runCommand "$RMCOMMAND -f /etc/init.d/nxserver" "Unable to remove '/etc/init.d/nxserver'" "warn"
+
+ if [ "$system" = "solaris" ];
+@@ -655,6 +659,10 @@
+
+ addNXinit () {
+
++ if [ "$system" = "gentoo" ]; then
++ return
++ fi
++
+ runCommand "cat /usr/NX/scripts/init/nxserver > /etc/init.d/nxserver" "Unable to create: '/etc/init.d/nxserver'" "warn"
+ runCommand "chmod +x /etc/init.d/nxserver" "Cannot set permissions of '/etc/init.d/nxserver' file" "warn"
+
+@@ -770,6 +778,11 @@
+
+ addNXUserLinux () {
+
++ # does the NX user already exist?
++ if id nx > /dev/null 2>&1 ; then
++ return
++ fi
++
+ if [ "x$system" = "xmandrake" -o "x$system" = "xfedora" ];
+ then
+ runCommand "useradd -p '*' -d '$NODE_ROOT/home/nx' -M nx" "Cannot add user: nx to the system" "error"
+@@ -1914,6 +1927,10 @@
+ system=fedora
+ fi
+
++if [ -d /usr/portage ]; then
++ system=gentoo
++fi
++
+ if [ "x$system" = "x" -a -f /etc/release ];
+ then
+ system=solaris
+@@ -1948,6 +1965,7 @@
+ "mandrake" ) ;;
+ "fedora" ) ;;
+ "debian" ) ;;
++ "gentoo" ) ;;
+ "solaris" ) ;;
+ "" ) 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'" ;;
+@@ -2104,14 +2122,6 @@
+ return 0
+ fi
+
+- result=`id nx 2>&1`
+- if [ $? = 0 ];
+- then
+- printMsg "Cannot add user: nx. User: nx already exists" "error"
+- printMsg "Please try to fix the problem by reinstalling the server" "error"
+- exit 1
+- fi
+-
+ LOGFILE="$INSTALLOG"
+ createLogdirectory
+ startLog
diff --git a/net-misc/nxserver-freeedition/metadata.xml b/net-misc/nxserver-freeedition/metadata.xml
new file mode 100644
index 000000000000..ebf3c9e4acf2
--- /dev/null
+++ b/net-misc/nxserver-freeedition/metadata.xml
@@ -0,0 +1,10 @@
+<?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>Free edition NX server from NoMachine</longdescription>
+</pkgmetadata>
+
diff --git a/net-misc/nxserver-freeedition/nxserver-freeedition-2.1.0.ebuild b/net-misc/nxserver-freeedition/nxserver-freeedition-2.1.0.ebuild
new file mode 100644
index 000000000000..3028300cae0c
--- /dev/null
+++ b/net-misc/nxserver-freeedition/nxserver-freeedition-2.1.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freeedition/nxserver-freeedition-2.1.0.ebuild,v 1.1 2007/03/30 16:14:32 voyageur Exp $
+
+inherit eutils
+
+DESCRIPTION="Free edition NX server from NoMachine"
+HOMEPAGE="http://www.nomachine.com/"
+SRC_URI="http://64.34.161.181/download/2.1.0/Linux/FE/nxserver-2.1.0-22.i386.tar.gz"
+
+LICENSE="nomachine"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="nostrip"
+
+DEPEND="=net-misc/nxnode-2.1*
+ !net-misc/nxserver-freenx"
+RDEPEND="${DEPEND}"
+QA_TEXTRELS="usr/NX/lib/perl/GD.so"
+
+S="${WORKDIR}/NX"
+
+pkg_preinst()
+{
+ enewuser nx -1 -1 /usr/NX/home/nx
+}
+
+src_unpack()
+{
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/nxserver-2.1.0-setup.patch
+}
+
+src_install()
+{
+ # we install nxserver into /usr/NX, to make sure it doesn't clash
+ # with libraries installed for FreeNX
+
+ into /usr/NX
+ for x in nxserver ; do
+ dobin bin/$x
+ done
+
+ dodir /usr/NX/etc
+ insinto /usr/NX/etc
+ doins etc/administrators.db.sample
+ doins etc/guests.db.sample
+ doins etc/passwords.db.sample
+ doins etc/profiles.db.sample
+ doins etc/users.db.sample
+ doins etc/server.lic.sample
+
+ newins etc/server-debian.cfg.sample server-gentoo.cfg.sample
+
+ cp -R etc/keys ${D}/usr/NX/etc || die
+
+ cp -R home ${D}/usr/NX || die
+ cp -R lib ${D}/usr/NX || die
+ cp -R scripts ${D}/usr/NX || die
+ cp -R share ${D}/usr/NX || die
+ cp -R var ${D}/usr/NX || die
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/nxserver-2.1.0-init nxserver
+}
+
+pkg_postinst ()
+{
+ usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!"
+ usermod -d /usr/NX/home/nx nx || die "Unable to set home directory of nx user!!"
+
+ # only run install when no configuration file is found
+ if [ -f /usr/NX/etc/server.cfg ]; then
+ einfo "Running NoMachine's update script"
+ ${ROOT}/usr/NX/scripts/setup/nxserver --update
+ else
+ einfo "Running NoMachine's setup script"
+ ${ROOT}/usr/NX/scripts/setup/nxserver --install
+ fi
+
+ elog "Remember to add nxserver to your default runlevel"
+}