summaryrefslogtreecommitdiff
blob: 865763dbee1ff15389366c39e88fc7116a952018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="2"
inherit flag-o-matic eutils autotools

DESCRIPTION="Use 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
	mirror://gentoo/${P}-patches.tgz"

LICENSE="ISC"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
IUSE=""

src_prepare() {
	# Bug #26332
	filter-flags -fstack-protector

	# Patches stolen from Fedora hesiod-3.1.0-19.fc14.src.rpm
	rm -f aclocal.m4 || die "rm failed"
	EPATCH_SOURCE="${WORKDIR}/files/${PV}" EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch
	eautoreconf
}

src_install() {
	emake DESTDIR="${D}" install || die "install failed"
	dodoc NEWS README || die
}

pkg_postinst() {
	elog "hesinfo tools are no longer part of hesiod. Use net-dns/hesinfo
	instead"
}