/[gentoo-x86]/net-misc/x2goserver/x2goserver-4.0.1.8.ebuild
Gentoo

Contents of /net-misc/x2goserver/x2goserver-4.0.1.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Mar 3 16:40:56 2014 UTC (5 years, 9 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove vulnerable versions, security bug #497260

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key C74525F2)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/x2goserver/x2goserver-4.0.1.8.ebuild,v 1.1 2013/11/27 12:53:19 voyageur Exp $
4
5 EAPI=4
6 inherit eutils multilib systemd toolchain-funcs user
7
8 DESCRIPTION="The X2Go server"
9 HOMEPAGE="http://www.x2go.org"
10 SRC_URI="http://code.x2go.org/releases/source/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="+doc +fuse postgres +sqlite"
16
17 REQUIRED_USE="|| ( postgres sqlite )"
18
19 # Requires man2html, only provided by sys-apps/man
20 DEPEND="doc? ( sys-apps/man )"
21 RDEPEND="dev-perl/Config-Simple
22 media-fonts/font-cursor-misc
23 media-fonts/font-misc-misc
24 net-misc/nx
25 net-misc/openssh
26 x11-apps/xauth
27 fuse? ( sys-fs/sshfs-fuse )
28 postgres? ( dev-perl/DBD-Pg )
29 sqlite? ( dev-perl/DBD-SQLite )"
30
31 pkg_setup() {
32 # Force the group creation, #479650
33 enewgroup x2gouser
34 enewgroup x2goprint
35 enewuser x2gouser -1 -1 /var/lib/x2go x2gouser
36 enewuser x2goprint -1 -1 /var/spool/x2goprint x2goprint
37 }
38
39 src_prepare() {
40 # Multilib clean
41 sed -e "/^LIBDIR=/s/lib/$(get_libdir)/" -i Makefile */Makefile || die "multilib sed failed"
42 # Skip man2html build if needed
43 if ! use doc; then
44 sed -e "s/build-indep: build_man2html/build-indep:/" -i Makefile */Makefile || die "man2html sed failed"
45 fi
46 # Use nxagent directly
47 sed -i -e "/NX_TEMP=/s/x2goagent/nxagent/" x2goserver/bin/x2gostartagent || die "sed failed"
48 }
49
50 src_compile() {
51 emake CC="$(tc-getCC)" PREFIX=/usr
52 }
53
54 src_install() {
55 emake DESTDIR="${D}" PREFIX=/usr install
56
57 fowners root:x2goprint /usr/bin/x2goprint
58 fperms 2755 /usr/bin/x2goprint
59 dosym /usr/share/applications /etc/x2go/applications
60
61 newinitd "${FILESDIR}"/${PN}.init x2gocleansessions
62 systemd_dounit "${FILESDIR}"/x2gocleansessions.service
63 }
64
65 pkg_postinst() {
66 if use sqlite ; then
67 elog "To use sqlite and create the initial database, run:"
68 elog " # x2godbadmin --createdb"
69 fi
70 if use postgres ; then
71 elog "To use a PostgreSQL databse, more information is availabe here:"
72 elog "http://www.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql"
73 fi
74
75 elog "For password authentication, you need to enable PasswordAuthentication"
76 elog "in /etc/ssh/sshd_config (disabled by default in Gentoo)"
77 elog "An init script was installed for x2gocleansessions"
78 }

  ViewVC Help
Powered by ViewVC 1.1.20