summaryrefslogtreecommitdiff
path: root/net-misc/x2goserver
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/x2goserver')
-rw-r--r--net-misc/x2goserver/Manifest1
-rw-r--r--net-misc/x2goserver/x2goserver-4.1.0.0-r1.ebuild108
2 files changed, 109 insertions, 0 deletions
diff --git a/net-misc/x2goserver/Manifest b/net-misc/x2goserver/Manifest
index 40caa2886b5e..8d67b71966a4 100644
--- a/net-misc/x2goserver/Manifest
+++ b/net-misc/x2goserver/Manifest
@@ -7,5 +7,6 @@ DIST x2goserver-4.0.1.22.tar.gz 101286 BLAKE2B 238da88d333b6bcb31b37b7d5e44d223a
DIST x2goserver-4.1.0.0.tar.gz 132386 BLAKE2B b24b29f2eebaec04061690b51cf00f65de256ce2f68b57909909fe88a08466a1f802ead00ad9cf62a5327c2b7bc6690feb7c26b8b5b711757e88a553586fbe1a SHA512 3f48dced332729d726bffa991a7a203035fc6580dd2e094561f52b327e7c2e48b807daf68219132fbec29b5abcb865021361a35654792e58da1f2e4715ea95d0
EBUILD x2goserver-4.0.1.22-r1.ebuild 2677 BLAKE2B 61a7b46793ea8250431215b1c6019435535e5656a14af1c36d3956b906e76ecd40aa21dbf0463caa0d7fda0733b8e4299d334247bba36b3775004b80cfb9dd27 SHA512 dbbd84761f629d406e526835aa86a7367fc9d7a4a4c1e483df2f1b8b076b6f3e1b48b0246bf625f619a0b3f994bf378a4990193e4f86a5773a54fdabad9debb2
EBUILD x2goserver-4.0.1.22.ebuild 2695 BLAKE2B 94ee6af4b19646dbb7bc7e596a8914d4e4d6e0da250b23dadb780f3ec5143ab0c9ac3b2c881a910945b95364819de253cd494af3d7cdd5835389280623be6c34 SHA512 39431ef93e633a1f8dd3acd195666c8a98af247025f17ad2055a43eb054bbb113df3d20fa54fc9b73529eececd5be96ab399102eb90220199c9642fc38c07b37
+EBUILD x2goserver-4.1.0.0-r1.ebuild 2666 BLAKE2B ca104859da24f6dec1e0eb686a5600a7309eb9f688fcfd82da424cfca520b993c194d693de4f1361026f0fc997e804b2aea155b1006a65a658c683edbea01abb SHA512 ba5e7e116e4d562fe46e3083e81f18a22025a364de10453a38bec909b92de60acb9878e30df32e81dd1facba45e35ed60d6e14bb2ab671bef7f19eb29c66be3f
EBUILD x2goserver-4.1.0.0.ebuild 2482 BLAKE2B bcfcf2193352dff8ccf0a0600e8e7b609b973aeac09325ead42977e47e13eaab8d87e3b04d1498a62140a0457ec50e46398d71aaf48a7192a33595767cfe5faf SHA512 fef9591f7e35e5c3e46a9dfce6330da6a980670eab4fa521ba3f2471beb4276468590d84b3c4bdedcd48d4a704573f37e0bcb404b95a6ab0d95a166199db7cee
MISC metadata.xml 398 BLAKE2B 4e3f8a55917796a30045a54805c7d7d8d4457ec14aa2354987868e02805192f208f1dd624414e1b04633ccd4d2fccd0d05b91deabc3073aefdb019578acdc42d SHA512 f0c209499689338c77517afd3c49153e822ba45d29bf575dd6d3e8266bcbe4cb87d9a0a1744178a0392a7358b7164c765157831710ff85cb38dea5b76fd7b65f
diff --git a/net-misc/x2goserver/x2goserver-4.1.0.0-r1.ebuild b/net-misc/x2goserver/x2goserver-4.1.0.0-r1.ebuild
new file mode 100644
index 000000000000..4604560af49d
--- /dev/null
+++ b/net-misc/x2goserver/x2goserver-4.1.0.0-r1.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit multilib systemd toolchain-funcs user xdg-utils
+
+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="~amd64 ~x86"
+IUSE="+fuse postgres +sqlite"
+
+REQUIRED_USE="|| ( postgres sqlite )"
+
+DEPEND=""
+RDEPEND="dev-perl/Capture-Tiny
+ dev-perl/Config-Simple
+ dev-perl/File-BaseDir
+ dev-perl/File-ReadBackwards
+ dev-perl/File-Which
+ dev-perl/Switch
+ media-fonts/font-cursor-misc
+ media-fonts/font-misc-misc[nls]
+ >=net-misc/nx-3.5.99.14
+ net-misc/openssh
+ >=sys-apps/iproute2-4.3.0
+ x11-apps/xauth
+ x11-apps/xhost
+ x11-apps/xwininfo
+ fuse? ( net-fs/sshfs )
+ postgres? ( dev-perl/DBD-Pg )
+ sqlite? ( dev-perl/DBD-SQLite )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.1.0.0-Xresources.patch
+ "${FILESDIR}"/${PN}-4.1.0.0-skip_man2html.patch
+ )
+
+pkg_setup() {
+ # Force the group creation, #479650
+ enewgroup x2gouser
+ enewgroup x2goprint
+ enewuser x2gouser -1 -1 /var/lib/x2go x2gouser
+ enewuser x2goprint -1 -1 /var/spool/x2goprint x2goprint
+}
+
+src_prepare() {
+ default
+ # Multilib clean
+ sed -e "s#/lib/#/$(get_libdir)/#" -i x2goserver/bin/x2gopath || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ LIBDIR="/usr/$(get_libdir)/x2go" \
+ PREFIX=/usr
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ LIBDIR="/usr/$(get_libdir)/x2go" \
+ NXLIBDIR="/usr/$(get_libdir)/nx" \
+ PREFIX=/usr \
+ install
+
+ fowners root:x2goprint /usr/bin/x2goprint
+ fperms 2755 /usr/bin/x2goprint
+ fperms 0750 /etc/sudoers.d
+ fperms 0440 /etc/sudoers.d/x2goserver
+ dosym ../../usr/share/applications /etc/x2go/applications
+
+ newinitd "${FILESDIR}"/${PN}.init x2gocleansessions
+ systemd_dounit "${FILESDIR}"/x2gocleansessions.service
+}
+
+pkg_postinst() {
+ if use sqlite ; then
+ if [[ -f "${EROOT}"/var/lib/x2go/x2go_sessions ]] ; then
+ elog "To use sqlite and update your existing database, run:"
+ elog " # x2godbadmin --updatedb"
+ else
+ elog "To use sqlite and create the initial database, run:"
+ elog " # x2godbadmin --createdb"
+ fi
+
+ fi
+ if use postgres ; then
+ elog "To use a PostgreSQL database, 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"
+
+ xdg_mimeinfo_database_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_mimeinfo_database_update
+ xdg_desktop_database_update
+}