summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2008-03-18 23:42:40 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2008-03-18 23:42:40 +0000
commit92d155ada5e5873aafb8dd2f9a164c2df92333fc (patch)
tree2c198fece3a3f2517bbb3859af5807504faf0eb8 /net-misc
parentDon't add MAKEFLAGS to submakes (bug #178684). (diff)
downloadhistorical-92d155ada5e5873aafb8dd2f9a164c2df92333fc.tar.gz
historical-92d155ada5e5873aafb8dd2f9a164c2df92333fc.tar.bz2
historical-92d155ada5e5873aafb8dd2f9a164c2df92333fc.zip
New version
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/nxserver-freenx/ChangeLog10
-rw-r--r--net-misc/nxserver-freenx/Manifest6
-rw-r--r--net-misc/nxserver-freenx/files/nxserver-freenx-0.7.2-cups.patch33
-rw-r--r--net-misc/nxserver-freenx/files/nxserver-freenx-0.7.2-nxloadconfig.patch52
-rw-r--r--net-misc/nxserver-freenx/nxserver-freenx-0.7.2.ebuild120
5 files changed, 219 insertions, 2 deletions
diff --git a/net-misc/nxserver-freenx/ChangeLog b/net-misc/nxserver-freenx/ChangeLog
index 03fbb6536dcd..f76ac6be750b 100644
--- a/net-misc/nxserver-freenx/ChangeLog
+++ b/net-misc/nxserver-freenx/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-misc/nxserver-freenx
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/ChangeLog,v 1.42 2008/01/09 14:50:41 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/ChangeLog,v 1.43 2008/03/18 23:42:39 voyageur Exp $
+
+*nxserver-freenx-0.7.2 (18 Mar 2008)
+
+ 18 Mar 2008; Bernard Cafarelli <voyageur@gentoo.org>
+ +files/nxserver-freenx-0.7.2-cups.patch,
+ +files/nxserver-freenx-0.7.2-nxloadconfig.patch,
+ +nxserver-freenx-0.7.2.ebuild:
+ Version bump, "Priscilla Edition"
09 Jan 2008; Bernard Cafarelli <voyageur@gentoo.org>
files/nxserver-freenx-0.7.1-nxloadconfig.patch:
diff --git a/net-misc/nxserver-freenx/Manifest b/net-misc/nxserver-freenx/Manifest
index 96cf757053f5..b7683b8af891 100644
--- a/net-misc/nxserver-freenx/Manifest
+++ b/net-misc/nxserver-freenx/Manifest
@@ -9,11 +9,15 @@ AUX nxserver-freenx-0.7.1-nxloadconfig.patch 3000 RMD160 e344096a596d5447d6d1438
AUX nxserver-freenx-0.7.1-nxserver_fixes.patch 469 RMD160 8a94d5d5768085347fc9a5ed1fed5b0440917a02 SHA1 d9ab96e4303b054c335d2ed4eda86604f1bc3375 SHA256 a9f3e1e98214c86aaf7cd2d302f19b621d55a727cb16799aa9519877e9519efa
AUX nxserver-freenx-0.7.1-samba.patch 1590 RMD160 bb934a1152250ea1cb812db167f2a141f7e4dcda SHA1 9a508c1bc5b6e8c9b312833602c6b928c5ae61e6 SHA256 0f7778099935739abfc5185c06645613551be9077d012ca04daf91657e4d9eb9
AUX nxserver-freenx-0.7.1-usession_fixes.patch 1435 RMD160 c3fa000e1996402afd1feefed3d73285c910c387 SHA1 80f53a93be35acab564c6454a1dbf6596078ffd7 SHA256 5cf226e31f3b7f26f6fa749d971e25cbc08c570657c668f7f45d9bfc0ffaa532
+AUX nxserver-freenx-0.7.2-cups.patch 1312 RMD160 c6f0a0675fe7902cc2e53123e708f17e36c44dcd SHA1 3bcd5c4a8bd5ed560f91a705c5f45d3f756c16e9 SHA256 50d0ae81b1bf86aecb0eec82920db481633ae0181dfe2894ac1b10faf5b8644d
+AUX nxserver-freenx-0.7.2-nxloadconfig.patch 2966 RMD160 07a17869621f0778c64a370f5a1e5a93fe784f17 SHA1 0f78c07c2c800fca9acd2bd3ff636939343a2c03 SHA256 245305309e60d9bf89b9cd1ab2ce4286d54cad16103e5c99c7c21c857cee1556
AUX nxserver.init 523 RMD160 8d98ed67b55b444340ccb79a0c76c5b2a76ff831 SHA1 81d2835bbb03fd51142692acb6c787c9428c8dbd SHA256 68f7f76296b5826803196e431ae9ecc4ddfa9af4821eb0067b7035b71fde42c4
DIST freenx-0.7.0.tar.gz 57614 RMD160 a051d4fcb96fd80b167c5fdc526cb5a789732057 SHA1 243f0c98f02b1c84c59e5b324a5a7e6d3d3d8db3 SHA256 61aedd3f8d3fae02b0e13de5f4ee1cb7bc1397dd7a379a67752a188d1f0119c9
DIST freenx-0.7.1.tar.gz 63637 RMD160 853380a482243ccf7c5a4a2f51739248b6a382db SHA1 bceefe6910e54af662f5311ee3cb24d354b2f724 SHA256 7e846a288506353a78c2535d2b66b93ffe2f70c9c2868365f83c29ab71150cb6
+DIST freenx-server-0.7.2.tar.gz 105394 RMD160 fd962a4d7f26db7d5d7aeb8a169950ce54c88759 SHA1 036a51fb4850007558f41b1968d47c2232ee0315 SHA256 9fea37f0c95a2e9a634dbb1537871ebc3187fce285b8b31d3109e56dc712a6ed
EBUILD nxserver-freenx-0.7.0-r1.ebuild 3237 RMD160 00c106a37557322e79ce43f84844c3a53d6b4c16 SHA1 11692d3f677dbc10eb4900e313b2fe588eb9c7d5 SHA256 65c960edac88635d8f1402325c5aec7b87259a919ccfdb313da6d2eb6717a0ab
EBUILD nxserver-freenx-0.7.1-r1.ebuild 3899 RMD160 e843123577ed25cbdd890a929a9a011cff8cdda2 SHA1 8d90855e16ad058a7881bcd8a22186efccd91e3d SHA256 d12cd9a20540ce885b8a8c1533521ec983e45b70f71c66d7c3eba37edccf5180
EBUILD nxserver-freenx-0.7.1-r2.ebuild 3938 RMD160 faa3c15a997969fd33334e1b9db51ff0aa964545 SHA1 63cbd6b503ea4e03d91a268e404b680a3d06a77a SHA256 cd9fa34c58f17b49138b8847c5671fb84da502d4ae71287ff6afa16267f77eac
-MISC ChangeLog 9747 RMD160 9118d2e62693ec38b0172a283c873c70f27eb6fe SHA1 dd03545ef21286d991e93fd90cd856ce6ec3a81f SHA256 b5fb4dca42a9c2bfedc5842463fd4368471dc4b056b0ee9947a9ce040ad7ecc4
+EBUILD nxserver-freenx-0.7.2.ebuild 3621 RMD160 9d5c20576350066dd7986117d10811fb467222e6 SHA1 5c82b60136a7c4ddc6ef406cdfa5deac35e3dfd0 SHA256 183ce4cb7f77184e784631c2881de7730199751602ba6a058c06136d51203c5d
+MISC ChangeLog 10004 RMD160 b57ab71586b53d0106566fa5cdeffd7634fc89cd SHA1 65f666d0fe04d77dcf2def4da16ea9aa31778524 SHA256 b6347ec745e3e35e21a310a1a758c4d0cda3ba47da41cb34528cfcaf924ed724
MISC metadata.xml 350 RMD160 53819424da8eb045d991b7d02b8a6d9e6d54369d SHA1 591b43c9210782070d5d9b30317b1cef3975ab7e SHA256 5cf73679195a2c8a5a960d30614cfd340b7aadabb2e4c684928f44527278500e
diff --git a/net-misc/nxserver-freenx/files/nxserver-freenx-0.7.2-cups.patch b/net-misc/nxserver-freenx/files/nxserver-freenx-0.7.2-cups.patch
new file mode 100644
index 000000000000..d64b3027126f
--- /dev/null
+++ b/net-misc/nxserver-freenx/files/nxserver-freenx-0.7.2-cups.patch
@@ -0,0 +1,33 @@
+diff -Naur freenx-0.7.1.orig/node.conf.sample freenx-0.7.1/node.conf.sample
+--- freenx-0.7.1.orig/node.conf.sample 2007-10-31 13:47:45.000000000 +0100
++++ freenx-0.7.1/node.conf.sample 2007-10-31 13:48:35.000000000 +0100
+@@ -319,12 +319,12 @@
+ # of available ppd drivers via the $COMMAND_FOOMATIC command.
+
+ #ENABLE_FOOMATIC="1"
+-#COMMAND_FOOMATIC="/usr/lib/cups/driver/foomatic-ppdfile"
++#COMMAND_FOOMATIC="/usr/bin/foomatic-ppdfile"
+
+ # CUPS_BACKEND and CUPS_ETC are the corresponding paths of your CUPS
+ # installation.
+
+-#CUPS_BACKEND="/usr/lib/cups/backend"
++#CUPS_BACKEND="/usr/libexec/cups/backend"
+ #CUPS_IPP_BACKEND="$CUPS_BACKEND/nxipp"
+ #CUPS_DEFAULT_SOCK="/var/run/cups/cups.sock"
+ #CUPS_ETC="/etc/cups"
+diff -Naur freenx-0.7.1.orig/nxloadconfig freenx-0.7.1/nxloadconfig
+--- freenx-0.7.1.orig/nxloadconfig 2007-10-31 13:47:45.000000000 +0100
++++ freenx-0.7.1/nxloadconfig 2007-10-31 13:48:43.000000000 +0100
+@@ -155,9 +155,9 @@
+ ENABLE_CUPS_SEAMLESS="0"
+ CUPS_SEAMLESS_DELAY="10"
+ ENABLE_FOOMATIC="1"
+-COMMAND_FOOMATIC="/usr/lib/cups/driver/foomatic-ppdfile"
++COMMAND_FOOMATIC="/usr/bin/foomatic-ppdfile"
+
+-CUPS_BACKEND="/usr/lib/cups/backend"
++CUPS_BACKEND="/usr/libexec/cups/backend"
+ CUPS_IPP_BACKEND="$CUPS_BACKEND/nxipp"
+ CUPS_DEFAULT_SOCK="/var/run/cups/cups.sock"
+ CUPS_ETC="/etc/cups/"
diff --git a/net-misc/nxserver-freenx/files/nxserver-freenx-0.7.2-nxloadconfig.patch b/net-misc/nxserver-freenx/files/nxserver-freenx-0.7.2-nxloadconfig.patch
new file mode 100644
index 000000000000..b82ffee2fc9a
--- /dev/null
+++ b/net-misc/nxserver-freenx/files/nxserver-freenx-0.7.2-nxloadconfig.patch
@@ -0,0 +1,52 @@
+diff -Naur freenx-server-0.7.2.orig/nxloadconfig freenx-server-0.7.2/nxloadconfig
+--- freenx-server-0.7.2.orig/nxloadconfig 2008-03-19 00:26:08.000000000 +0100
++++ freenx-server-0.7.2/nxloadconfig 2008-03-19 00:27:44.000000000 +0100
+@@ -58,7 +58,8 @@
+ # Where can different nx components be found
+ NX_DIR=/usr
+ PATH_BIN=$NX_DIR/bin # if you change that, be sure to also change the public keys
+-PATH_LIB=$NX_DIR/lib
++REAL_PATH_BIN=$NX_DIR/lib/NX/bin
++PATH_LIB=$NX_DIR/lib/NX/lib
+ NX_ETC_DIR=/etc/nxserver
+ NX_SESS_DIR=/var/lib/nxserver/db
+ NX_HOME_DIR=/var/lib/nxserver/home
+@@ -179,7 +180,7 @@
+ DEFAULT_X_WM=""
+ KILL_DEFAULT_X_WM="1"
+ USER_X_STARTUP_SCRIPT=.Xclients
+-DEFAULT_X_SESSION=/etc/X11/xdm/Xsession
++DEFAULT_X_SESSION=/etc/X11/Sessions/Xsession
+ COMMAND_START_KDE=startkde
+ COMMAND_START_GNOME=gnome-session
+ COMMAND_START_CDE=cdwm
+@@ -307,9 +308,9 @@
+ [ -z "$AGENT_LIBRARY_PATH" ] && AGENT_LIBRARY_PATH=$PATH_LIB
+ [ -z "$PROXY_LIBRARY_PATH" ] && PROXY_LIBRARY_PATH=$PATH_LIB
+ [ -z "$APPLICATION_LIBRARY_PATH" ] && APPLICATION_LIBRARY_PATH=$PATH_LIB
+-[ -z "$APPLICATION_LIBRARY_PRELOAD" ] && APPLICATION_LIBRARY_PRELOAD="$APPLICATION_LIBRARY_PATH/libX11.so.6.2:$APPLICATION_LIBRARY_PATH/libXext.so.6.4:$APPLICATION_LIBRARY_PATH/libXcomp.so:$APPLICATION_LIBRARY_PATH/libXcompext.so:$APPLICATION_LIBRARY_PATH/libXrender.so.1.2"
++[ -z "$APPLICATION_LIBRARY_PRELOAD" ] && APPLICATION_LIBRARY_PRELOAD="$APPLICATION_LIBRARY_PATH/libX11.so:$APPLICATION_LIBRARY_PATH/libXext.so:$APPLICATION_LIBRARY_PATH/libXcomp.so:$APPLICATION_LIBRARY_PATH/libXcompext.so:$APPLICATION_LIBRARY_PATH/libXrender.so"
+
+-NX_BACKEND_VERSION=$(strings $PATH_BIN/nxagent 2>/dev/null | egrep 'NXAGENT - Version' | sed 's/.*Version //g')
++NX_BACKEND_VERSION=$(strings $REAL_PATH_BIN/nxagent 2>/dev/null | egrep 'NXAGENT - Version' | sed 's/.*Version //g')
+
+ [ "$ENABLE_1_5_0_BACKEND" = "1" ] && NX_BACKEND_VERSION="1.5.0" # forced the backend
+
+@@ -346,7 +347,7 @@
+ ERROR="yes" && echo "Error: Invalid value \"PATH_BIN=$PATH_BIN\""
+ # Check for NX agents ...
+
+- [ ! -x "$PATH_BIN/nxagent" ] && \
++ [ ! -x "$REAL_PATH_BIN/nxagent" ] && \
+ ERROR="yes" && echo "Error: Could not find nxagent in $PATH_BIN. Please install some OSS components."
+
+ if [ "ENABLE_EXTERNAL_NXDESKTOP" = "1" ]
+@@ -598,7 +599,7 @@
+ [ -z $(echo "$ENABLE_ROOTLESS_MODE" | egrep "^[0|1]$") ] && \
+ ERROR="yes" && echo "Error: Invalid value \"ENABLE_ROOTLESS_MODE=$ENABLE_ROOTLESS_MODE\""
+
+- [ -z "$(strings $PATH_BIN/nxagent | egrep 'NXAGENT - Version 1.5.0|NXAGENT - Version 2.[01].0|NXAGENT - Version 3.[01].0')" ] && \
++ [ -z "$(strings $REAL_PATH_BIN/nxagent | egrep 'NXAGENT - Version 1.5.0|NXAGENT - Version 2.[01].0|NXAGENT - Version 3.[01].0')" ] && \
+ ERROR="yes" && echo "Error: Could not find 1.5.0 or 2.[01].0 or 3.[01].0 version string in nxagent. NX 1.5.0 or 2.[01].0 or 3.[01].0 backend is needed for this version of FreeNX."
+
+ [ -z $(echo "$ENABLE_USESSION" | egrep "^[0|1]$") ] && \
diff --git a/net-misc/nxserver-freenx/nxserver-freenx-0.7.2.ebuild b/net-misc/nxserver-freenx/nxserver-freenx-0.7.2.ebuild
new file mode 100644
index 000000000000..dd0c9a12043d
--- /dev/null
+++ b/net-misc/nxserver-freenx/nxserver-freenx-0.7.2.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2008 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.7.2.ebuild,v 1.1 2008/03/18 23:42:39 voyageur Exp $
+
+inherit multilib eutils
+
+MY_PN="freenx-server"
+DESCRIPTION="An X11/RDP/VNC proxy server especially well suited to low bandwidth links such as wireless, WANS, and worse"
+HOMEPAGE="http://freenx.berlios.de/"
+SRC_URI="http://download.berlios.de/freenx/${MY_PN}-${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="strip"
+IUSE="arts cups esd nxclient"
+DEPEND="virtual/ssh
+ dev-tcltk/expect
+ sys-apps/gawk
+ net-analyzer/gnu-netcat
+ nxclient? ( net-misc/nxclient )
+ !nxclient? ( !net-misc/nxclient
+ || ( x11-misc/xdialog
+ x11-apps/xmessage ) )
+ >=net-misc/nx-2.1.0
+ arts? ( kde-base/arts )
+ cups? ( net-print/cups )
+ esd? ( media-sound/esound )
+ !net-misc/nxserver-freeedition
+ !net-misc/nxserver-2xterminalserver"
+
+RDEPEND="${DEPEND}
+ media-fonts/font-misc-misc
+ media-fonts/font-cursor-misc
+ x11-apps/xauth
+ x11-apps/xrdb
+ x11-apps/sessreg"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+export NX_HOME_DIR=/var/lib/nxserver/home
+
+pkg_setup () {
+ enewuser nx -1 -1 ${NX_HOME_DIR}
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-nxloadconfig.patch
+ epatch "${FILESDIR}"/${P}-cups.patch
+
+ sed -i "/PATH_LIB=/s/lib/$(get_libdir)/g" nxloadconfig || die
+ sed -i "/REAL_PATH_BIN=/s/lib/$(get_libdir)/g" nxloadconfig || die
+
+ # Change the defaults in nxloadconfig to meet the users needs.
+ if use arts ; then
+ einfo "Enabling arts support."
+ sed -i '/ENABLE_ARTSD_PRELOAD=/s/"0"/"1"/' nxloadconfig || die
+ sed -i '/ENABLE_ARTSD_PRELOAD=/s/"0"/"1"/' node.conf.sample || die
+ fi
+ if use esd ; then
+ einfo "Enabling esd support."
+ sed -i '/ENABLE_ESD_PRELOAD=/s/"0"/"1"/' nxloadconfig || die
+ sed -i '/ENABLE_ESD_PRELOAD=/s/"0"/"1"/' node.conf.sample || die
+ fi
+ if use cups ; then
+ einfo "Enabling cups support."
+ sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' nxloadconfig || die
+ sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' node.conf.sample || die
+ fi
+}
+
+src_install() {
+ NX_ETC_DIR=/etc/nxserver
+ NX_SESS_DIR=/var/lib/nxserver/db
+
+ emake DESTDIR="${D}" install || die "install failed"
+
+ # This should be renamed to remove the blocker on net-misc/nxclient
+ use nxclient && rm "${D}"/usr/bin/nxprint
+
+ mv "${D}"/etc/nxserver/node.conf.sample "${D}"/etc/nxserver/node.conf ||
+ die "cannot find default configuration file"
+
+ 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
+
+ dodir ${NX_HOME_DIR}
+
+ for x in closed running failed ; do
+ keepdir ${NX_SESS_DIR}/$x
+ fperms 0700 ${NX_SESS_DIR}/$x
+ done
+
+ newinitd "${FILESDIR}"/nxserver.init nxserver
+}
+
+pkg_postinst () {
+ # Other NX servers ebuilds may have already created the nx account
+ # However they use different login shell/home directory paths
+ if [[ ${ROOT} == "/" ]]; then
+ usermod -s /usr/bin/nxserver nx || die "Unable to set login shell of nx user!!"
+ usermod -d ${NX_HOME_DIR} nx || die "Unable to set home directory of nx user!!"
+ usermod -G utmp nx || die "Unable to add nx user to utmp group!!"
+ else
+ elog "If you had another NX server installed before, please make sure"
+ elog "the nx user account is correctly set to:"
+ elog " * login shell: /usr/bin/nxserver"
+ elog " * home directory: ${NX_HOME_DIR}"
+ elog " * supplementary groups: utmp"
+ fi
+
+ elog "To complete the installation, run:"
+ elog " nxsetup --install --setup-nomachine-key --clean --purge"
+ elog "This will use the default Nomachine SSH key"
+}