summaryrefslogtreecommitdiff
blob: 800eefdf48574f58bb98e1d98cb6711a3c2ca37e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/x2gosessionadministration/x2gosessionadministration-2.0.1.10.ebuild,v 1.1 2009/03/13 12:36:19 voyageur Exp $

EAPI="2"
inherit kde versionator

MAJOR_PV="$(get_version_component_range 1-3)"
FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)"
DESCRIPTION="The X2Go session administration (kcontrol module)"
HOMEPAGE="http://x2go.berlios.de"
SRC_URI="http://x2go.obviously-nice.de/deb/pool-lenny/${PN}/${PN}_${FULL_PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="net-nds/openldap
	arts? ( kde-base/arts )"
RDEPEND=${DEPEND}
need-kde 3

S=${WORKDIR}/${PN}-${MAJOR_PV}

src_prepare() {
	epatch "${FILESDIR}"/${PN}-ldap.patch
}

src_configure(){
	myconf="${myconf} $(use_with arts)"
}

pkg_postinst(){
        elog "The gentoo x2go ebuilds now need a different"
        elog "  /etc/x2go/x2goldaptools.conf from the original one."
        elog "You must add:"
        elog "    bindn=\"cn=yourldap,ou=bind,c=dn\""
        elog "    binddnpw=\"yourbindpassword\""
        elog "The quotes must be normal quotes and the lines must be added at the end!"
        elog "Make sure you secure the file by good permissions like 0600 and owner root!"

}