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