/[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.2
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.2 2007/09/18 21:52:53 voyageur 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/"
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 insinto /usr/NX
60 doins -r home lib scripts
61 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"
62 63
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 64 newinitd "${FILESDIR}"/nxserver-2.1.0-init nxserver
70} 65}
71 66
72pkg_postinst () 67pkg_postinst ()
73{ 68{
74 usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!" 69 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!!" 70 usermod -d /usr/NX/home/nx nx || die "Unable to set home directory of nx user!!"
76 71
77 # only run install when no configuration file is found 72 # only run install when no configuration file is found
78 if [ -f /usr/NX/etc/server.cfg ]; then 73 if [ -f /usr/NX/etc/server.cfg ]; then
79 einfo "Running NoMachine's update script" 74 einfo "Running NoMachine's update script"
80 ${ROOT}/usr/NX/scripts/setup/nxserver --update 75 "${ROOT}"/usr/NX/scripts/setup/nxserver --update
81 else 76 else
82 einfo "Running NoMachine's setup script" 77 einfo "Running NoMachine's setup script"
83 ${ROOT}/usr/NX/scripts/setup/nxserver --install 78 "${ROOT}"/usr/NX/scripts/setup/nxserver --install
84 fi 79 fi
85 80
86 elog "Remember to add nxserver to your default runlevel" 81 elog "Remember to add nxserver to your default runlevel"
87} 82}

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

  ViewVC Help
Powered by ViewVC 1.1.20