# Copyright 2005 KTH # Distributed under the terms of the GNU General Public License v2 # $Id$ inherit eutils #inherit libtool DESCRIPTION="Kerberos 5 implementation from KTH" SRC_URI="ftp://ftp.pdc.kth.se/pub/heimdal/src/${P/_rc/rc}.tar.gz" HOMEPAGE="http://www.pdc.kth.se/heimdal/" SLOT="0" LICENSE="as-is" KEYWORDS="x86 ~ppc ~sparc" IUSE="ssl ldap berkdb ipv6 krb4" PROVIDE="virtual/krb5" DEPEND="ssl? ( >=dev-libs/openssl-0.9.7d ) afs? ( >=net-fs/openafs-1.2.10 ) krb4? ( >=app-crypt/kth-krb-1.3_rc1 ) ( >=sys-devel/libtool-1.4.3-r3 ) berkdb? ( sys-libs/db )" # ldap? ( net-nds/openldap ) # With this enabled, we create a multiple stage # circular dependency with USE="ldap kerberos" # -- Kain 05 Dec 2002 S=${WORKDIR}/${P/_rc/rc} src_unpack() { unpack ${A} } src_compile() { # I don't want an existing compile_et! I want a new one! test -d foo || mkdir foo echo exit 255 > foo/compile_et chmod +x foo/compile_et PATH=$PWD/foo:$PATH local myconf="" echo ${PORTAGE_TMPDIR} # Let's see if the openssl stuff is right # if use ssl ; then # myconf="${myconf} --with-openssl=/usr" # fi use ipv6 || myconf="${myconf} --without-ipv6" if use krb4 ; then # myconf="${myconf} --with-krb4=/usr/athena-1.3rc1" myconf="${myconf} --with-krb4-config=/usr/athena-1.3rc1/bin/krb4-config" fi myconf="${myconf} --enable-shared --enable-static" # myconf="${myconf} --prefix=/usr/${P/_rc/rc}" myconf="${myconf} --prefix=/usr/${PN}" CFLAGS="$CFLAGS -g" econf ${myconf} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" || die emake || die # paranoia # does not work today # make check || die } src_install() { DESTDIR=${D} make install || die dodir /usr/bin ln -sfn /usr/${PN}/bin/krb5-config ${D}/usr/bin/ dodir /etc/env.d < ${FILESDIR}/15heimdal sed -e "s,/heimdal/,/${PN}/,g" > ${D}/etc/env.d/15heimdal dodoc COPYRIGHT ChangeLog README NEWS PROBLEMS TODO } pkg_postinst() { ldconfig /usr/${PN}/lib }