/[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.2 Revision 1.3
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.2 2011/04/05 18:22:45 arfrever Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/neatx/Attic/neatx-0.3.1_p59-r2.ebuild,v 1.3 2011/04/05 18:40:04 arfrever Exp $
4 4
5EAPI="3" 5EAPI="3"
6 6
7PYTHON_DEPEND="2" 7PYTHON_DEPEND="2"
8inherit eutils autotools distutils 8inherit eutils autotools python
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
53 || die "Makefile.am sed failed" 53 || die "Makefile.am sed failed"
54 sed -e "/DATA_DIR =/s#/lib/neatx#/neatx#" \ 54 sed -e "/DATA_DIR =/s#/lib/neatx#/neatx#" \
55 -i lib/constants.py || die "constants.py sed failed" 55 -i lib/constants.py || die "constants.py sed failed"
56 56
57 eautoreconf 57 eautoreconf
58
59 echo "#!/bin/sh" > autotools/py-compile
58} 60}
59 61
60src_compile() { 62src_compile() {
61 default_src_compile 63 default_src_compile
62 # Scripts are automatically generated, fix them here 64 # Scripts are automatically generated, fix them here
112 newins "${ROOT}/${NX_HOME_DIR}/.ssh/authorized_keys" authorized_keys 114 newins "${ROOT}/${NX_HOME_DIR}/.ssh/authorized_keys" authorized_keys
113 fi 115 fi
114} 116}
115 117
116pkg_postinst () { 118pkg_postinst () {
117 distutils_pkg_postinst 119 python_mod_optimize neatx
118 120
119 # Other NX servers ebuilds may have already created the nx account 121 # Other NX servers ebuilds may have already created the nx account
120 # However they use different login shell/home directory paths 122 # However they use different login shell/home directory paths
121 if [[ ${ROOT} == "/" ]]; then 123 if [[ ${ROOT} == "/" ]]; then
122 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!!"
136 138
137 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)"
138 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."
139 elog "You can add it via \"usermod -a -G wheel nx\"" 141 elog "You can add it via \"usermod -a -G wheel nx\""
140} 142}
143
144pkg_postrm() {
145 python_mod_cleanup neatx
146}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20