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

Contents of /net-misc/nxserver-freeedition/nxserver-freeedition-3.0.0-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Apr 3 08:14:19 2008 UTC (11 years, 8 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Removing 3.0 versions
(Portage version: 2.1.4.4)

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

  ViewVC Help
Powered by ViewVC 1.1.20