summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2007-09-20 23:18:38 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2007-09-20 23:18:38 +0000
commit62ff013e4d80035e9123ea931446273f6fe4176d (patch)
treeb0a9c24258a4ef8dcf13e6c26e124e2f3f608913 /net-misc/nxnode
parentdev-lang/mono-1.2.5.1: version bump (diff)
downloadgentoo-2-62ff013e4d80035e9123ea931446273f6fe4176d.tar.gz
gentoo-2-62ff013e4d80035e9123ea931446273f6fe4176d.tar.bz2
gentoo-2-62ff013e4d80035e9123ea931446273f6fe4176d.zip
Remove vulnerable NX 2.1 versions, security bug #192712
(Portage version: 2.1.3.9)
Diffstat (limited to 'net-misc/nxnode')
-rw-r--r--net-misc/nxnode/ChangeLog7
-rw-r--r--net-misc/nxnode/files/digest-nxnode-2.1.03
-rw-r--r--net-misc/nxnode/files/digest-nxnode-3.0.0-r26
-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/nxnode-2.1.0.ebuild94
-rw-r--r--net-misc/nxnode/nxnode-3.0.0-r2.ebuild109
7 files changed, 6 insertions, 326 deletions
diff --git a/net-misc/nxnode/ChangeLog b/net-misc/nxnode/ChangeLog
index fa81aa1a0ced..ba651b6ba055 100644
--- a/net-misc/nxnode/ChangeLog
+++ b/net-misc/nxnode/ChangeLog
@@ -1,6 +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.16 2007/09/20 14:51:02 rbu Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/ChangeLog,v 1.17 2007/09/20 23:18:38 voyageur Exp $
+
+ 20 Sep 2007; Bernard Cafarelli <voyageur@gentoo.org>
+ -files/nxnode-2.1.0-init, -files/nxnode-2.1.0-setup.patch,
+ -nxnode-2.1.0.ebuild, -nxnode-3.0.0-r2.ebuild:
+ Remove vulnerable NX 2.1 versions, security bug #192712
20 Sep 2007; Robert Buchholz <rbu@gentoo.org> nxnode-3.0.0-r3.ebuild:
amd64 stable (bug #180040)
diff --git a/net-misc/nxnode/files/digest-nxnode-2.1.0 b/net-misc/nxnode/files/digest-nxnode-2.1.0
deleted file mode 100644
index d3e948e36bb4..000000000000
--- a/net-misc/nxnode/files/digest-nxnode-2.1.0
+++ /dev/null
@@ -1,3 +0,0 @@
-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/digest-nxnode-3.0.0-r2 b/net-misc/nxnode/files/digest-nxnode-3.0.0-r2
deleted file mode 100644
index 49667b663490..000000000000
--- a/net-misc/nxnode/files/digest-nxnode-3.0.0-r2
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 ce86c244e0808531965576c177f70829 nxnode-3.0.0-76.i386.tar.gz 6232522
-RMD160 93bd7948d473fc5991cda04df43b90cbb2925c5b nxnode-3.0.0-76.i386.tar.gz 6232522
-SHA256 93a1561a2757b5374bd2d6597c818e0da48e307393cf427ffdd0ab076a0a8b09 nxnode-3.0.0-76.i386.tar.gz 6232522
-MD5 363679293d36b79777156285dae876ea nxnode-3.0.0-76.x86_64.tar.gz 6909045
-RMD160 c9656103ba426a8515a42c3e4f2d0890d1d4d328 nxnode-3.0.0-76.x86_64.tar.gz 6909045
-SHA256 76b61b2d711f9a15948cfcf0cedd08e60fcfd39467a0494b7b5988f248ac1865 nxnode-3.0.0-76.x86_64.tar.gz 6909045
diff --git a/net-misc/nxnode/files/nxnode-2.1.0-init b/net-misc/nxnode/files/nxnode-2.1.0-init
deleted file mode 100644
index e3b1f8fd67d1..000000000000
--- a/net-misc/nxnode/files/nxnode-2.1.0-init
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/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
deleted file mode 100644
index 34382342b863..000000000000
--- a/net-misc/nxnode/files/nxnode-2.1.0-setup.patch
+++ /dev/null
@@ -1,43 +0,0 @@
---- 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/nxnode-2.1.0.ebuild b/net-misc/nxnode/nxnode-2.1.0.ebuild
deleted file mode 100644
index a8bd6929bc97..000000000000
--- a/net-misc/nxnode/nxnode-2.1.0.ebuild
+++ /dev/null
@@ -1,94 +0,0 @@
-# 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.6 2007/07/03 11:20:19 opfer 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="strip"
-
-DEPEND="!net-misc/nxserver-freenx"
-
-RDEPEND="
- =net-misc/nxclient-2*
- x86? ( 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
- newinitd ${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"
-}
diff --git a/net-misc/nxnode/nxnode-3.0.0-r2.ebuild b/net-misc/nxnode/nxnode-3.0.0-r2.ebuild
deleted file mode 100644
index 0d5433e3ea10..000000000000
--- a/net-misc/nxnode/nxnode-3.0.0-r2.ebuild
+++ /dev/null
@@ -1,109 +0,0 @@
-# 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-3.0.0-r2.ebuild,v 1.1 2007/07/22 14:37:52 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="amd64? ( http://64.34.161.181/download/3.0.0/Linux/nxnode-${PV}-76.x86_64.tar.gz )
- x86? ( http://64.34.161.181/download/3.0.0/Linux/nxnode-${PV}-76.i386.tar.gz )"
-
-LICENSE="nomachine"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="rdesktop vnc"
-RESTRICT="strip"
-
-DEPEND="!net-misc/nxserver-freenx
- !<net-misc/nxserver-freeedition-3.0.0"
-
-RDEPEND="=net-misc/nxclient-3*
- x11-libs/libICE
- x11-libs/libXmu
- x11-libs/libSM
- x11-libs/libXt
- x11-libs/libXaw
- x11-libs/libXpm
- x11-apps/xrdb
- rdesktop? ( net-misc/rdesktop )
- vnc? ( || ( net-misc/vnc net-misc/tightvnc ) )"
-
-S=${WORKDIR}/NX
-
-pkg_setup() {
- if use vnc; then
- if has_version net-misc/vnc && ! built_with_use net-misc/vnc server;
- then
- die "net-misc/vnc needs to be built with USE=\"server\" for VNC support"
- fi
-
- if has_version net-misc/tightvnc && ! built_with_use net-misc/tightvnc server;
- then
- die "net-misc/tightvnc needs to be built with USE=\"server\" for VNC support"
- fi
- fi
-}
-
-src_unpack()
-{
- unpack ${A}
- cd ${S}
- epatch ${FILESDIR}/nxnode-3.0.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 nxnode nxsensor nxspool nxuexec ; 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
- newinitd ${FILESDIR}/nxnode-3.0.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 EnableSensor to 1 in /usr/NX/etc/node.cfg"
-}