blob: 6324f34462a490b0cc1da6cbf26d95f933473550 (
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
|
# Copyright 1999-2005 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.12 2005/04/09 09:31:11 corsair Exp $
inherit flag-o-matic
DESCRIPTION="Ultrafast implementation of ping."
HOMEPAGE="http://www.worldvisions.ca/~apenwarr/netselect/"
SRC_URI="http://www.worldvisions.ca/~apenwarr/netselect/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~ppc-macos s390 sparc x86"
IUSE=""
S="${WORKDIR}/${PN}"
src_compile() {
use ppc-macos || append-ldflags "-Wl,-z,now"
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"
if use ppc-macos; then
sed -i -e "s:<endian.h>:<machine/endian.h>:" netselect.c || die "sed Makefile failed"
fi
emake || die "emake failed"
}
src_install () {
dobin netselect || die "dobin failed"
fowners root:wheel /usr/bin/netselect
fperms 4710 /usr/bin/netselect
dodoc ChangeLog HISTORY README*
}
|