--- heimdal-0.7.2.ebuild 2007-04-24 08:26:32.000000000 +0000 +++ usr/local/portage/app-crypt/heimdal/heimdal-0.8.1_rc3.ebuild 2007-04-25 13:52:24.000000000 +0000 @@ -6,10 +6,10 @@ #inherit libtool DESCRIPTION="Kerberos 5 implementation from KTH" -SRC_URI="ftp://ftp.pdc.kth.se/pub/heimdal/src/${P/_rc/rc}.tar.gz" +SRC_URI="ftp://ftp.pdc.kth.se/pub/heimdal/src/snapshots/${P/_rc/rc}.tar.gz" HOMEPAGE="http://www.pdc.kth.se/heimdal/" -SLOT="0.7.2" +SLOT="0" LICENSE="as-is" KEYWORDS="x86 ~ppc ~sparc" IUSE="ssl ldap berkdb ipv6 krb4" @@ -25,17 +25,13 @@ # circular dependency with USE="ldap kerberos" # -- Kain 05 Dec 2002 -S=${WORKDIR}/${P/_rc1/rc} +S=${WORKDIR}/${P/_rc/rc} src_unpack() { - unpack ${A} -## cd ${S} && epatch ${FILESDIR}/heimdal-0.7.1-procenv.patch + unpack ${A} } src_compile() { - echo $S - echo $P - echo $WORKDIR # I don't want an existing compile_et! I want a new one! test -d foo || mkdir foo @@ -43,11 +39,6 @@ chmod +x foo/compile_et PATH=$PWD/foo:$PATH - # The libtool version provided is too old. Let's redo the libtool stuff -# rm -f libtool ltconfig ltmain.sh ltcf-c.sh -# libtoolize -c --force -# autoreconf --force --install - local myconf="" echo ${PORTAGE_TMPDIR} @@ -65,7 +56,8 @@ myconf="${myconf} --enable-shared --enable-static" - myconf="${myconf} --prefix=/usr/${P/_rc/rc}" +# myconf="${myconf} --prefix=/usr/${P/_rc/rc}" + myconf="${myconf} --prefix=/usr/${PN}" CFLAGS="$CFLAGS -g" econf ${myconf} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" || die @@ -80,9 +72,18 @@ 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/,/${P/_rc/rc}/,g" > ${D}/etc/env.d/15heimdal + < ${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 +} + +