1 |
voyageur 09/04/20 15:21:15 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nxserver-freenx-0.7.3_p104.ebuild |
5 |
Log: |
6 |
Version bump, with some ebuild changes: dropped arts/cups/esd USE flags, better to manually enable them in configuration if needed; change recommanded nxsetup line, warn users without PAM that they need to unlock the nx account (bug #262496); add patch to support pam_ssh (i.e pambase with USE=ssh), bugs #142694 and #266572 |
7 |
(Portage version: 2.2_rc30/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.62 net-misc/nxserver-freenx/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxserver-freenx/ChangeLog?rev=1.62&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxserver-freenx/ChangeLog?rev=1.62&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxserver-freenx/ChangeLog?r1=1.61&r2=1.62 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/ChangeLog,v |
19 |
retrieving revision 1.61 |
20 |
retrieving revision 1.62 |
21 |
diff -u -r1.61 -r1.62 |
22 |
--- ChangeLog 20 Mar 2009 16:39:05 -0000 1.61 |
23 |
+++ ChangeLog 20 Apr 2009 15:21:15 -0000 1.62 |
24 |
@@ -1,6 +1,17 @@ |
25 |
# ChangeLog for net-misc/nxserver-freenx |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/ChangeLog,v 1.61 2009/03/20 16:39:05 voyageur Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/ChangeLog,v 1.62 2009/04/20 15:21:15 voyageur Exp $ |
29 |
+ |
30 |
+*nxserver-freenx-0.7.3_p104 (20 Apr 2009) |
31 |
+ |
32 |
+ 20 Apr 2009; Bernard Cafarelli <voyageur@g.o> |
33 |
+ +files/nxserver-freenx-0.7.3_p104-pam_ssh.patch, |
34 |
+ +nxserver-freenx-0.7.3_p104.ebuild: |
35 |
+ Version bump, with some ebuild changes: dropped arts/cups/esd USE flags, |
36 |
+ better to manually enable them in configuration if needed; change |
37 |
+ recommanded nxsetup line, warn users without PAM that they need to unlock |
38 |
+ the nx account (bug #262496); add patch to support pam_ssh (i.e pambase |
39 |
+ with USE=ssh), bugs #142694 and #266572 |
40 |
|
41 |
20 Mar 2009; Bernard Cafarelli <voyageur@g.o> |
42 |
nxserver-freenx-0.7.3_p102.ebuild: |
43 |
|
44 |
|
45 |
|
46 |
1.1 net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: nxserver-freenx-0.7.3_p104.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2009 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.7.3_p104.ebuild,v 1.1 2009/04/20 15:21:15 voyageur Exp $ |
56 |
|
57 |
EAPI=1 |
58 |
|
59 |
inherit multilib eutils toolchain-funcs versionator |
60 |
|
61 |
MAJOR_PV="$(get_version_component_range 1-3)" |
62 |
PATCH_VER="$(get_version_component_range 4)" |
63 |
MY_PN="freenx-server" |
64 |
|
65 |
DESCRIPTION="Free Software Implementation of the NX Server" |
66 |
HOMEPAGE="http://freenx.berlios.de/ https://launchpad.net/~freenx-team" |
67 |
SRC_URI="http://ppa.launchpad.net/freenx-team/ppa/ubuntu/pool/main/f/${MY_PN}/freenx-server_${MAJOR_PV}+teambzr${PATCH_VER/p}.orig.tar.gz" |
68 |
LICENSE="GPL-2" |
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~x86" |
71 |
IUSE="+nxclient rdesktop vnc" |
72 |
|
73 |
DEPEND="x11-misc/gccmakedep |
74 |
x11-misc/imake" |
75 |
RDEPEND="dev-tcltk/expect |
76 |
net-analyzer/gnu-netcat |
77 |
>=net-misc/nx-2.1.0 |
78 |
sys-apps/gawk |
79 |
virtual/ssh |
80 |
x11-apps/xauth |
81 |
x11-apps/xrdb |
82 |
x11-apps/sessreg |
83 |
nxclient? ( net-misc/nxclient ) |
84 |
!nxclient? ( !net-misc/nxclient |
85 |
|| ( x11-misc/xdialog |
86 |
x11-apps/xmessage ) ) |
87 |
rdesktop? ( net-misc/rdesktop ) |
88 |
vnc? ( x11-misc/x11vnc |
89 |
|| ( net-misc/tightvnc net-misc/vnc ) ) |
90 |
!net-misc/nxserver-freeedition |
91 |
!net-misc/nxserver-2xterminalserver" |
92 |
|
93 |
S=${WORKDIR}/${MY_PN} |
94 |
|
95 |
export NX_HOME_DIR=/var/lib/nxserver/home |
96 |
|
97 |
pkg_setup () { |
98 |
enewuser nx -1 -1 ${NX_HOME_DIR} |
99 |
} |
100 |
|
101 |
src_unpack() { |
102 |
unpack ${A} |
103 |
cd "${S}" |
104 |
|
105 |
epatch "${FILESDIR}"/${P}-pam_ssh.patch |
106 |
epatch "${FILESDIR}"/${PN}-0.7.3_p102-nxloadconfig.patch |
107 |
epatch "${FILESDIR}"/${PN}-0.7.3_p102-cflags.patch |
108 |
epatch "${FILESDIR}"/${PN}-0.7.2-cups.patch |
109 |
|
110 |
sed -e "/PATH_LIB=/s/lib/$(get_libdir)/g" \ |
111 |
-e "s#REAL_PATH_LIB#/usr/$(get_libdir)/NX/bin#" \ |
112 |
-i nxloadconfig || die "nxloadconfig sed failed" |
113 |
} |
114 |
|
115 |
src_compile() { |
116 |
emake CC=$(tc-getCC) CDEBUGFLAGS="${CFLAGS}" || die "compilation failed" |
117 |
} |
118 |
|
119 |
src_install() { |
120 |
export NX_ETC_DIR=/etc/nxserver |
121 |
export NX_SESS_DIR=/var/lib/nxserver/db |
122 |
|
123 |
emake DESTDIR="${D}" install || die "install failed" |
124 |
|
125 |
# This should be renamed to remove the blocker on net-misc/nxclient |
126 |
use nxclient && rm "${D}"/usr/bin/nxprint |
127 |
|
128 |
mv "${D}"/etc/nxserver/node.conf.sample "${D}"/etc/nxserver/node.conf || |
129 |
die "cannot find default configuration file" |
130 |
|
131 |
dodir ${NX_ETC_DIR} |
132 |
for x in passwords passwords.orig ; do |
133 |
touch "${D}"${NX_ETC_DIR}/$x |
134 |
chmod 600 "${D}"${NX_ETC_DIR}/$x |
135 |
done |
136 |
|
137 |
dodir ${NX_HOME_DIR} |
138 |
|
139 |
for x in closed running failed ; do |
140 |
keepdir ${NX_SESS_DIR}/$x |
141 |
fperms 0700 ${NX_SESS_DIR}/$x |
142 |
done |
143 |
|
144 |
newinitd "${FILESDIR}"/nxserver.init nxserver |
145 |
} |
146 |
|
147 |
pkg_postinst () { |
148 |
# Other NX servers ebuilds may have already created the nx account |
149 |
# However they use different login shell/home directory paths |
150 |
if [[ ${ROOT} == "/" ]]; then |
151 |
usermod -s /usr/bin/nxserver nx || die "Unable to set login shell of nx user!!" |
152 |
usermod -d ${NX_HOME_DIR} nx || die "Unable to set home directory of nx user!!" |
153 |
usermod -a -G utmp nx || die "Unable to add nx user to utmp group!!" |
154 |
else |
155 |
elog "If you had another NX server installed before, please make sure" |
156 |
elog "the nx user account is correctly set to:" |
157 |
elog " * login shell: /usr/bin/nxserver" |
158 |
elog " * home directory: ${NX_HOME_DIR}" |
159 |
elog " * supplementary groups: utmp" |
160 |
fi |
161 |
|
162 |
elog "To complete the installation, run:" |
163 |
elog " nxsetup --install --setup-nomachine-key" |
164 |
elog "This will use the default Nomachine SSH key" |
165 |
elog "If you had older NX servers installed, you may need to add \"--clean --purge\" to the nxsetup command" |
166 |
|
167 |
if ! built_with_use net-misc/openssh pam; then |
168 |
elog "" |
169 |
elog "net-misc/openssh was not built with PAM support" |
170 |
elog "You will need to unlock the nx account by setting a password for it" |
171 |
fi |
172 |
} |