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