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