# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="kerberos-ticket refresher for running services on data in kerberized file systems" HOMEPAGE="http://www.eyrie.org/~eagle/software/kstart/" SRC_URI="http://archives.eyrie.org/software/kerberos/kstart-${PV}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="afs kerberos krb4" DEPEND="afs? ( net-fs/openafs ) kerberos? ( app-crypt/mit-krb5 )" RDEPEND="${DEPEND}" S="${WORKDIR}/kstart-${PV}" src_unpack() { unpack ${A} cd ${S} # Make krenew understand happy tickets epatch ${FILESDIR}/kstart-3.10-happy-tickets.patch || die } src_compile() { econf \ $(use_enable krb4 k4start) \ $(use_with kerberos) \ $(use_with afs aklog /usr/bin/aklog) || die "could not configure" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "could not install" dobin k5start krenew if use krb4; then dobin k4start fi dodoc README NEWS }