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