# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" NEED_KDE="4.1" inherit kde4-base DESCRIPTION="KDE implementation of ssh-askpass with Kwallet integration." HOMEPAGE="http://www.kde-apps.org/content/show.php?content=50971&forumpage=0" SRC_URI="http://www.kde-apps.org/CONTENT/content-files/50971-${P}.tar.gz" LICENSE="GPL-2" SLOT="4.1" KEYWORDS="~x86 ~amd64" IUSE="" RDEPEND="net-misc/openssh" src_install() { kde4-base_src_install if use kdeprefix; then cat <<-EOF > "${T}"/ksshaskpass.sh export SSH_ASKPASS="${PREFIX}/bin/ksshaskpass" EOF insinto ${PREFIX}/env doins "${T}"/ksshaskpass.sh else doenvd "${FILESDIR}"/99ssh_askpass fi } pkg_postinst() { ewarn "In order to have ksshagent start at kde startup," ewarn "edit KDEDIR/env/agent-startup.sh and uncomment" ewarn "the lines enabling ssh-agent." ewarn "" ewarn "If you do so, do not forget to uncomment the respective" ewarn "lines in KDEDIR/shutdown/agent-shutdown.sh to" ewarn "properly kill the agent when the session ends." }