# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ if [[ ${PV} == 9999* ]] then [[ ${PV} == 9999.* ]] && EBZR_REVISION="${PV/9999./}" EBZR_REPO_URI="http://bazaar.launchpad.net/~ltsp-upstream/ltsp/" EBZR_BRANCH="ltsp-trunk" inherit bzr else SRC_URI="mirror://gentoo/${P}.tar.bz2" fi DESCRIPTION="LTSP client scripts" HOMEPAGE="http://www.ltsp.org/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND="!net-misc/ltsp-server media-sound/pulseaudio >=sys-fs/ltspfs-0.5.0 net-analyzer/netcat net-misc/openssh sys-block/nbd sys-apps/lsb-release net-ftp/tftp-hpa x11-apps/xprop >=sys-fs/sshfs-fuse-2.1" src_unpack() { if [[ ${PV} == 9999* ]] ; then bzr_src_unpack else unpack ${P}.tar.bz2 fi } src_compile() { pushd client/getltscfg emake || or die "Could not make getltspcfg" popd } src_install() { ltspdir="/usr/share/ltsp" dobin client/getltscfg/getltscfg dosbin client/jetpipe/jetpipe dodir /var/lib/ltsp-client-setup exeinto ${ltspdir} doexe client/configure-x.sh doexe client/screen_session doexe client/update-kernels exeinto ${ltspdir}/screen.d doexe client/screen.d/* insinto ${ltspdir} doins ltsp-common-functions doins client/ltsp_config doins client/screen-x-common doins client/initscripts/ltsp-init-common newinitd client/initscripts/Gentoo/ltsp-client-setup.initd ltsp-client-setup newinitd client/initscripts/Gentoo/ltsp-client.initd ltsp-client newconfd client/initscripts/Gentoo/ltsp-client-setup.confd ltsp-client-setup doman client/jetpipe/jetpipe.8 doman client/getltscfg/getltscfg.1 }