summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2009-03-13 12:44:48 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2009-03-13 12:44:48 +0000
commit6ab466f6e78a8515bf8a3ea5935166835aa89053 (patch)
tree06f8dc742d2372e2bf7798afc6696c84ec9451a2 /net-misc/x2goserver
parentVersion bump (diff)
downloadhistorical-6ab466f6e78a8515bf8a3ea5935166835aa89053.tar.gz
historical-6ab466f6e78a8515bf8a3ea5935166835aa89053.tar.bz2
historical-6ab466f6e78a8515bf8a3ea5935166835aa89053.zip
Initial portage commit, from the NX overlay
Package-Manager: portage-2.2_rc25/cvs/Linux x86_64
Diffstat (limited to 'net-misc/x2goserver')
-rw-r--r--net-misc/x2goserver/ChangeLog10
-rw-r--r--net-misc/x2goserver/files/x2goserver.init25
-rw-r--r--net-misc/x2goserver/metadata.xml9
-rw-r--r--net-misc/x2goserver/x2goserver-2.0.1.19.ebuild67
4 files changed, 111 insertions, 0 deletions
diff --git a/net-misc/x2goserver/ChangeLog b/net-misc/x2goserver/ChangeLog
new file mode 100644
index 000000000000..b687a247b65b
--- /dev/null
+++ b/net-misc/x2goserver/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/x2goserver
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/x2goserver/ChangeLog,v 1.1 2009/03/13 12:44:48 voyageur Exp $
+
+*x2goserver-2.0.1.19 (13 Mar 2009)
+
+ 13 Mar 2009; Bernard Cafarelli <voyageur@gentoo.org>
+ +files/x2goserver.init, +metadata.xml, +x2goserver-2.0.1.19.ebuild:
+ Initial portage commit, from the NX overlay
+
diff --git a/net-misc/x2goserver/files/x2goserver.init b/net-misc/x2goserver/files/x2goserver.init
new file mode 100644
index 000000000000..c4a0927f07a4
--- /dev/null
+++ b/net-misc/x2goserver/files/x2goserver.init
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2008 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.1 2009/03/13 12:44:48 voyageur Exp $
+
+DAEMON=/usr/sbin/x2gocleansessions
+
+depend() {
+ need postgresql
+ use sshd
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet --pidfile /var/run/${SVCNAME}.pid \
+ --exec ${DAEMON} -- $DAEMON_OPTS
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid
+ eend $?
+}
diff --git a/net-misc/x2goserver/metadata.xml b/net-misc/x2goserver/metadata.xml
new file mode 100644
index 000000000000..b85de2f29ab3
--- /dev/null
+++ b/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>
diff --git a/net-misc/x2goserver/x2goserver-2.0.1.19.ebuild b/net-misc/x2goserver/x2goserver-2.0.1.19.ebuild
new file mode 100644
index 000000000000..ee2f45fcf3ed
--- /dev/null
+++ b/net-misc/x2goserver/x2goserver-2.0.1.19.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/x2goserver/x2goserver-2.0.1.19.ebuild,v 1.1 2009/03/13 12:44:48 voyageur Exp $
+
+EAPI=1
+inherit versionator
+
+MAJOR_PV="$(get_version_component_range 1-3)"
+FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)"
+DESCRIPTION="The X2Go server"
+HOMEPAGE="http://x2go.berlios.de"
+SRC_URI="http://x2go.obviously-nice.de/deb/pool-lenny/${PN}/${PN}_${FULL_PV}_all.deb"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+fuse kde"
+
+DEPEND=""
+RDEPEND="app-admin/sudo
+ net-misc/nx
+ virtual/postgresql-server
+ virtual/ssh
+ fuse? ( sys-fs/sshfs-fuse )
+ kde? ( net-misc/x2gokdebindings
+ net-misc/x2gosessionadministration )"
+# Still in the NX overlay for now
+# ldap? ( net-misc/x2goldaptools
+# kde? ( net-misc/x2gogroupadministration
+# net-misc/x2gohostadministration
+# net-misc/x2gosystemadministration
+# net-misc/x2gouseradministration ) )"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ tar xozf data.tar.gz || die "failure unpacking data.tar.gz"
+
+ # Use nxagent directly
+ sed -i -e "s/x2goagent/nxagent/" usr/bin/x2gostartagent || die "sed failed"
+}
+
+src_install() {
+ dobin usr/bin/*
+ dosbin usr/sbin/*
+
+ exeinto /usr/share/x2go/script
+ doexe usr/lib/x2go/script/x2gocreatebase.sh
+
+ insinto /etc/x2go
+ doins etc/x2go/sql
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+}
+
+pkg_postinst() {
+ elog "To work, x2goserver needs a configured postgreSQL database"
+ elog "Sample script to create the database can be found here:"
+ elog " /usr/share/x2go/script/x2gocreatebase.sh"
+ einfo ""
+ elog "You also need to give sudo rights on x2gopgwrapper to your users"
+ elog "A sudoers example for all members of the group users:"
+ elog " %users ALL=(ALL) NOPASSWD: /usr/bin/x2gopgwrapper"
+}