# Copyright 2005,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/snap/arla-block-TR2.tar.gz" ## ${P/_rc/rc}.tar.gz" LICENSE="GPL,BSD" SLOT="0" KEYWORDS="x86" IUSE="krb4 heimdal ipv6" DEPEND="virtual/linux-sources krb4? ( >=app-crypt/kth-krb-1.3_rc1 ) heimdal? (>=app-crypt/heimdal-0.6.1)" RDEPEND="" ##SS="${WORKDIR}/${P/_rc/rc}" SS="${WORKDIR}/arla-block-TR2" S="${SS}-obj" pkg_setup() { : } src_compile() { check_KV set_arch_to_kernel # set -x mkdir -p ${S} cd ${S} || die #if use heimdal ; then HEIMDALVER=`etcat -v heimdal|colcrt|awk '$2 ~ "I]$" {FOO=$3};END{print FOO}'` KRB5_CONFIG=`qpkg -nc -l heimdal-$HEIMDALVER |egrep '/krb5-config$'` myconf="${myconf} --with-krb5="`$KRB5_CONFIG --prefix` #fi if use krb4 ; then myconf="${myconf} --with-krb4="`/usr/athena-1.3rc1/bin/krb4-config --prefix` else myconf="${myconf} --without-krb4" fi if use ipv6 ; then : else myconf="${myconf} --without-ipv6" fi # --with-pthreads works with my current library setup ${SS}/configure ${myconf} --with-sys=${KERNEL_DIR} --with-pthreads || 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 "" }