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

Contents of /net-misc/nxserver-freenx/nxserver-freenx-0.5.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Apr 26 09:54:10 2007 UTC (12 years, 5 months ago) by voyageur
Branch: MAIN
Changes since 1.2: +3 -2 lines
Updated blockers on other NX servers
(Portage version: 2.1.2.4)

1 voyageur 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 voyageur 1.3 # $Header: /var/cvsroot/gentoo-x86/net-misc/nxserver-freenx/nxserver-freenx-0.5.0-r2.ebuild,v 1.2 2007/04/02 09:47:31 voyageur Exp $
4 voyageur 1.1
5     inherit multilib eutils rpm
6    
7     DESCRIPTION="An X11/RDP/VNC proxy server especially well suited to low bandwidth links such as wireless, WANS, and worse"
8     HOMEPAGE="http://freenx.berlios.de/"
9     SRC_URI="ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/extras/5/i386/freenx-0.5.0-5.fc5.i386.rpm"
10     LICENSE="GPL-2"
11     SLOT="0"
12     KEYWORDS="~x86"
13     RESTRICT="strip"
14     IUSE="arts cups esd nxclient"
15     DEPEND="virtual/ssh
16     dev-tcltk/expect
17     sys-apps/gawk
18     net-analyzer/gnu-netcat
19     x86? ( nxclient? ( =net-misc/nxclient-1.5* )
20     !nxclient? ( !net-misc/nxclient ) )
21     amd64? ( nxclient? ( =net-misc/nxclient-1.5* )
22     !nxclient? ( !net-misc/nxclient ) )
23     !x86? ( !amd64? ( !net-misc/nxclient ) )
24     =net-misc/nx-1.5*
25     arts? ( kde-base/arts )
26     cups? ( net-print/cups )
27     esd? ( media-sound/esound )
28 voyageur 1.3 !net-misc/nxserver-freeedition
29     !net-misc/nxserver-2xterminalserver"
30 voyageur 1.1
31     RDEPEND="${DEPEND}"
32    
33     S=${WORKDIR}
34    
35     export NX_HOME_DIR=/var/lib/nxserver/home
36    
37     pkg_setup () {
38     enewuser nx -1 -1 ${NX_HOME_DIR}
39     }
40    
41     src_unpack() {
42     rpm_unpack ${DISTDIR}/${A}
43     cd ${S}
44    
45     # fix the start commands
46     epatch ${FILESDIR}/freenx-0.5.0-startup.patch
47     # fix fullscreen support; see bug 150200
48     epatch ${FILESDIR}/freenx-0.5.0-fullscreen.patch
49     # fix newer clients support; bug 155063
50     epatch ${FILESDIR}/freenx-0.5.0-backingstore.patch
51    
52     mv etc/nxserver/node.conf.sample etc/nxserver/node.conf || die
53    
54     sed -e 's|^PATH_LIB=.*$|PATH_LIB=$NX_DIR/lib/NX/lib|;' -i usr/bin/nxloadconfig || die
55    
56     # Change the defaults in nxloadconfig to meet the users needs.
57     if use arts ; then
58     einfo "Enabling arts support."
59     sed -i '/ENABLE_ARTSD_PRELOAD=/s/"0"/"1"/' usr/bin/nxloadconfig || die
60     sed -i '/ENABLE_ARTSD_PRELOAD=/s/"0"/"1"/' etc/nxserver/node.conf || die
61     fi
62     if use esd ; then
63     einfo "Enabling esd support."
64     sed -i '/ENABLE_ESD_PRELOAD=/s/"0"/"1"/' usr/bin/nxloadconfig || die
65     sed -i '/ENABLE_ESD_PRELOAD=/s/"0"/"1"/' etc/nxserver/node.conf || die
66     fi
67     if use cups ; then
68     einfo "Enabling cups support."
69     sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' usr/bin/nxloadconfig || die
70     sed -i '/ENABLE_KDE_CUPS=/s/"0"/"1"/' etc/nxserver/node.conf || die
71     fi
72     }
73    
74     src_compile() {
75     einfo "Nothing to compile"
76     }
77    
78     src_install() {
79     NX_ETC_DIR=/etc/nxserver
80     NX_SESS_DIR=/var/lib/nxserver/db
81    
82     dobin usr/bin/nxserver
83     dobin usr/bin/nxnode
84     dobin usr/bin/nxnode-login
85     dobin usr/bin/nxkeygen
86     dobin usr/bin/nxloadconfig
87     dobin usr/bin/nxsetup
88     ( ( use x86 || use amd64 ) && use nxclient ) || dobin usr/bin/nxprint
89     ( ( use x86 || use amd64 ) && use nxclient ) || dobin usr/bin/nxclient
90    
91     dodir ${NX_ETC_DIR}
92     for x in passwords passwords.orig ; do
93     touch ${D}${NX_ETC_DIR}/$x
94     chmod 600 ${D}${NX_ETC_DIR}/$x
95     done
96    
97     insinto ${NX_ETC_DIR}
98     doins etc/nxserver/node.conf
99    
100     dodir ${NX_HOME_DIR}
101    
102     for x in closed running failed ; do
103     keepdir ${NX_SESS_DIR}/$x
104     fperms 0700 ${NX_SESS_DIR}/$x
105     done
106     }
107    
108     pkg_postinst () {
109     usermod -s /usr/bin/nxserver nx || die "Unable to set login shell of nx user!!"
110     usermod -d ${NX_HOME_DIR} nx || die "Unable to set home directory of nx user!!"
111    
112     elog "Run nxsetup --override --install to complete the installation"
113     }

  ViewVC Help
Powered by ViewVC 1.1.20