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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Sep 23 09:41:30 2011 UTC (8 years ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove vulnerable versions, security bugs #378345 and #384097. Also remove old blocker on <3.0 versions

(Portage version: 2.2.0_alpha59/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-r1.ebuild,v 1.2 2011/08/08 14:41:53 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 )"
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 epatch "${FILESDIR}"/nxnode-3.4.0-cups_path.patch
47 }
48
49 src_install()
50 {
51 # we install nxnode into /usr/NX, to make sure it doesn't clash
52 # with libraries installed for FreeNX
53
54 into /usr/NX
55 for x in nxagent nxnode nxsensor nxspool nxuexec ; do
56 dobin bin/$x
57 done
58
59 dodir /usr/NX/etc
60 cp etc/node-debian.cfg.sample "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die
61 sed -e 's|COMMAND_FUSER = .*|COMMAND_FUSER = "/usr/bin/fuser"|;' -i "${D}"/usr/NX/etc/node-gentoo.cfg.sample || die
62 cp etc/node.lic.sample "${D}"/usr/NX/etc/node.lic.sample || die
63
64 dodir /usr/NX/lib
65 cp -R lib "${D}"/usr/NX || die
66
67 dodir /usr/NX/scripts
68 cp -R scripts "${D}"/usr/NX || die
69
70 dodir /usr/NX/share
71 cp -R share "${D}"/usr/NX || die
72
73 dodir /usr/NX/var
74 cp -R var "${D}"/usr/NX || die
75
76 dodir /etc/init.d
77 newinitd "${FILESDIR}"/nxnode-3.0.0-init nxsensor
78 }
79
80 pkg_postinst()
81 {
82 # Only install license file if none is found
83 if [ ! -f /usr/NX/etc/node.lic ]; then
84 cp "${ROOT}"/usr/NX/etc/node.lic.sample "${ROOT}"/usr/NX/etc/node.lic || die
85 chmod 0400 "${ROOT}"/usr/NX/etc/node.lic
86 chown nx:0 "${ROOT}"/usr/NX/etc/node.lic
87 fi
88
89 # only run install on the first time
90 if [ -f /usr/NX/etc/node.cfg ]; then
91 einfo "Running NoMachine's update script"
92 "${ROOT}"/usr/NX/scripts/setup/nxnode --update
93 else
94 einfo "Running NoMachine's setup script"
95 "${ROOT}"/usr/NX/scripts/setup/nxnode --install
96 fi
97
98 elog "If you want server statistics, please add nxsensor to your default runlevel"
99 elog
100 elog " rc-update add nxsensor default"
101 elog
102 elog "You will also need to change EnableSensor to 1 in /usr/NX/etc/node.cfg"
103 }

  ViewVC Help
Powered by ViewVC 1.1.20