# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="The original \"Instant Message\" system client" HOMEPAGE="http://packages.debian.org/unstable/source/zephyr" myPV="2.1.20010518.SNAPSHOT" SRC_URI="http://ftp.debian.org/debian/pool/main/z/zephyr/${PN}_${myPV}.orig.tar.gz http://ftp.debian.org/debian/pool/main/z/zephyr/${PN}_${myPV}-13.diff.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="app-crypt/mit-krb5" S=${WORKDIR}/${PN} src_unpack() { unpack ${A} cd ${S} epatch ${WORKDIR}/${PN}_${myPV}-13.diff if ! built_with_use mit-krb5 krb4; then echo eerror "This package needs kerberos to be built with krb4" eerror "support to function in any meaningful way." echo die fi } src_compile() { econf --with-krb4=/usr || die "econf failed" emake || die "emake failed" } src_install() { einstall || die "einstall failed" cd ${T} cp ${FILESDIR}/zhm.initd zhm doinitd zhm cp ${FILESDIR}/zhm.confd zhm doconfd zhm }