summaryrefslogtreecommitdiff
blob: e135770410cbca6deffcae9516aca7c726f0c547 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/host/host-991529.ebuild,v 1.2 2006/06/11 15:33:29 george Exp $

# This is somewhat old tool, has not been changed since 1999,
# Still looks like host from bind does not provide all possible functionality
# at least xtraceroute wants LOC support, which is provided by this tool.

# This is the homepage for xtraceroute, not host, but that's the best I can do -
# at least it is mentioned there.

inherit toolchain-funcs

DESCRIPTION="the standalone host tool, supports LOC reporting (RFC1876)"
HOMEPAGE="http://www.dtek.chalmers.se/~d3august/xt/"
SRC_URI="ftp://ftp.ripe.net/tools/dns/${PN}.tar.Z"

LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha amd64 hppa mips ppc ppc64 sparc x86"
IUSE=""

RESTRICT="test"

DEPEND=">=sys-apps/sed-4"

S="${WORKDIR}"

src_unpack() {
	cd ${S}
	unpack ${A}

	sed -i -e "s:staff:root:" Makefile \
		|| die "sed Makefile failed"
}

src_compile() {
	emake CC="$(tc-getCC)" COPTS="${CFLAGS}" \
		|| die "emake failed"
	# ATTN!
	# This util has slightly different format of output from "standard" host
	# rename it to hostx, hopefully this does not conflict with anything.
	mv host hostx
	mv host.1 hostx.1
}

src_install () {
	cd ${WORKDIR}
	dobin hostx || die "dobin failed"
	doman hostx.1
	dodoc RE*
}