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

Contents of /net-misc/neatx/neatx-0.3.1_p43.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Sep 15 22:04:58 2009 UTC (10 years, 6 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Revision bump to fix a few things: neatx.conf default options, netcat/gnu-netcat support, fix python objects precompilation. Thanks to calchan for review and pointers
(Portage version: 2.2_rc40/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $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 $
4
5 EAPI="2"
6
7 inherit eutils autotools distutils
8
9 DESCRIPTION="Google implementation of NX server"
10 HOMEPAGE="http://code.google.com/p/neatx/"
11 SRC_URI="mirror://gentoo/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~x86 ~amd64"
16 IUSE=""
17
18 DEPEND="dev-python/docutils"
19 RDEPEND="dev-python/pexpect
20 dev-python/simplejson
21 >=dev-python/pygtk-2.14
22 >=dev-python/pygobject-2.14
23 app-portage/portage-utils
24 media-fonts/font-misc-misc
25 media-fonts/font-cursor-misc
26 net-analyzer/netcat
27 net-misc/nx"
28
29 S=${WORKDIR}/${PN}
30
31 src_prepare() {
32 sed -i -e "s/rst2html]/rst2html.py]/" configure.ac \
33 || die "configure.ac sed failed"
34 sed -i -e "s#/lib/neatx#/neatx#" Makefile.am \
35 || die "Makefile.am sed failed"
36 sed -e "/DATA_DIR =/s#/lib/neatx#/neatx#" \
37 -i lib/constants.py || die "constants.py sed failed"
38
39 eautoreconf
40
41 # This is for bug 215944, so .pyo/.pyc files don't get into the
42 # file system
43 mv "${S}"/autotools/py-compile "${S}"/autotools/py-compile.orig
44 ln -s $(type -P true) "${S}"/autotools/py-compile
45 }
46
47 pkg_setup () {
48 if [ -z "${NX_HOME_DIR}" ];
49 then
50 export NX_HOME_DIR=/var/lib/neatx/home
51 fi
52 enewuser nx -1 -1 ${NX_HOME_DIR}
53 }
54
55 src_compile() {
56 default_src_compile
57 }
58
59 src_install() {
60 emake install DESTDIR="${D}" || die "Failed to install"
61 fperms 777 /var/lib/neatx/sessions
62 dodir ${NX_HOME_DIR}/.ssh
63 fowners nx:nx ${NX_HOME_DIR}
64 fowners nx:nx ${NX_HOME_DIR}/.ssh
65
66 insinto /etc
67 newins doc/neatx.conf.example neatx.conf
68 cat >> "${D}"/etc/neatx.conf << EOF
69
70 netcat-path = /usr/bin/netcat
71 xserssion-path = /etc/X11/Sessions/Xsession
72 use-xsession = false
73 EOF
74
75 insinto ${NX_HOME_DIR}/.ssh
76 insopts -m 600 -o nx
77 newins extras/authorized_keys.nomachine authorized_keys
78 }
79
80 pkg_postinst () {
81 distutils_pkg_postinst
82
83 # Other NX servers ebuilds may have already created the nx account
84 # However they use different login shell/home directory paths
85 if [[ ${ROOT} == "/" ]]; then
86 usermod -s /usr/$(get_libdir)/neatx/nxserver-login nx || die "Unable to set login shell of nx user!!"
87 usermod -d ${NX_HOME_DIR} nx || die "Unable to set home directory of nx user!!"
88 else
89 elog "If you had another NX server installed before, please make sure"
90 elog "the nx user account is correctly set to:"
91 elog " * login shell: /usr/$(get_libdir)/neatx/nxserver-login"
92 elog " * home directory: ${NX_HOME_DIR}"
93 fi
94
95 if ! built_with_use net-misc/openssh pam; then
96 elog ""
97 elog "net-misc/openssh was not built with PAM support"
98 elog "You will need to unlock the nx account by setting a password for it"
99 fi
100
101 elog "If you want to use the default su authentication (rather than ssh)"
102 elog "you must ensure that the nx user is a member of the wheel group."
103 elog "You can add it via \"usermod -a -G wheel nx\""
104 }

  ViewVC Help
Powered by ViewVC 1.1.20