1 |
voyageur 10/04/26 21:28:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: neatx-0.3.1_p59-r1.ebuild |
5 |
Log: |
6 |
python-related enhancements, see bug #315833 for details |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.9 net-misc/neatx/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/ChangeLog?rev=1.9&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/ChangeLog?rev=1.9&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/ChangeLog?r1=1.8&r2=1.9 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/neatx/ChangeLog,v |
19 |
retrieving revision 1.8 |
20 |
retrieving revision 1.9 |
21 |
diff -u -r1.8 -r1.9 |
22 |
--- ChangeLog 7 Apr 2010 09:40:10 -0000 1.8 |
23 |
+++ ChangeLog 26 Apr 2010 21:28:50 -0000 1.9 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-misc/neatx |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/ChangeLog,v 1.8 2010/04/07 09:40:10 voyageur Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/ChangeLog,v 1.9 2010/04/26 21:28:50 voyageur Exp $ |
29 |
+ |
30 |
+*neatx-0.3.1_p59-r1 (26 Apr 2010) |
31 |
+ |
32 |
+ 26 Apr 2010; Bernard Cafarelli <voyageur@g.o> |
33 |
+ +neatx-0.3.1_p59-r1.ebuild: |
34 |
+ python-related enhancements, see bug #315833 for details |
35 |
|
36 |
*neatx-0.3.1_p59 (07 Apr 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 net-misc/neatx/neatx-0.3.1_p59-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/neatx-0.3.1_p59-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/neatx/neatx-0.3.1_p59-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: neatx-0.3.1_p59-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $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 $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
PYTHON_DEPEND="2" |
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 |
pkg_setup () { |
82 |
# configure script looks for latest python2 only, |
83 |
# no multiple versions support |
84 |
python_set_active_version 2 |
85 |
|
86 |
if [ -z "${NX_HOME_DIR}" ]; |
87 |
then |
88 |
export NX_HOME_DIR=/var/lib/neatx/home |
89 |
fi |
90 |
enewuser nx -1 -1 ${NX_HOME_DIR} |
91 |
} |
92 |
|
93 |
src_prepare() { |
94 |
sed -i -e "s/rst2html]/rst2html.py]/" configure.ac \ |
95 |
|| die "configure.ac sed failed" |
96 |
sed -e "s#/lib/neatx#/neatx#" \ |
97 |
-e "/^docdir/s#\$(PACKAGE)#${PF}#" \ |
98 |
-i Makefile.am \ |
99 |
|| die "Makefile.am sed failed" |
100 |
sed -e "/DATA_DIR =/s#/lib/neatx#/neatx#" \ |
101 |
-i lib/constants.py || die "constants.py sed failed" |
102 |
|
103 |
eautoreconf |
104 |
} |
105 |
|
106 |
src_compile() { |
107 |
default_src_compile |
108 |
# Scripts are automatically generated, fix them here |
109 |
python_convert_shebangs 2 src/nx* |
110 |
} |
111 |
|
112 |
src_install() { |
113 |
emake install DESTDIR="${D}" || die "Failed to install" |
114 |
fperms 777 /var/lib/neatx/sessions |
115 |
dodir ${NX_HOME_DIR}/.ssh |
116 |
fowners nx:nx ${NX_HOME_DIR} |
117 |
fowners nx:nx ${NX_HOME_DIR}/.ssh |
118 |
|
119 |
insinto /etc |
120 |
newins doc/neatx.conf.example neatx.conf |
121 |
|
122 |
# nc or netcat6 or netcat? |
123 |
if has_version net-analyzer/gnu-netcat; then |
124 |
nc_path="/usr/bin/netcat" |
125 |
elif has_version net-analyzer/netcat6; then |
126 |
nc_path="/usr/bin/nc6" |
127 |
else |
128 |
nc_path="/usr/bin/nc" |
129 |
fi |
130 |
cat >> "${D}"/etc/neatx.conf << EOF |
131 |
|
132 |
netcat-path = ${nc_path} |
133 |
use-xsession = false |
134 |
start-gnome-command = /etc/X11/Sessions/Gnome |
135 |
EOF |
136 |
|
137 |
insinto ${NX_HOME_DIR}/.ssh |
138 |
insopts -m 600 -o nx |
139 |
newins extras/authorized_keys.nomachine authorized_keys |
140 |
} |
141 |
|
142 |
pkg_postinst () { |
143 |
distutils_pkg_postinst |
144 |
|
145 |
# Other NX servers ebuilds may have already created the nx account |
146 |
# However they use different login shell/home directory paths |
147 |
if [[ ${ROOT} == "/" ]]; then |
148 |
usermod -s /usr/$(get_libdir)/neatx/nxserver-login nx || die "Unable to set login shell of nx user!!" |
149 |
usermod -d ${NX_HOME_DIR} nx || die "Unable to set home directory of nx user!!" |
150 |
else |
151 |
elog "If you had another NX server installed before, please make sure" |
152 |
elog "the nx user account is correctly set to:" |
153 |
elog " * login shell: /usr/$(get_libdir)/neatx/nxserver-login" |
154 |
elog " * home directory: ${NX_HOME_DIR}" |
155 |
fi |
156 |
|
157 |
if has_version net-misc/openssh[-pam]; then |
158 |
elog "" |
159 |
elog "net-misc/openssh was not built with PAM support" |
160 |
elog "You will need to unlock the nx account by setting a password for it" |
161 |
fi |
162 |
|
163 |
elog "If you want to use the default su authentication (rather than ssh)" |
164 |
elog "you must ensure that the nx user is a member of the wheel group." |
165 |
elog "You can add it via \"usermod -a -G wheel nx\"" |
166 |
} |