Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FL-840: x2goserver, set virtual/man dependency

  • Loading branch information...
commit 30c7f0abb2f7dad4470772b0bf0e47c47cfec265 1 parent 16191b1
@angryvincent angryvincent authored
View
2  net-misc/x2goserver/Manifest
@@ -0,0 +1,2 @@
+DIST x2goserver-4.0.0.2.tar.gz 68101 SHA256 e175a908f7a78ad797584a332aefcfce185d714a5f0d50245f8e77c8f0b85e1b SHA512 95d3148dd4a122f6d60ae7477130fae644a7c88c7555bc6dda20fe95479384e24344c7d87b6618cf6fe79b31ba05c21eb883b0390f78f6202fff8ead937dfaf1 WHIRLPOOL b0422cab05061751f24763393d9c7a320a61000531249383272216afcc1c05d8cd0c31f586453f25fd8c337ab935e8b47e54184db61cf701c91fe7000ff2df5f
+DIST x2goserver-4.0.1.6.tar.gz 69513 SHA256 5aef214e98ad2a91e87429faed2a871abdd435a081c88f86430dcf175b0c6159 SHA512 4d8372059d478cddc0a373303bae12cf2008e0e7cb953ad21c0e4558df5dcdc8f1143a5458932d06f1f9ca595f926f316310ed5623881605a76997c0d34d6b07 WHIRLPOOL c08660399640d889c6fd4e6c844196022e3b212d31a8a6d9d9c1257ea364cacaf4eee62e0f5fe4b286c56a7bd53c929deff245d9e2ff0481e7fd006e77a45c7b
View
21 net-misc/x2goserver/files/x2goserver.init
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/x2goserver/files/x2goserver.init,v 1.3 2012/07/13 09:36:58 voyageur Exp $
+
+DAEMON=/usr/sbin/x2gocleansessions
+PIDFILE=/var/run/x2goserver.pid
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
+ --exec ${DAEMON} -- $DAEMON_OPTS
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
+ eend $?
+}
View
9 net-misc/x2goserver/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>nx</herd>
+ <longdescription>The X2Go server</longdescription>
+ <use>
+ <flag name="fuse">Use <pkg>sys-fs/sshfs-fuse</pkg> to allow shared folders</flag>
+ </use>
+</pkgmetadata>
View
67 net-misc/x2goserver/x2goserver-4.0.0.2.ebuild
@@ -0,0 +1,67 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils multilib toolchain-funcs user
+
+DESCRIPTION="The X2Go server"
+HOMEPAGE="http://www.x2go.org"
+SRC_URI="http://code.x2go.org/releases/source/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="*"
+IUSE="+fuse postgres +sqlite"
+
+REQUIRED_USE="|| ( postgres sqlite )"
+
+DEPEND="virtual/man"
+RDEPEND="dev-perl/Config-Simple
+ media-fonts/font-cursor-misc
+ media-fonts/font-misc-misc
+ net-misc/nx
+ net-misc/openssh[-hpn]
+ x11-apps/xauth
+ fuse? ( sys-fs/sshfs-fuse )
+ postgres? ( dev-perl/DBD-Pg )
+ sqlite? ( dev-perl/DBD-SQLite )"
+
+pkg_setup() {
+ enewuser x2gouser -1 -1 /var/lib/x2go
+ enewuser x2goprint -1 -1 /var/spool/x2goprint
+}
+
+src_prepare() {
+ # Multilib clean
+ sed -e "/^LIBDIR=/s/lib/$(get_libdir)/" -i Makefile */Makefile || die "multilib sed failed"
+ # Use nxagent directly
+ sed -i -e "/NX_TEMP=/s/x2goagent/nxagent/" x2goserver/bin/x2gostartagent || die "sed failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" PREFIX=/usr
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install
+
+ fowners root:x2goprint /usr/bin/x2goprint
+ fperms 2755 /usr/bin/x2goprint
+ dosym /usr/share/applications /etc/x2go/applications
+
+ newinitd "${FILESDIR}"/${PN}.init x2gocleansessions
+}
+
+pkg_postinst() {
+ if use sqlite ; then
+ elog "To use sqlite and create the initial database, run:"
+ elog " # x2godbadmin --createdb"
+ fi
+ if use postgres ; then
+ elog "To use a PostgreSQL databse, more information is availabe here:"
+ elog "http://www.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql"
+ fi
+
+ elog "For password authentication, you need to enable PasswordAuthentication"
+ elog "in /etc/ssh/sshd_config (disabled by default in Gentoo)"
+ elog "An init script was installed for x2gocleansessions"
+}
View
67 net-misc/x2goserver/x2goserver-4.0.1.6.ebuild
@@ -0,0 +1,67 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils multilib toolchain-funcs user
+
+DESCRIPTION="The X2Go server"
+HOMEPAGE="http://www.x2go.org"
+SRC_URI="http://code.x2go.org/releases/source/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~*"
+IUSE="+fuse postgres +sqlite"
+
+REQUIRED_USE="|| ( postgres sqlite )"
+
+DEPEND="virtual/man"
+RDEPEND="dev-perl/Config-Simple
+ media-fonts/font-cursor-misc
+ media-fonts/font-misc-misc
+ net-misc/nx
+ net-misc/openssh[-hpn]
+ x11-apps/xauth
+ fuse? ( sys-fs/sshfs-fuse )
+ postgres? ( dev-perl/DBD-Pg )
+ sqlite? ( dev-perl/DBD-SQLite )"
+
+pkg_setup() {
+ enewuser x2gouser -1 -1 /var/lib/x2go
+ enewuser x2goprint -1 -1 /var/spool/x2goprint
+}
+
+src_prepare() {
+ # Multilib clean
+ sed -e "/^LIBDIR=/s/lib/$(get_libdir)/" -i Makefile */Makefile || die "multilib sed failed"
+ # Use nxagent directly
+ sed -i -e "/NX_TEMP=/s/x2goagent/nxagent/" x2goserver/bin/x2gostartagent || die "sed failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" PREFIX=/usr
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install
+
+ fowners root:x2goprint /usr/bin/x2goprint
+ fperms 2755 /usr/bin/x2goprint
+ dosym /usr/share/applications /etc/x2go/applications
+
+ newinitd "${FILESDIR}"/${PN}.init x2gocleansessions
+}
+
+pkg_postinst() {
+ if use sqlite ; then
+ elog "To use sqlite and create the initial database, run:"
+ elog " # x2godbadmin --createdb"
+ fi
+ if use postgres ; then
+ elog "To use a PostgreSQL databse, more information is availabe here:"
+ elog "http://www.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql"
+ fi
+
+ elog "For password authentication, you need to enable PasswordAuthentication"
+ elog "in /etc/ssh/sshd_config (disabled by default in Gentoo)"
+ elog "An init script was installed for x2gocleansessions"
+}
Please sign in to comment.
Something went wrong with that request. Please try again.