You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-dns/hesiod/hesiod-3.0.2-r2.ebuild

52 lines
1.4 KiB

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/hesiod/hesiod-3.0.2-r2.ebuild,v 1.14 2008/06/18 02:06:21 darkside Exp $
inherit flag-o-matic eutils autotools
DESCRIPTION="system which uses existing DNS functionality to provide access to databases of information that changes infrequently"
HOMEPAGE="ftp://athena-dist.mit.edu/pub/ATHENA/hesiod"
SRC_URI="ftp://athena-dist.mit.edu/pub/ATHENA/${PN}/${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE=""
src_unpack() {
unpack ${A}
cd "${S}"
filter-flags -fstack-protector
#Patches stolen from RH
epatch "${FILESDIR}"/hesiod-${PV}-redhat.patch
eautoreconf || die "eautoreconf failed"
for manpage in *.3
do
if grep -q '^\.so man3/hesiod.3' ${manpage}
then
echo .so hesiod.3 > ${manpage}
elif grep -q '^\.so man3/hesiod_getmailhost.3' ${manpage}
then
echo .so hesiod_getmailhost.3 > ${manpage}
elif grep -q '^\.so man3/hesiod_getpwnam.3' ${manpage}
then
echo .so hesiod_getpwnam.3 > ${manpage}
elif grep -q '^\.so man3/hesiod_getservbyname.3' ${manpage}
then
echo .so hesiod_getservbyname.3 > ${manpage}
fi
done
}
src_compile() {
econf --sysconfdir /etc || die 'econf failed'
emake || die 'emake failed'
}
src_install() {
make DESTDIR="${D}" install || die
}