/[gentoo-x86]/net-misc/nxserver-freenx/nxserver-freenx-0.2.8.ebuild
Gentoo

Contents of /net-misc/nxserver-freenx/nxserver-freenx-0.2.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Nov 8 21:51:02 2006 UTC (12 years, 10 months ago) by stuart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Removed old, buggy versions
(Portage version: 2.1.2_pre2-r9)
 (Unsigned Manifest commit)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.2.8.ebuild,v 1.2 2005/10/02 14:43:31 flameeyes Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Windows Remote Desktop for X11"
8 HOMEPAGE="http://www.kalyxo.org/twiki/bin/view/Main/FreeNX"
9 SRC_URI="http://debian.tu-bs.de/knoppix/nx/freenx-${PV}.tar.gz"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="x86 ~ppc"
13 IUSE="commercial"
14 DEPEND="net-misc/nx-x11
15 !ppc? ( commercial? ( =net-misc/nxclient-1.4* ) )
16 !commercial? ( =net-misc/nxssh-1.4* =net-misc/nxproxy-1.4* !net-misc/nxclient )
17 dev-tcltk/expect
18 net-analyzer/gnu-netcat"
19
20 S=${WORKDIR}/freenx-${PV}
21
22 pkg_setup () {
23 enewuser nx -1 -1 /usr/NX/home/nx
24 }
25
26 src_unpack() {
27 unpack ${A}
28 cd ${S}
29 epatch gentoo-nomachine.diff
30 epatch ${FILESDIR}/nxserver-path.diff
31 epatch ${FILESDIR}/fixes.diff
32 }
33
34 src_compile() {
35 einfo "Nothing to compile"
36 }
37
38 src_install() {
39
40 NX_ROOT_DIR="/usr/NX"
41 NX_BIN_DIR=${NX_ROOT_DIR}/bin
42 NX_ETC_DIR=${NX_ROOT_DIR}/etc
43 NX_HOME_ROOT=${NX_ROOT_DIR}/home
44 NX_HOME_DIR=${NX_HOME_ROOT}/nx
45 NX_SSH_DIR=${NX_HOME_DIR}/.ssh
46 NX_SESS_DIR=${NX_ROOT_DIR}/var/db
47
48 # our job here is to make this package look as much like the commercial
49 # nxserver as possible
50 #
51 # this means we only have to maintain the one pkg_postinst() function
52 # for both the commercial and gpl'd servers :)
53
54 into $NX_ROOT_DIR
55 dobin nxserver
56 dobin nxnode
57 dobin nxnode-login
58 dobin nxkeygen
59 useq commercial || dobin nxclient
60
61 dodir ${NX_ETC_DIR}
62 for x in passwords passwords.orig ; do
63 touch ${D}${NX_ETC_DIR}/$x
64 chmod 600 ${D}${NX_ETC_DIR}/$x
65 done
66
67 ssh-keygen -f ${D}${NX_ETC_DIR}/users.id_dsa -t dsa -N "" -q
68
69 for x in closed running failed ; do
70 keepdir ${NX_SESS_DIR}/$x
71 fperms 0700 ${NX_SESS_DIR}/$x
72 done
73
74 dodir ${NX_SSH_DIR}
75 fperms 0700 ${NX_HOME_DIR}
76 fperms 0700 ${NX_SSH_DIR}
77
78 cat << EOF >${D}${NX_SSH_DIR}/server.id_dsa.pub.key
79 ssh-dss AAAAB3NzaC1kc3MAAACBAJe/0DNBePG9dYLWq7cJ0SqyRf1iiZN/IbzrmBvgPTZnBa5FT/0Lcj39sRYt1paAlhchwUmwwIiSZaON5JnJOZ6jKkjWIuJ9MdTGfdvtY1aLwDMpxUVoGwEaKWOyin02IPWYSkDQb6cceuG9NfPulS9iuytdx0zIzqvGqfvudtufAAAAFQCwosRXR2QA8OSgFWSO6+kGrRJKiwAAAIEAjgvVNAYWSrnFD+cghyJbyx60AAjKtxZ0r/Pn9k94Qt2rvQoMnGgt/zU0v/y4hzg+g3JNEmO1PdHh/wDPVOxlZ6Hb5F4IQnENaAZ9uTZiFGqhBO1c8Wwjiq/MFZy3jZaidarLJvVs8EeT4mZcWxwm7nIVD4lRU2wQ2lj4aTPcepMAAACANlgcCuA4wrC+3Cic9CFkqiwO/Rn1vk8dvGuEQqFJ6f6LVfPfRTfaQU7TGVLk2CzY4dasrwxJ1f6FsT8DHTNGnxELPKRuLstGrFY/PR7KeafeFZDf+fJ3mbX5nxrld3wi5titTnX+8s4IKv29HJguPvOK/SI7cjzA+SqNfD7qEo8= root@nettuno
80 EOF
81 fperms 0600 ${NX_SSH_DIR}/server.id_dsa.pub.key
82 cp ${D}${NX_SSH_DIR}/server.id_dsa.pub.key ${D}${NX_SSH_DIR}/authorized_keys2
83 fperms 0600 ${NX_SSH_DIR}/authorized_keys2
84
85 echo -n "127.0.0.1" ${D}${NX_SSH_DIR}/known_hosts
86
87 chown -R nx:root ${D}/usr/NX
88 }
89
90 pkg_postinst () {
91 usermod -s /usr/NX/bin/nxserver nx || die "Unable to set login shell of nx user!!"
92 }

  ViewVC Help
Powered by ViewVC 1.1.20