Gentoo Archives: gentoo-commits

From: "Bernard Cafarelli (voyageur)" <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/neatx: metadata.xml ChangeLog neatx-0.3.1_p43.ebuild
Date: Wed, 09 Sep 2009 11:30:08
Message-Id: E1MlLNF-0006Az-0y@stork.gentoo.org
1 voyageur 09/09/09 11:30:05
2
3 Added: metadata.xml ChangeLog neatx-0.3.1_p43.ebuild
4 Log:
5 Initial commit from the NX overlay, ebuild by ikelos and me
6 (Portage version: 2.2_rc40/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 net-misc/neatx/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>nx</herd>
20 <longdescription>Neatx is an Open Source NX server, similar to the commercial NX server from NoMachine, originally developed by Google for an internal project</longdescription>
21 </pkgmetadata>
22
23
24
25 1.1 net-misc/neatx/ChangeLog
26
27 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/ChangeLog?rev=1.1&view=markup
28 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/ChangeLog?rev=1.1&content-type=text/plain
29
30 Index: ChangeLog
31 ===================================================================
32 # ChangeLog for net-misc/neatx
33 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
34 # $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/ChangeLog,v 1.1 2009/09/09 11:30:04 voyageur Exp $
35
36 *neatx-0.3.1_p43 (09 Sep 2009)
37
38 09 Sep 2009; Bernard Cafarelli <voyageur@g.o>
39 +neatx-0.3.1_p43.ebuild, +metadata.xml:
40 Initial commit from the NX overlay, ebuild by ikelos and me
41
42
43
44
45 1.1 net-misc/neatx/neatx-0.3.1_p43.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/neatx-0.3.1_p43.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/neatx-0.3.1_p43.ebuild?rev=1.1&content-type=text/plain
49
50 Index: neatx-0.3.1_p43.ebuild
51 ===================================================================
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/neatx-0.3.1_p43.ebuild,v 1.1 2009/09/09 11:30:04 voyageur Exp $
55
56 EAPI="2"
57
58 inherit eutils autotools distutils
59
60 DESCRIPTION="Google implementation of NX server"
61 HOMEPAGE="http://code.google.com/p/neatx/"
62 SRC_URI="mirror://gentoo/${P}.tar.bz2"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~x86 ~amd64"
67 IUSE=""
68
69 DEPEND="dev-python/docutils"
70 RDEPEND="dev-python/pexpect
71 dev-python/simplejson
72 >=dev-python/pygtk-2.14
73 >=dev-python/pygobject-2.14
74 app-portage/portage-utils
75 media-fonts/font-misc-misc
76 media-fonts/font-cursor-misc
77 net-analyzer/netcat
78 net-misc/nx"
79
80 S=${WORKDIR}/${PN}
81
82 src_prepare() {
83 sed -i -e "s/rst2html]/rst2html.py]/" configure.ac \
84 || die "configure.ac sed failed"
85 sed -i -e "s#/lib/neatx#/neatx#" Makefile.am \
86 || die "Makefile.am sed failed"
87 sed -e "/DATA_DIR =/s#/lib/neatx#/neatx#" \
88 -i lib/constants.py || die "constants.py sed failed"
89
90 eautoreconf
91
92 # This is for bug 215944, so .pyo/.pyc files don't get into the
93 # file system
94 mv "${S}"/autotools/py-compile "${S}"/autotools/py-compile.orig
95 ln -s $(type -P true) "${S}"/autotools/py-compile
96 }
97
98 pkg_setup () {
99 if [ -z "${NX_HOME_DIR}" ];
100 then
101 export NX_HOME_DIR=/var/lib/neatx/home
102 fi
103 enewuser nx -1 -1 ${NX_HOME_DIR}
104 }
105
106 src_compile() {
107 default_src_compile
108 }
109
110 src_install() {
111 emake install DESTDIR="${D}" || die "Failed to install"
112 fperms 777 /var/lib/neatx/sessions
113 dodir ${NX_HOME_DIR}/.ssh
114 fowners nx:nx ${NX_HOME_DIR}
115 fowners nx:nx ${NX_HOME_DIR}/.ssh
116
117 insinto /etc
118 newins doc/neatx.conf.example neatx.conf
119 cat >> "${D}"/etc/neatx.conf << EOF
120
121 netcat-path = /usr/bin/netcat
122 xserssion-path = /etc/X11/Sessions/Xsession
123 use-xsession = false
124 EOF
125
126 insinto ${NX_HOME_DIR}/.ssh
127 insopts -m 600 -o nx
128 newins extras/authorized_keys.nomachine authorized_keys
129 }
130
131 pkg_postinst () {
132 distutils_pkg_postinst
133
134 # Other NX servers ebuilds may have already created the nx account
135 # However they use different login shell/home directory paths
136 if [[ ${ROOT} == "/" ]]; then
137 usermod -s /usr/$(get_libdir)/neatx/nxserver-login nx || die "Unable to set login shell of nx user!!"
138 usermod -d ${NX_HOME_DIR} nx || die "Unable to set home directory of nx user!!"
139 else
140 elog "If you had another NX server installed before, please make sure"
141 elog "the nx user account is correctly set to:"
142 elog " * login shell: /usr/$(get_libdir)/neatx/nxserver-login"
143 elog " * home directory: ${NX_HOME_DIR}"
144 fi
145
146 if ! built_with_use net-misc/openssh pam; then
147 elog ""
148 elog "net-misc/openssh was not built with PAM support"
149 elog "You will need to unlock the nx account by setting a password for it"
150 fi
151
152 elog "If you want to use the default su authentication (rather than ssh)"
153 elog "you must ensure that the nx user is a member of the wheel group."
154 elog "You can add it via \"usermod -a -G wheel nx\""
155 }