/[gentoo-x86]/net-misc/nxnode/nxnode-3.4.0.16.ebuild
Gentoo

Contents of /net-misc/nxnode/nxnode-3.4.0.16.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun May 22 14:03:45 2011 UTC (8 years, 4 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
3.5.0 version bump, mostly fixes consolidation from 3.4.0 branch. Drop some 3.4.0 versions

(Portage version: 2.2.0_alpha34/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/nxnode-3.4.0.16.ebuild,v 1.1 2011/02/10 13:09:15 voyageur Exp $
4
5 EAPI="2"
6
7 inherit eutils versionator
8
9 MAJOR_PV="$(get_version_component_range 1-3)"
10 FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)"
11 DESCRIPTION="shared components between the different editions of NoMachine's NX Servers"
12 HOMEPAGE="http://www.nomachine.com/"
13 SRC_URI="amd64? ( http://64.34.161.181/download/${MAJOR_PV}/Linux/nxnode-${FULL_PV}.x86_64.tar.gz )
14 x86? ( http://64.34.161.181/download/${MAJOR_PV}/Linux/nxnode-${FULL_PV}.i386.tar.gz )"
15
16 LICENSE="nomachine"
17 SLOT="0"
18 KEYWORDS="-* ~amd64 ~x86"
19 IUSE="rdesktop vnc"
20 RESTRICT="strip"
21
22 DEPEND="!<net-misc/nxserver-freeedition-3.0.0"
23 RDEPEND="=net-misc/nxclient-${MAJOR_PV}*[cups]
24 sys-process/lsof
25 x11-libs/libICE
26 x11-libs/libXmu
27 x11-libs/libSM
28 x11-libs/libXt
29 x11-libs/libXaw
30 x11-libs/libXpm
31 x11-apps/xrdb
32 rdesktop? ( net-misc/rdesktop )
33 vnc? ( x11-misc/x11vnc
34 || ( net-misc/tightvnc net-misc/vnc ) )"
35
36 S=${WORKDIR}/NX
37
38 pkg_preinst()
39 {
40 enewuser nx -1 -1 /usr/NX/home/nx
41 }
42
43 src_prepare()
44 {
45 epatch "${FILESDIR}"/nxnode-3.4.0-setup.patch
46 }
47
48 src_install()
49 {
50 # we install nxnode into /usr/NX, to make sure it doesn't clash
51 # with libraries installed for FreeNX
52
53 into /usr/NX
54 for x in nxagent nxnode nxsensor nxspool nxuexec ; do
55 dobin bin/$x
56 done
57
58 dodir /usr/NX/etc
59 cp etc/node-debian.cfg.sample "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die
60 sed -e 's|COMMAND_FUSER = .*|COMMAND_FUSER = "/usr/bin/fuser"|;' -i "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die
61 cp etc/node.lic.sample "${D}"/usr/NX/etc/node.lic.sample || die
62
63 dodir /usr/NX/lib
64 cp -R lib "${D}"/usr/NX || die
65
66 dodir /usr/NX/scripts
67 cp -R scripts "${D}"/usr/NX || die
68
69 dodir /usr/NX/share
70 cp -R share "${D}"/usr/NX || die
71
72 dodir /usr/NX/var
73 cp -R var "${D}"/usr/NX || die
74
75 dodir /etc/init.d
76 newinitd "${FILESDIR}"/nxnode-3.0.0-init nxsensor
77 }
78
79 pkg_postinst()
80 {
81 # Only install license file if none is found
82 if [ ! -f /usr/NX/etc/node.lic ]; then
83 cp "${ROOT}"/usr/NX/etc/node.lic.sample "${ROOT}"/usr/NX/etc/node.lic || die
84 chmod 0400 "${ROOT}"/usr/NX/etc/node.lic
85 chown nx:0 "${ROOT}"/usr/NX/etc/node.lic
86 fi
87
88 # only run install on the first time
89 if [ -f /usr/NX/etc/node.cfg ]; then
90 einfo "Running NoMachine's update script"
91 "${ROOT}"/usr/NX/scripts/setup/nxnode --update
92 else
93 einfo "Running NoMachine's setup script"
94 "${ROOT}"/usr/NX/scripts/setup/nxnode --install
95 fi
96
97 elog "If you want server statistics, please add nxsensor to your default runlevel"
98 elog
99 elog " rc-update add nxsensor default"
100 elog
101 elog "You will also need to change EnableSensor to 1 in /usr/NX/etc/node.cfg"
102 }

  ViewVC Help
Powered by ViewVC 1.1.20