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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20