# Copyright 2006 haba # Distributed under the terms of the GNU General Public License v2 # $Header:$ inherit eutils linux-mod DESCRIPTION="Arla" HOMEPAGE="http://www.stacken.kth.se/projekt/arla/" SRC_URI="ftp://ftp.stacken.kth.se/pub/arla/${P/_rc/rc}.tar.gz" LICENSE="GPL,BSD" SLOT="0" KEYWORDS="x86" HEIMDALVER=0.7.2 IUSE="heimdal" DEPEND="virtual/linux-sources heimdal? (=app-crypt/heimdal-$HEIMDALVER)" RDEPEND="" SS="${WORKDIR}/${P/_rc/rc}" S="${SS}-obj" pkg_setup() { : } src_compile() { check_KV set_arch_to_kernel #set -x pwd mkdir -p ${S} cd ${S} if use heimdal ; then KRB5_CONFIG=`equery files =heimdal-$HEIMDALVER |egrep '/krb5-config$'` myconf="${myconf} --with-krb5="`$KRB5_CONFIG --prefix` fi if use ipv6 ; then : else myconf="${myconf} --without-ipv6" fi ${SS}/configure ${myconf} --with-sys=${KERNEL_DIR} --without-krb4 --with-pthreads --sysconfdir=/etc/arla || die emake || die } src_install() { make DESTDIR=${D} install || die } pkg_postinst() { linux-mod_pkg_postinst einfo "" einfo "Please remember to re-emerge ${PN} when you upgrade your kernel!" einfo "" }