python-related enhancements, see bug #315833 for details
authorBernard Cafarelli <voyageur@gentoo.org>
Mon, 26 Apr 2010 21:28:50 +0000 (21:28 +0000)
committerBernard Cafarelli <voyageur@gentoo.org>
Mon, 26 Apr 2010 21:28:50 +0000 (21:28 +0000)
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64

net-misc/neatx/ChangeLog
net-misc/neatx/Manifest
net-misc/neatx/neatx-0.3.1_p59-r1.ebuild [new file with mode: 0644]

index ebcc7b78e64bf5d7ea63e6628cb36bfa2332ee85..95fc1a682070a0f5d76eccf8ac3013a85444780a 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for net-misc/neatx
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/ChangeLog,v 1.8 2010/04/07 09:40:10 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/ChangeLog,v 1.9 2010/04/26 21:28:50 voyageur Exp $
+
+*neatx-0.3.1_p59-r1 (26 Apr 2010)
+
+  26 Apr 2010; Bernard Cafarelli <voyageur@gentoo.org>
+  +neatx-0.3.1_p59-r1.ebuild:
+  python-related enhancements, see bug #315833 for details
 
 *neatx-0.3.1_p59 (07 Apr 2010)
 
index 9799088bc8f93c3ecf6d21eed45889d51a14fb20..7c7fdf380387fe72314aeb7f1f032363371ef002 100644 (file)
@@ -1,6 +1,7 @@
 DIST neatx-0.3.1_p43.tar.bz2 59158 RMD160 232e26bceee83418f8404d992a1eea73287b12ce SHA1 b412b7a47cfac02949183ce9b39b07c1201a03dd SHA256 dc4a750bc5239dc984cae78f087256eb8a9184e11c5b3833b45fc0cb89a9c2db
 DIST neatx-0.3.1_p59.tar.bz2 77036 RMD160 9d1d5bace5ac56c97e92abcdcc2eca676c0caa19 SHA1 525f6c6ec74c13785b8f37cc43d1d65e5729a741 SHA256 ed4eea8395ae884c9e4b206cbed0f54c4c7f4138ed608c7f6ad52c56b496e77d
 EBUILD neatx-0.3.1_p43-r1.ebuild 3016 RMD160 0d519e0350f5f41ad4e5534dbd7cbee1ab29b336 SHA1 5346f0b2a27aa75202034db00fa18dcabb5ef49f SHA256 c4492719854ba569a363a7eac869c0d7279cd894faa4f6278ca627b146f4d9f9
+EBUILD neatx-0.3.1_p59-r1.ebuild 3280 RMD160 99c69924be3a9e8a53b62864ab6b9e0429934157 SHA1 c6ae167be1ea46cbdb79c9d2acc63b7b33adae3c SHA256 8a871bec3c342e265b1c07f0a3b26ee5723dc55d42809ca8a15e998ac061460d
 EBUILD neatx-0.3.1_p59.ebuild 3057 RMD160 1335b75b6d65ecdbee54508459befaec2ae94851 SHA1 171513837c7ccd1b628ec6eeaf25e13002c26704 SHA256 61f89302bc9f825460e6e32086e87fddb515bd11503faa93fed314d75c648ccf
-MISC ChangeLog 1551 RMD160 0ea0183ba914bad887ec8f9be410f2656814d2d0 SHA1 8523c242365f1c0fc49c3c04fa39180df442a8eb SHA256 c3b82b95fe7f1867c79e44709715205a10e6563ffc86a65492eafea2e56ac4f9
+MISC ChangeLog 1731 RMD160 f883a23a6e5a002fadb170ecb620230bbd97e4d9 SHA1 0c28a9a3574c28b2113d20ebe79f37cff3233c04 SHA256 1127f724765b351812b288bc604662ca6b846c355f44b148d6abda00c57ba94d
 MISC metadata.xml 334 RMD160 cf5f1838adacd57b72fc13f8d8fc3f64ab81cb8d SHA1 b34dc4617f03bb49a8df90220ec4ae2a54f3935f SHA256 499f67f73f4048db1c41db8e934a720dd9cdc00b6a7a48bb774993ff40eb8d8a
diff --git a/net-misc/neatx/neatx-0.3.1_p59-r1.ebuild b/net-misc/neatx/neatx-0.3.1_p59-r1.ebuild
new file mode 100644 (file)
index 0000000..53f4eac
--- /dev/null
@@ -0,0 +1,119 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/neatx-0.3.1_p59-r1.ebuild,v 1.1 2010/04/26 21:28:50 voyageur Exp $
+
+EAPI="2"
+
+PYTHON_DEPEND="2"
+inherit eutils autotools distutils
+
+DESCRIPTION="Google implementation of NX server"
+HOMEPAGE="http://code.google.com/p/neatx/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/docutils"
+RDEPEND="dev-python/pexpect
+        dev-python/simplejson
+        >=dev-python/pygtk-2.14
+        >=dev-python/pygobject-2.14
+        app-portage/portage-utils
+        media-fonts/font-misc-misc
+        media-fonts/font-cursor-misc
+        || ( net-analyzer/gnu-netcat
+               net-analyzer/netcat
+               net-analyzer/netcat6 )
+        net-misc/nx"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup () {
+       # configure script looks for latest python2 only,
+       # no multiple versions support
+       python_set_active_version 2
+
+       if [ -z "${NX_HOME_DIR}" ];
+       then
+               export NX_HOME_DIR=/var/lib/neatx/home
+       fi
+       enewuser nx -1 -1 ${NX_HOME_DIR}
+}
+
+src_prepare() {
+       sed -i -e "s/rst2html]/rst2html.py]/" configure.ac \
+               || die "configure.ac sed failed"
+       sed -e "s#/lib/neatx#/neatx#" \
+               -e "/^docdir/s#\$(PACKAGE)#${PF}#" \
+               -i Makefile.am \
+               || die "Makefile.am sed failed"
+       sed     -e "/DATA_DIR =/s#/lib/neatx#/neatx#" \
+               -i lib/constants.py || die "constants.py sed failed"
+
+       eautoreconf
+}
+
+src_compile() {
+       default_src_compile
+       # Scripts are automatically generated, fix them here
+       python_convert_shebangs 2 src/nx*
+}
+
+src_install() {
+       emake install DESTDIR="${D}" || die "Failed to install"
+       fperms 777 /var/lib/neatx/sessions
+       dodir ${NX_HOME_DIR}/.ssh
+       fowners nx:nx ${NX_HOME_DIR}
+       fowners nx:nx ${NX_HOME_DIR}/.ssh
+
+       insinto /etc
+       newins doc/neatx.conf.example neatx.conf
+
+       # nc or netcat6 or netcat?
+       if has_version net-analyzer/gnu-netcat; then
+               nc_path="/usr/bin/netcat"
+       elif has_version net-analyzer/netcat6; then
+               nc_path="/usr/bin/nc6"
+       else
+               nc_path="/usr/bin/nc"
+       fi
+       cat >> "${D}"/etc/neatx.conf << EOF
+
+netcat-path = ${nc_path}
+use-xsession = false
+start-gnome-command = /etc/X11/Sessions/Gnome
+EOF
+
+       insinto ${NX_HOME_DIR}/.ssh
+       insopts -m 600 -o nx
+       newins extras/authorized_keys.nomachine authorized_keys
+}
+
+pkg_postinst () {
+       distutils_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/$(get_libdir)/neatx/nxserver-login 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!!"
+       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/$(get_libdir)/neatx/nxserver-login"
+               elog " * home directory: ${NX_HOME_DIR}"
+       fi
+
+       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
+
+       elog "If you want to use the default su authentication (rather than ssh)"
+       elog "you must ensure that the nx user is a member of the wheel group."
+       elog "You can add it via \"usermod -a -G wheel nx\""
+}