diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2010-04-11 18:51:54 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2010-04-11 18:51:54 +0000 |
commit | 48d144e81c2ede6756be14559d4697440a14c332 (patch) | |
tree | 4cb0e805ce80fc385c85b1691c1089002467a995 /net-misc/nxserver-freenx | |
parent | ia64/sparc stable wrt #279739 (diff) | |
download | gentoo-2-48d144e81c2ede6756be14559d4697440a14c332.tar.gz gentoo-2-48d144e81c2ede6756be14559d4697440a14c332.tar.bz2 gentoo-2-48d144e81c2ede6756be14559d4697440a14c332.zip |
Revision bump to fix support for current stable net-misc/nx-3.4.0, bug #312879
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/nxserver-freenx')
4 files changed, 137 insertions, 8 deletions
diff --git a/net-misc/nxserver-freenx/ChangeLog b/net-misc/nxserver-freenx/ChangeLog index 8f2fc5ae6348..38f013c60392 100644 --- a/net-misc/nxserver-freenx/ChangeLog +++ b/net-misc/nxserver-freenx/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-misc/nxserver-freenx -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/ChangeLog,v 1.69 2009/12/15 20:35:41 voyageur Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/ChangeLog,v 1.70 2010/04/11 18:51:54 voyageur Exp $ + +*nxserver-freenx-0.7.3_p104-r4 (11 Apr 2010) + + 11 Apr 2010; Bernard Cafarelli <voyageur@gentoo.org> + nxserver-freenx-0.7.3_p104-r2.ebuild, + nxserver-freenx-0.7.3_p104-r3.ebuild, + +nxserver-freenx-0.7.3_p104-r4.ebuild: + Revision bump to fix support for current stable net-misc/nx-3.4.0, bug + #312879 *nxserver-freenx-0.7.3_p104-r3 (15 Dec 2009) diff --git a/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r2.ebuild b/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r2.ebuild index 5bb008f0ab94..c1e5e562aa7e 100644 --- a/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r2.ebuild +++ b/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 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.3_p104-r2.ebuild,v 1.3 2009/11/25 14:00:53 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r2.ebuild,v 1.4 2010/04/11 18:51:54 voyageur Exp $ EAPI=1 @@ -24,7 +24,7 @@ RDEPEND="dev-tcltk/expect media-fonts/font-cursor-misc media-fonts/font-misc-misc net-analyzer/gnu-netcat - >=net-misc/nx-2.1.0 + <net-misc/nx-3.4.0 sys-apps/gawk virtual/ssh x11-apps/xauth diff --git a/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r3.ebuild b/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r3.ebuild index b070a9a8bb03..637225eb3116 100644 --- a/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r3.ebuild +++ b/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 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.3_p104-r3.ebuild,v 1.1 2009/12/15 20:35:41 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r3.ebuild,v 1.2 2010/04/11 18:51:54 voyageur Exp $ EAPI=2 @@ -24,7 +24,7 @@ RDEPEND="dev-tcltk/expect media-fonts/font-cursor-misc media-fonts/font-misc-misc net-analyzer/gnu-netcat - >=net-misc/nx-2.1.0 + <net-misc/nx-3.4.0 sys-apps/gawk virtual/ssh x11-apps/xauth diff --git a/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r4.ebuild b/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r4.ebuild new file mode 100644 index 000000000000..037e8c7225da --- /dev/null +++ b/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104-r4.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2010 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.3_p104-r4.ebuild,v 1.1 2010/04/11 18:51:54 voyageur Exp $ + +EAPI=2 + +inherit multilib eutils toolchain-funcs versionator + +MAJOR_PV="$(get_version_component_range 1-3)" +PATCH_VER="$(get_version_component_range 4)" +MY_PN="freenx-server" + +DESCRIPTION="Free Software Implementation of the NX Server" +HOMEPAGE="http://freenx.berlios.de/ https://launchpad.net/~freenx-team" +SRC_URI="http://ppa.launchpad.net/freenx-team/ppa/ubuntu/pool/main/f/${MY_PN}/freenx-server_${MAJOR_PV}+teambzr${PATCH_VER/p}.orig.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+nxclient rdesktop vnc" + +DEPEND="x11-misc/gccmakedep + x11-misc/imake" +RDEPEND="dev-tcltk/expect + media-fonts/font-cursor-misc + media-fonts/font-misc-misc + net-analyzer/gnu-netcat + >=net-misc/nx-2.1.0 + sys-apps/gawk + virtual/ssh + x11-apps/xauth + x11-apps/xrdb + x11-apps/sessreg + nxclient? ( net-misc/nxclient ) + !nxclient? ( !net-misc/nxclient + || ( x11-misc/xdialog + x11-apps/xmessage ) ) + rdesktop? ( net-misc/rdesktop ) + vnc? ( x11-misc/x11vnc + || ( net-misc/tightvnc net-misc/vnc ) )" + +S=${WORKDIR}/${MY_PN} + +export NX_HOME_DIR=/var/lib/nxserver/home + +pkg_setup () { + enewuser nx -1 -1 ${NX_HOME_DIR} +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-pam_ssh.patch + epatch "${FILESDIR}"/${P}-nxnode_setup_samba.patch + epatch "${FILESDIR}"/${P}-nxloadconfig.patch + epatch "${FILESDIR}"/${PN}-0.7.3_p102-cflags.patch + epatch "${FILESDIR}"/${PN}-0.7.2-cups.patch + + # Path to net-misc/nx files, support for nx 3.4.0 + sed -e "/PATH_LIB=/s/lib/$(get_libdir)/g" \ + -e "s#REAL_PATH_LIB#/usr/$(get_libdir)/NX/bin#" \ + -e "s#3.\[0123\].0#3.\[01234\].0#g" \ + -i nxloadconfig || die "nxloadconfig sed failed" +} + +src_compile() { + emake CC=$(tc-getCC) CDEBUGFLAGS="${CFLAGS}" || die "compilation failed" +} + +src_install() { + export NX_ETC_DIR=/etc/nxserver + export 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 -a -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" + elog "This will use the default Nomachine SSH key" + elog "If you had older NX servers installed, you may need to add \"--clean --purge\" to the nxsetup command" + + if has_version net-misc/openssh[-pam]; then + elog "" + elog "net-misc/openssh was not built with PAM support" + elog "You will need to unlock the nx account by setting a password for it" + fi +} |