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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Jul 21 15:45:35 2008 UTC (11 years, 6 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old 3.0/3.1 versions, add minor release to ebuild version in latest 3.2
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-gentoo x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20