blob: 28a360dd8ba2e4077c4ba207fddfc72ad8730fba (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netselect/netselect-0.3-r1.ebuild,v 1.18 2007/04/30 13:32:25 cedk Exp $
inherit eutils flag-o-matic
DESCRIPTION="Ultrafast implementation of ping."
HOMEPAGE="http://alumnit.ca/~apenwarr/netselect/index.html"
SRC_URI="http://alumnit.ca/~apenwarr/netselect/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ~ppc-macos ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE=""
S="${WORKDIR}/${PN}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-bsd.patch"
}
src_compile() {
append-ldflags $(bindnow-flags)
sed -i \
-e "s:PREFIX =.*:PREFIX = ${D}usr:" \
-e "s:CFLAGS =.*:CFLAGS = -Wall -I. -g ${CFLAGS}:" \
-e "s:LDFLAGS =.*:LDFLAGS = -g ${LDFLAGS}:" \
-e '23,27d' \
-e '34d' \
Makefile \
|| die "sed Makefile failed"
emake || die "emake failed"
}
src_install () {
dobin netselect || die "dobin failed"
fowners root:wheel /usr/bin/netselect
fperms 4711 /usr/bin/netselect
dodoc ChangeLog HISTORY README*
}
|