# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=7
DESCRIPTION="Runs other programs with the user password, kept in the Linux kernel"
HOMEPAGE="http://www.calculate-linux.org/main/en/keyexec"
SRC_URI="https://mirror.calculate-linux.org/source/${PN}/${P}.tar.bz2"

LICENSE="Apache-2.0"

SLOT="0"

KEYWORDS="amd64 x86"

IUSE="kde +rdesktop +freerdp"

DEPEND="
	rdesktop? ( net-misc/rdesktop )
	freerdp? ( net-misc/freerdp )
	>=sys-apps/keyutils-1.1
	>=sys-auth/pam_keystore-0.1
	kde? ( >=kde-base/kdelibs-4.1.0 )"

RDEPEND="${DEPEND}"

src_compile() {
	emake CFLAGS="-Wall ${CFLAGS}" || die
}

src_install() {
	emake install DESTDIR="${D}"
}
