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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Aug 22 09:26:25 2014 UTC (5 years, 3 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +7 -8 lines
Add some more missing dependencies, thanks again Stefan Radermacher <gentoo@zaister.de> in bug #516234. Drop doc USE-flag, it has been useless for some times, thanks Ian Abbott <ian@abbott.org> in bug #519424

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

1 # Copyright 1999-2014 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.15.ebuild,v 1.3 2014/06/26 14:49:16 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="+fuse postgres +sqlite"
16
17 REQUIRED_USE="|| ( postgres sqlite )"
18
19 DEPEND=""
20 RDEPEND="dev-perl/Capture-Tiny
21 dev-perl/Config-Simple
22 dev-perl/File-BaseDir
23 dev-perl/File-ReadBackwards
24 media-fonts/font-cursor-misc
25 media-fonts/font-misc-misc
26 net-misc/nx
27 net-misc/openssh
28 x11-apps/xauth
29 x11-apps/xhost
30 x11-apps/xwininfo
31 fuse? ( sys-fs/sshfs-fuse )
32 postgres? ( dev-perl/DBD-Pg )
33 sqlite? ( dev-perl/DBD-SQLite )"
34
35 pkg_setup() {
36 # Force the group creation, #479650
37 enewgroup x2gouser
38 enewgroup x2goprint
39 enewuser x2gouser -1 -1 /var/lib/x2go x2gouser
40 enewuser x2goprint -1 -1 /var/spool/x2goprint x2goprint
41 }
42
43 src_prepare() {
44 # Multilib clean
45 sed -e "/^LIBDIR=/s/lib/$(get_libdir)/" -i Makefile */Makefile || die "multilib sed failed"
46 # Skip man2html build
47 sed -e "s/build-indep: build_man2html/build-indep:/" -i Makefile */Makefile || die "man2html sed failed"
48 # Use nxagent directly
49 sed -i -e "/NX_TEMP=/s/x2goagent/nxagent/" x2goserver/bin/x2gostartagent || die "sed failed"
50 }
51
52 src_compile() {
53 emake CC="$(tc-getCC)" PREFIX=/usr
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" PREFIX=/usr install
58
59 fowners root:x2goprint /usr/bin/x2goprint
60 fperms 2755 /usr/bin/x2goprint
61 fperms 0750 /etc/sudoers.d
62 fperms 0440 /etc/sudoers.d/x2goserver
63 dosym /usr/share/applications /etc/x2go/applications
64
65 newinitd "${FILESDIR}"/${PN}.init x2gocleansessions
66 systemd_dounit "${FILESDIR}"/x2gocleansessions.service
67 }
68
69 pkg_postinst() {
70 if use sqlite ; then
71 elog "To use sqlite and create the initial database, run:"
72 elog " # x2godbadmin --createdb"
73 fi
74 if use postgres ; then
75 elog "To use a PostgreSQL databse, more information is availabe here:"
76 elog "http://www.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql"
77 fi
78
79 elog "For password authentication, you need to enable PasswordAuthentication"
80 elog "in /etc/ssh/sshd_config (disabled by default in Gentoo)"
81 elog "An init script was installed for x2gocleansessions"
82 }

  ViewVC Help
Powered by ViewVC 1.1.20