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/nxnode: nxnode-3.3.0.12.ebuild ChangeLog nxnode-3.3.0.11.ebuild
Date: Fri, 23 Jan 2009 09:04:43
Message-Id: E1LQHxt-0001oE-OK@stork.gentoo.org
1 voyageur 09/01/23 09:04:37
2
3 Modified: ChangeLog
4 Added: nxnode-3.3.0.12.ebuild
5 Removed: nxnode-3.3.0.11.ebuild
6 Log:
7 Second 3.3.0 maintenance release, fixes session stability problems with Firefox, OpenOffice, VMware, flickerings when updating the screen, and other bugfixes
8 (Portage version: 2.2_rc23/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.38 net-misc/nxnode/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxnode/ChangeLog?rev=1.38&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxnode/ChangeLog?rev=1.38&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxnode/ChangeLog?r1=1.37&r2=1.38
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/nxnode/ChangeLog,v
20 retrieving revision 1.37
21 retrieving revision 1.38
22 diff -u -r1.37 -r1.38
23 --- ChangeLog 16 Jan 2009 10:12:48 -0000 1.37
24 +++ ChangeLog 23 Jan 2009 09:04:37 -0000 1.38
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-misc/nxnode
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/ChangeLog,v 1.37 2009/01/16 10:12:48 voyageur Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/ChangeLog,v 1.38 2009/01/23 09:04:37 voyageur Exp $
30 +
31 +*nxnode-3.3.0.12 (23 Jan 2009)
32 +
33 + 23 Jan 2009; Bernard Cafarelli <voyageur@g.o>
34 + -nxnode-3.3.0.11.ebuild, +nxnode-3.3.0.12.ebuild:
35 + Second 3.3.0 maintenance release, fixes session stability problems with
36 + Firefox, OpenOffice, VMware, flickerings when updating the screen, and
37 + other bugfixes
38
39 *nxnode-3.3.0.11 (16 Jan 2009)
40
41
42
43
44 1.1 net-misc/nxnode/nxnode-3.3.0.12.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxnode/nxnode-3.3.0.12.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxnode/nxnode-3.3.0.12.ebuild?rev=1.1&content-type=text/plain
48
49 Index: nxnode-3.3.0.12.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-misc/nxnode/nxnode-3.3.0.12.ebuild,v 1.1 2009/01/23 09:04:37 voyageur Exp $
54
55 inherit eutils versionator
56
57 MAJOR_PV="$(get_version_component_range 1-3)"
58 FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)"
59 DESCRIPTION="shared components between the different editions of NoMachine's NX Servers"
60 HOMEPAGE="http://www.nomachine.com/"
61 SRC_URI="amd64? ( http://64.34.161.181/download/${MAJOR_PV}/Linux/nxnode-${FULL_PV}.x86_64.tar.gz )
62 x86? ( http://64.34.161.181/download/${MAJOR_PV}/Linux/nxnode-${FULL_PV}.i386.tar.gz )"
63
64 LICENSE="nomachine"
65 SLOT="0"
66 KEYWORDS="-* ~amd64 ~x86"
67 IUSE="rdesktop vnc"
68 RESTRICT="strip"
69
70 DEPEND="!net-misc/nxserver-freenx
71 !<net-misc/nxserver-freeedition-3.0.0"
72
73 RDEPEND="=net-misc/nxclient-3.3*
74 x11-libs/libICE
75 x11-libs/libXmu
76 x11-libs/libSM
77 x11-libs/libXt
78 x11-libs/libXaw
79 x11-libs/libXpm
80 x11-apps/xrdb
81 rdesktop? ( net-misc/rdesktop )
82 vnc? ( || ( net-misc/vnc net-misc/tightvnc ) )"
83
84 S=${WORKDIR}/NX
85
86 pkg_preinst()
87 {
88 enewuser nx -1 -1 /usr/NX/home/nx
89 }
90
91 pkg_setup() {
92 if use vnc; then
93 if has_version net-misc/vnc && ! built_with_use net-misc/vnc server;
94 then
95 die "net-misc/vnc needs to be built with USE=\"server\" for VNC support"
96 fi
97
98 if has_version net-misc/tightvnc && ! built_with_use net-misc/tightvnc server;
99 then
100 die "net-misc/tightvnc needs to be built with USE=\"server\" for VNC support"
101 fi
102 fi
103 }
104
105 src_unpack()
106 {
107 unpack ${A}
108 cd "${S}"
109 epatch "${FILESDIR}"/nxnode-3.0.0-setup.patch
110 }
111
112 src_install()
113 {
114 # we install nxnode into /usr/NX, to make sure it doesn't clash
115 # with libraries installed for FreeNX
116
117 into /usr/NX
118 for x in nxagent nxnode nxsensor nxspool nxuexec ; do
119 dobin bin/$x
120 done
121
122 dodir /usr/NX/etc
123 cp etc/node-debian.cfg.sample "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die
124 sed -e 's|COMMAND_FUSER = .*|COMMAND_FUSER = "/usr/bin/fuser"|;' -i "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die
125 cp etc/node.lic.sample "${D}"/usr/NX/etc/node.lic.sample || die
126
127 dodir /usr/NX/lib
128 cp -R lib "${D}"/usr/NX || die
129
130 dodir /usr/NX/scripts
131 cp -R scripts "${D}"/usr/NX || die
132
133 dodir /usr/NX/share
134 cp -R share "${D}"/usr/NX || die
135
136 dodir /usr/NX/var
137 cp -R var "${D}"/usr/NX || die
138
139 dodir /etc/init.d
140 newinitd "${FILESDIR}"/nxnode-3.0.0-init nxsensor
141 }
142
143 pkg_postinst()
144 {
145 # Only install license file if none is found
146 if [ ! -f /usr/NX/etc/node.lic ]; then
147 cp "${ROOT}"/usr/NX/etc/node.lic.sample "${ROOT}"/usr/NX/etc/node.lic || die
148 chmod 0400 "${ROOT}"/usr/NX/etc/node.lic
149 chown nx:0 "${ROOT}"/usr/NX/etc/node.lic
150 fi
151
152 # only run install on the first time
153 if [ -f /usr/NX/etc/node.cfg ]; then
154 einfo "Running NoMachine's update script"
155 "${ROOT}"/usr/NX/scripts/setup/nxnode --update
156 else
157 einfo "Running NoMachine's setup script"
158 "${ROOT}"/usr/NX/scripts/setup/nxnode --install
159 fi
160
161 elog "If you want server statistics, please add nxsensor to your default runlevel"
162 elog
163 elog " rc-update add nxsensor default"
164 elog
165 elog "You will also need to change EnableSensor to 1 in /usr/NX/etc/node.cfg"
166 }