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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 9 16:23:33 2014 UTC (5 years, 10 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Hotifx bump, fixes printing. Remove previous stable candidates

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

  ViewVC Help
Powered by ViewVC 1.1.20