/[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.6 - (hide annotations) (download)
Mon Dec 3 21:49:48 2007 UTC (12 years, 1 month ago) by voyageur
Branch: MAIN
Changes since 1.5: +4 -4 lines
Version bump, fix some quoting
(Portage version: 2.1.4_rc6)

1 voyageur 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 voyageur 1.6 # $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freeedition/nxserver-freeedition-3.0.0-r3.ebuild,v 1.5 2007/09/20 14:53:19 rbu Exp $
4 voyageur 1.1
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 rbu 1.5 KEYWORDS="amd64 x86"
15 voyageur 1.1 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 voyageur 1.2 cd "${S}"
37     epatch "${FILESDIR}"/nxserver-3.0.0-r3-setup.patch
38 voyageur 1.1 }
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 voyageur 1.2 dobin bin/nxserver
47 voyageur 1.1
48 voyageur 1.2 dodir /usr/NX/etc/keys
49 voyageur 1.1 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 voyageur 1.6 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 voyageur 1.2 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 voyageur 1.1
65 voyageur 1.2 newinitd "${FILESDIR}"/nxserver-2.1.0-init nxserver
66 voyageur 1.1 }
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 voyageur 1.3 "${ROOT}"/usr/NX/scripts/setup/nxserver --update || die "Update script failed"
77 voyageur 1.1 else
78     einfo "Running NoMachine's setup script"
79 voyageur 1.3 "${ROOT}"/usr/NX/scripts/setup/nxserver --install || die "Installation script failed"
80 voyageur 1.1 fi
81    
82     elog "Remember to add nxserver to your default runlevel"
83     }

  ViewVC Help
Powered by ViewVC 1.1.20