/[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.2 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.2 2007/09/18 21:52:53 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
54 doins etc/users.db.sample 54 doins etc/users.db.sample
55 doins etc/server.lic.sample 55 doins etc/server.lic.sample
56 56
57 newins etc/server-debian.cfg.sample server-gentoo.cfg.sample 57 newins etc/server-debian.cfg.sample server-gentoo.cfg.sample
58 58
59 insinto /usr/NX 59 cp -R home ${D}/usr/NX || die "Unable to install home folder"
60 doins -r home lib scripts 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"
61 cp -R share "${D}"/usr/NX || die "Unable to install share folder" 62 cp -R share "${D}"/usr/NX || die "Unable to install share folder"
62 cp -R var "${D}"/usr/NX || die "Unable to install var folder" 63 cp -R var "${D}"/usr/NX || die "Unable to install var folder"
63 64
64 newinitd "${FILESDIR}"/nxserver-2.1.0-init nxserver 65 newinitd "${FILESDIR}"/nxserver-2.1.0-init nxserver
65} 66}
70 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!!"
71 72
72 # only run install when no configuration file is found 73 # only run install when no configuration file is found
73 if [ -f /usr/NX/etc/server.cfg ]; then 74 if [ -f /usr/NX/etc/server.cfg ]; then
74 einfo "Running NoMachine's update script" 75 einfo "Running NoMachine's update script"
75 "${ROOT}"/usr/NX/scripts/setup/nxserver --update 76 "${ROOT}"/usr/NX/scripts/setup/nxserver --update || die "Update script failed"
76 else 77 else
77 einfo "Running NoMachine's setup script" 78 einfo "Running NoMachine's setup script"
78 "${ROOT}"/usr/NX/scripts/setup/nxserver --install 79 "${ROOT}"/usr/NX/scripts/setup/nxserver --install || die "Installation script failed"
79 fi 80 fi
80 81
81 elog "Remember to add nxserver to your default runlevel" 82 elog "Remember to add nxserver to your default runlevel"
82} 83}

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

  ViewVC Help
Powered by ViewVC 1.1.20