summaryrefslogtreecommitdiff
blob: 7d96fca258a3eca0897609fac52779756dbcef9b (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit toolchain-funcs

DESCRIPTION="Ping implementation that uses the TCP protocol"
HOMEPAGE="http://www.linuxco.de/tcping/tcping.html"
SRC_URI="http://www.linuxco.de/tcping/${P}.tar.gz"

LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

src_prepare() {
	sed -i -e '/^CC/d' \
		-e 's/$(CCFLAGS)/$(CFLAGS) $(LDFLAGS)/' \
		Makefile || die "sed Makefile failed"
}

src_compile() {
	tc-export CC
	default
}

src_install() {
	dobin tcping
	dodoc README
}