# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=1 inherit versionator MAJOR_PV="$(get_version_component_range 1-3)" FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)" DESCRIPTION="The X2Go Thinclient Deamon" 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="" DEPEND="" RDEPEND="x11-base/xorg-x11 net-misc/x2goclient net-misc/pinentry-x2go" S=${WORKDIR} src_unpack() { unpack ${A} cd "${S}" tar xozf data.tar.gz || die "failure unpacking data.tar.gz" # changing the directory of the deamon startup config sed -i -e "s/default/conf.d/" usr/sbin/x2gothinclientd } src_install() { # dobin usr/bin/* dosbin usr/sbin/* insinto /etc/conf.d/ doins etc/default/* newinitd etc/init.d/x2gothinclient ${PN} }