/[gentoo-x86]/net-misc/neatx/neatx-0.3.1_p59-r2.ebuild
Gentoo

Diff of /net-misc/neatx/neatx-0.3.1_p59-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.6
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/Attic/neatx-0.3.1_p59-r2.ebuild,v 1.1 2011/03/14 05:20:27 wormo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/Attic/neatx-0.3.1_p59-r2.ebuild,v 1.6 2012/02/05 01:53:02 floppym Exp $
4 4
5EAPI="2" 5EAPI="3"
6 6
7PYTHON_DEPEND="2" 7PYTHON_DEPEND="2"
8inherit eutils autotools distutils 8inherit eutils autotools python multilib
9 9
10DESCRIPTION="Google implementation of NX server" 10DESCRIPTION="Google implementation of NX server"
11HOMEPAGE="http://code.google.com/p/neatx/" 11HOMEPAGE="http://code.google.com/p/neatx/"
12SRC_URI="mirror://gentoo/${P}.tar.bz2" 12SRC_URI="mirror://gentoo/${P}.tar.bz2"
13 13
14LICENSE="GPL-2" 14LICENSE="GPL-2"
15SLOT="0" 15SLOT="0"
16KEYWORDS="~amd64 ~x86" 16KEYWORDS="~amd64 ~ppc ~x86"
17IUSE="" 17IUSE=""
18 18
19DEPEND="dev-python/docutils" 19DEPEND="dev-python/docutils"
20RDEPEND="dev-python/pexpect 20RDEPEND="dev-python/pexpect
21 dev-python/simplejson 21 dev-python/simplejson
22 >=dev-python/pygtk-2.14 22 >=dev-python/pygtk-2.14
23 >=dev-python/pygobject-2.14 23 >=dev-python/pygobject-2.14:2
24 app-portage/portage-utils 24 app-portage/portage-utils
25 media-fonts/font-misc-misc 25 media-fonts/font-misc-misc
26 media-fonts/font-cursor-misc 26 media-fonts/font-cursor-misc
27 || ( net-analyzer/gnu-netcat 27 || ( net-analyzer/gnu-netcat
28 net-analyzer/netcat 28 net-analyzer/netcat
33 33
34pkg_setup () { 34pkg_setup () {
35 # configure script looks for latest python2 only, 35 # configure script looks for latest python2 only,
36 # no multiple versions support 36 # no multiple versions support
37 python_set_active_version 2 37 python_set_active_version 2
38 python_pkg_setup
38 39
39 if [ -z "${NX_HOME_DIR}" ]; 40 if [ -z "${NX_HOME_DIR}" ];
40 then 41 then
41 export NX_HOME_DIR=/var/lib/neatx/home 42 export NX_HOME_DIR=/var/lib/neatx/home
42 fi 43 fi
52 || die "Makefile.am sed failed" 53 || die "Makefile.am sed failed"
53 sed -e "/DATA_DIR =/s#/lib/neatx#/neatx#" \ 54 sed -e "/DATA_DIR =/s#/lib/neatx#/neatx#" \
54 -i lib/constants.py || die "constants.py sed failed" 55 -i lib/constants.py || die "constants.py sed failed"
55 56
56 eautoreconf 57 eautoreconf
58
59 echo "#!/bin/sh" > autotools/py-compile
57} 60}
58 61
59src_compile() { 62src_compile() {
60 default_src_compile 63 default_src_compile
61 # Scripts are automatically generated, fix them here 64 # Scripts are automatically generated, fix them here
111 newins "${ROOT}/${NX_HOME_DIR}/.ssh/authorized_keys" authorized_keys 114 newins "${ROOT}/${NX_HOME_DIR}/.ssh/authorized_keys" authorized_keys
112 fi 115 fi
113} 116}
114 117
115pkg_postinst () { 118pkg_postinst () {
116 distutils_pkg_postinst 119 python_mod_optimize neatx
117 120
118 # Other NX servers ebuilds may have already created the nx account 121 # Other NX servers ebuilds may have already created the nx account
119 # However they use different login shell/home directory paths 122 # However they use different login shell/home directory paths
120 if [[ ${ROOT} == "/" ]]; then 123 if [[ ${ROOT} == "/" ]]; then
121 usermod -s /usr/$(get_libdir)/neatx/nxserver-login nx || die "Unable to set login shell of nx user!!" 124 usermod -s /usr/$(get_libdir)/neatx/nxserver-login nx || die "Unable to set login shell of nx user!!"
135 138
136 elog "If you want to use the default su authentication (rather than ssh)" 139 elog "If you want to use the default su authentication (rather than ssh)"
137 elog "you must ensure that the nx user is a member of the wheel group." 140 elog "you must ensure that the nx user is a member of the wheel group."
138 elog "You can add it via \"usermod -a -G wheel nx\"" 141 elog "You can add it via \"usermod -a -G wheel nx\""
139} 142}
143
144pkg_postrm() {
145 python_mod_cleanup neatx
146}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20