/[gentoo-x86]/net-misc/nxserver-freeedition/nxserver-freeedition-3.2.0.13.ebuild
Gentoo

Contents of /net-misc/nxserver-freeedition/nxserver-freeedition-3.2.0.13.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri May 29 14:00:54 2009 UTC (10 years, 6 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Removing 3.2 versions
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freeedition/nxserver-freeedition-3.2.0.13.ebuild,v 1.1 2008/07/21 15:45:35 voyageur Exp $
4
5 inherit eutils versionator
6
7 MAJOR_PV="$(get_version_component_range 1-3)"
8 FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)"
9 DESCRIPTION="Free edition NX server from NoMachine"
10 HOMEPAGE="http://www.nomachine.com/"
11 SRC_URI="amd64? ( http://64.34.161.181/download/${MAJOR_PV}/Linux/FE/nxserver-${FULL_PV}.x86_64.tar.gz )
12 x86? ( http://64.34.161.181/download/${MAJOR_PV}/Linux/FE/nxserver-${FULL_PV}.i386.tar.gz )"
13
14 LICENSE="nomachine"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE=""
18 RESTRICT="strip"
19
20 DEPEND="=net-misc/nxnode-3.2*
21 !net-misc/nxserver-freenx
22 !net-misc/nxserver-2xterminalserver"
23 RDEPEND="${DEPEND}
24 media-fonts/font-misc-misc
25 media-fonts/font-cursor-misc
26 x11-apps/xauth"
27
28 S="${WORKDIR}"/NX
29
30 pkg_preinst()
31 {
32 enewuser nx -1 -1 /usr/NX/home/nx
33 }
34
35 src_unpack()
36 {
37 unpack ${A}
38 cd "${S}"
39 epatch "${FILESDIR}"/nxserver-3.0.0-r4-setup.patch
40 }
41
42 src_install()
43 {
44 # we install nxserver into /usr/NX, to make sure it doesn't clash
45 # with libraries installed for FreeNX
46
47 into /usr/NX
48 dobin bin/nxserver
49
50 dodir /usr/NX/etc/keys
51 insinto /usr/NX/etc
52 doins etc/administrators.db.sample
53 doins etc/guests.db.sample
54 doins etc/passwords.db.sample
55 doins etc/profiles.db.sample
56 doins etc/users.db.sample
57 doins etc/server.lic.sample
58
59 newins etc/server-debian.cfg.sample server-gentoo.cfg.sample
60
61 cp -R home "${D}"/usr/NX || die "Unable to install home folder"
62 cp -R lib "${D}"/usr/NX || die "Unable to install lib folder"
63 cp -R scripts "${D}"/usr/NX || die "Unable to install scripts folder"
64 cp -R share "${D}"/usr/NX || die "Unable to install share folder"
65 cp -R var "${D}"/usr/NX || die "Unable to install var folder"
66
67 newinitd "${FILESDIR}"/nxserver-2.1.0-init nxserver
68 }
69
70 pkg_postinst ()
71 {
72 usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!"
73 usermod -d /usr/NX/home/nx nx || die "Unable to set home directory of nx user!!"
74
75 # only run install when no configuration file is found
76 if [ -f /usr/NX/etc/server.cfg ]; then
77 einfo "Running NoMachine's update script"
78 "${ROOT}"/usr/NX/scripts/setup/nxserver --update || die "Update script failed"
79 else
80 einfo "Running NoMachine's setup script"
81 "${ROOT}"/usr/NX/scripts/setup/nxserver --install || die "Installation script failed"
82 fi
83
84 elog "Remember to add nxserver to your default runlevel"
85 }

  ViewVC Help
Powered by ViewVC 1.1.20