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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Sep 8 19:56:43 2004 UTC (15 years ago) by stuart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Removed obsolete versions

1 # Copyright 1999-2004 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.ebuild,v 1.1 2004/09/07 19:28:31 stuart Exp $
4
5 # although we inherit from nxserver eclass, we override a lot of the
6 # functions, because that eclass is really designed to work with the
7 # commercial NX server
8
9 inherit eutils
10
11 DESCRIPTION="X11 protocol compression library"
12 HOMEPAGE="http://www.kalyxo.org/twiki/bin/view/Main/FreeNX"
13 SRC_URI="http://debian.tu-bs.de/knoppix/nx/freenx-0.2.tar.gz"
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~x86"
17 IUSE=""
18 DEPEND="net-misc/nx-x11
19 >=net-misc/nxclient-1.4
20 >=net-misc/nxssh-1.4.0
21 dev-tcltk/expect"
22
23 S=${WORKDIR}/freenx-0.2
24
25 pkg_setup () {
26 enewuser nx -1 /usr/NX/bin/nxserver /usr/NX/home/nx
27 }
28
29 src_unpack() {
30 unpack ${A}
31 cd ${S}
32 epatch gentoo-nomachine.diff
33 epatch ${FILESDIR}/freenx-0.2-gentoo.patch
34 }
35
36 src_compile() {
37 einfo "Nothing to compile"
38 }
39
40 src_install() {
41
42 NX_ROOT_DIR="/usr/NX"
43 NX_BIN_DIR=${NX_ROOT_DIR}/bin
44 NX_ETC_DIR=${NX_ROOT_DIR}/etc
45 NX_HOME_ROOT=${NX_ROOT_DIR}/home
46 NX_HOME_DIR=${NX_HOME_ROOT}/nx
47 NX_SSH_DIR=${NX_HOME_DIR}/.ssh
48 NX_SESS_DIR=${NX_ROOT_DIR}/var/db
49
50 # our job here is to make this package look as much like the commercial
51 # nxserver as possible
52 #
53 # this means we only have to maintain the one pkg_postinst() function
54 # for both the commercial and gpl'd servers :)
55
56 into $NX_ROOT_DIR
57 dobin nxserver
58 dobin nxnode
59 dobin nxnode-login
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 0701 ${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 }

  ViewVC Help
Powered by ViewVC 1.1.20