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: ChangeLog neatx-0.3.1_p43-r2.ebuild
Date: Tue, 05 Jan 2010 14:39:37
Message-Id: E1NSAZI-0005DI-LF@stork.gentoo.org
1 voyageur 10/01/05 14:39:32
2
3 Modified: ChangeLog
4 Added: neatx-0.3.1_p43-r2.ebuild
5 Log:
6 Fix documentation install path, bug #297971
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.7 net-misc/neatx/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/ChangeLog?rev=1.7&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/ChangeLog?rev=1.7&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/ChangeLog?r1=1.6&r2=1.7
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/neatx/ChangeLog,v
19 retrieving revision 1.6
20 retrieving revision 1.7
21 diff -u -r1.6 -r1.7
22 --- ChangeLog 25 Nov 2009 13:58:58 -0000 1.6
23 +++ ChangeLog 5 Jan 2010 14:39:32 -0000 1.7
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-misc/neatx
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/ChangeLog,v 1.6 2009/11/25 13:58:58 maekke Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/ChangeLog,v 1.7 2010/01/05 14:39:32 voyageur Exp $
30 +
31 +*neatx-0.3.1_p43-r2 (05 Jan 2010)
32 +
33 + 05 Jan 2010; Bernard Cafarelli <voyageur@g.o>
34 + +neatx-0.3.1_p43-r2.ebuild:
35 + Fix documentation install path, bug #297971
36
37 25 Nov 2009; Markus Meier <maekke@g.o> neatx-0.3.1_p43-r1.ebuild:
38 x86 stable, bug #291619
39
40
41
42 1.1 net-misc/neatx/neatx-0.3.1_p43-r2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/neatx-0.3.1_p43-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/neatx-0.3.1_p43-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: neatx-0.3.1_p43-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/neatx-0.3.1_p43-r2.ebuild,v 1.1 2010/01/05 14:39:32 voyageur Exp $
52
53 EAPI="2"
54
55 inherit eutils autotools distutils
56
57 DESCRIPTION="Google implementation of NX server"
58 HOMEPAGE="http://code.google.com/p/neatx/"
59 SRC_URI="mirror://gentoo/${P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE=""
65
66 DEPEND="dev-python/docutils"
67 RDEPEND="dev-python/pexpect
68 dev-python/simplejson
69 >=dev-python/pygtk-2.14
70 >=dev-python/pygobject-2.14
71 app-portage/portage-utils
72 media-fonts/font-misc-misc
73 media-fonts/font-cursor-misc
74 || ( net-analyzer/gnu-netcat
75 net-analyzer/netcat
76 net-analyzer/netcat6 )
77 net-misc/nx"
78
79 S=${WORKDIR}/${PN}
80
81 src_prepare() {
82 sed -i -e "s/rst2html]/rst2html.py]/" configure.ac \
83 || die "configure.ac sed failed"
84 sed -e "s#/lib/neatx#/neatx#" \
85 -e "/^docdir/s#\$(PACKAGE)#${PF}#" \
86 -i Makefile.am \
87 || die "Makefile.am sed failed"
88 sed -e "/DATA_DIR =/s#/lib/neatx#/neatx#" \
89 -i lib/constants.py || die "constants.py sed failed"
90
91 eautoreconf
92 }
93
94 pkg_setup () {
95 if [ -z "${NX_HOME_DIR}" ];
96 then
97 export NX_HOME_DIR=/var/lib/neatx/home
98 fi
99 enewuser nx -1 -1 ${NX_HOME_DIR}
100 }
101
102 src_compile() {
103 default_src_compile
104 }
105
106 src_install() {
107 emake install DESTDIR="${D}" || die "Failed to install"
108 fperms 777 /var/lib/neatx/sessions
109 dodir ${NX_HOME_DIR}/.ssh
110 fowners nx:nx ${NX_HOME_DIR}
111 fowners nx:nx ${NX_HOME_DIR}/.ssh
112
113 insinto /etc
114 newins doc/neatx.conf.example neatx.conf
115
116 # nc or netcat6 or netcat?
117 if has_version net-analyzer/gnu-netcat; then
118 nc_path="/usr/bin/netcat"
119 elif has_version net-analyzer/netcat6; then
120 nc_path="/usr/bin/nc6"
121 else
122 nc_path="/usr/bin/nc"
123 fi
124 cat >> "${D}"/etc/neatx.conf << EOF
125
126 netcat-path = ${nc_path}
127 use-xsession = false
128 start-gnome-command = /etc/X11/Sessions/Gnome
129 EOF
130
131 insinto ${NX_HOME_DIR}/.ssh
132 insopts -m 600 -o nx
133 newins extras/authorized_keys.nomachine authorized_keys
134 }
135
136 pkg_postinst () {
137 distutils_pkg_postinst
138
139 # Other NX servers ebuilds may have already created the nx account
140 # However they use different login shell/home directory paths
141 if [[ ${ROOT} == "/" ]]; then
142 usermod -s /usr/$(get_libdir)/neatx/nxserver-login nx || die "Unable to set login shell of nx user!!"
143 usermod -d ${NX_HOME_DIR} nx || die "Unable to set home directory of nx user!!"
144 else
145 elog "If you had another NX server installed before, please make sure"
146 elog "the nx user account is correctly set to:"
147 elog " * login shell: /usr/$(get_libdir)/neatx/nxserver-login"
148 elog " * home directory: ${NX_HOME_DIR}"
149 fi
150
151 if ! built_with_use net-misc/openssh pam; then
152 elog ""
153 elog "net-misc/openssh was not built with PAM support"
154 elog "You will need to unlock the nx account by setting a password for it"
155 fi
156
157 elog "If you want to use the default su authentication (rather than ssh)"
158 elog "you must ensure that the nx user is a member of the wheel group."
159 elog "You can add it via \"usermod -a -G wheel nx\""
160 }