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/nxserver-freeedition: nxserver-freeedition-3.4.0.8.ebuild ChangeLog
Date: Wed, 30 Sep 2009 23:06:34
Message-Id: E1Mt8Fj-0003T9-Sz@stork.gentoo.org
1 voyageur 09/09/30 23:06:31
2
3 Modified: ChangeLog
4 Added: nxserver-freeedition-3.4.0.8.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.42 net-misc/nxserver-freeedition/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxserver-freeedition/ChangeLog?rev=1.42&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxserver-freeedition/ChangeLog?rev=1.42&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxserver-freeedition/ChangeLog?r1=1.41&r2=1.42
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/nxserver-freeedition/ChangeLog,v
19 retrieving revision 1.41
20 retrieving revision 1.42
21 diff -u -r1.41 -r1.42
22 --- ChangeLog 17 Sep 2009 09:20:32 -0000 1.41
23 +++ ChangeLog 30 Sep 2009 23:06:31 -0000 1.42
24 @@ -1,6 +1,16 @@
25 # ChangeLog for net-misc/nxserver-freeedition
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freeedition/ChangeLog,v 1.41 2009/09/17 09:20:32 voyageur Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freeedition/ChangeLog,v 1.42 2009/09/30 23:06:31 voyageur Exp $
29 +
30 +*nxserver-freeedition-3.4.0.8 (30 Sep 2009)
31 +
32 + 30 Sep 2009; Bernard Cafarelli <voyageur@g.o>
33 + +nxserver-freeedition-3.4.0.8.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 nxserver-freeedition-3.3.0.27.ebuild:
42
43
44
45 1.1 net-misc/nxserver-freeedition/nxserver-freeedition-3.4.0.8.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxserver-freeedition/nxserver-freeedition-3.4.0.8.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxserver-freeedition/nxserver-freeedition-3.4.0.8.ebuild?rev=1.1&content-type=text/plain
49
50 Index: nxserver-freeedition-3.4.0.8.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/nxserver-freeedition/nxserver-freeedition-3.4.0.8.ebuild,v 1.1 2009/09/30 23:06:31 voyageur Exp $
55
56 inherit eutils versionator
57
58 MAJOR_PV="$(get_version_component_range 1-3)"
59 FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)"
60 DESCRIPTION="Free edition NX server from NoMachine"
61 HOMEPAGE="http://www.nomachine.com/"
62 SRC_URI="amd64? ( http://64.34.161.181/download/${MAJOR_PV}/Linux/FE/nxserver-${FULL_PV}.x86_64.tar.gz )
63 x86? ( http://64.34.161.181/download/${MAJOR_PV}/Linux/FE/nxserver-${FULL_PV}.i386.tar.gz )"
64
65 LICENSE="nomachine"
66 SLOT="0"
67 KEYWORDS="-* ~amd64 ~x86"
68 IUSE=""
69 RESTRICT="strip"
70
71 DEPEND="=net-misc/nxnode-3.3*"
72 RDEPEND="${DEPEND}
73 media-fonts/font-misc-misc
74 media-fonts/font-cursor-misc
75 x11-apps/xauth"
76
77 S="${WORKDIR}"/NX
78
79 pkg_preinst()
80 {
81 enewuser nx -1 -1 /usr/NX/home/nx
82 }
83
84 src_unpack()
85 {
86 unpack ${A}
87 cd "${S}"
88 epatch "${FILESDIR}"/nxserver-3.0.0-r4-setup.patch
89 epatch "${FILESDIR}"/nxserver-3.3.0-dontupdatekeys.patch
90 }
91
92 src_install()
93 {
94 # we install nxserver into /usr/NX, to make sure it doesn't clash
95 # with libraries installed for FreeNX
96
97 into /usr/NX
98 dobin bin/nxserver
99
100 dodir /usr/NX/etc/keys
101 insinto /usr/NX/etc
102 doins etc/administrators.db.sample
103 doins etc/guests.db.sample
104 doins etc/passwords.db.sample
105 doins etc/profiles.db.sample
106 doins etc/users.db.sample
107 doins etc/server.lic.sample
108
109 newins etc/server-debian.cfg.sample server-gentoo.cfg.sample
110
111 cp -R home "${D}"/usr/NX || die "Unable to install home folder"
112 cp -R lib "${D}"/usr/NX || die "Unable to install lib folder"
113 cp -R scripts "${D}"/usr/NX || die "Unable to install scripts folder"
114 cp -R share "${D}"/usr/NX || die "Unable to install share folder"
115 cp -R var "${D}"/usr/NX || die "Unable to install var folder"
116
117 newinitd "${FILESDIR}"/nxserver-2.1.0-init nxserver
118 }
119
120 pkg_postinst ()
121 {
122 # Other NX servers ebuilds may have already created the nx account
123 # However they use different login shell/home directory paths
124 if [[ ${ROOT} == "/" ]]; then
125 usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!"
126 usermod -d /usr/NX/home/nx nx || die "Unable to set home directory of nx user!!"
127 else
128 elog "If you had another NX server installed before, please make sure"
129 elog "the nx user account is correctly set to:"
130 elog " * login shell: /usr/NX/bin/nxserver"
131 elog " * home directory: /usr/NX/home/nx"
132 fi
133
134 # only run install when no configuration file is found
135 if [ -f /usr/NX/etc/server.cfg ]; then
136 einfo "Running NoMachine's update script"
137 "${ROOT}"/usr/NX/scripts/setup/nxserver --update || die "Update script failed"
138 else
139 einfo "Running NoMachine's setup script"
140 "${ROOT}"/usr/NX/scripts/setup/nxserver --install || die "Installation script failed"
141 fi
142
143 if ! built_with_use net-misc/openssh pam; then
144 elog ""
145 elog "net-misc/openssh was not built with PAM support"
146 elog "You will need to unlock the nx account by setting a password for it"
147 fi
148
149 elog "Remember to add nxserver to your default runlevel"
150 }