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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sun Jan 2 10:40:53 2005 UTC (14 years, 9 months ago) by stuart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Removed obsolete versions

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

  ViewVC Help
Powered by ViewVC 1.1.20