Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netselect/netselect-0.3-r2.ebuild,v 1.11 2012/10/14 21:53:59 aballier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netselect/netselect-0.3-r2.ebuild,v 1.11 2012/10/14 21:53:59 aballier Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI=5 |
6 |
|
5 |
inherit eutils flag-o-matic toolchain-funcs |
7 |
inherit eutils flag-o-matic toolchain-funcs |
6 |
|
8 |
|
7 |
DESCRIPTION="Ultrafast implementation of ping." |
9 |
DESCRIPTION="Ultrafast implementation of ping." |
Lines 10-43
Link Here
|
10 |
|
12 |
|
11 |
LICENSE="BSD" |
13 |
LICENSE="BSD" |
12 |
SLOT="0" |
14 |
SLOT="0" |
13 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd" |
15 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
14 |
IUSE="" |
16 |
IUSE="" |
15 |
|
17 |
|
16 |
S=${WORKDIR}/${PN} |
18 |
S=${WORKDIR}/${PN} |
17 |
|
19 |
|
18 |
src_unpack() { |
20 |
src_prepare() { |
19 |
unpack ${A} |
|
|
20 |
cd "${S}" |
21 |
|
22 |
epatch "${FILESDIR}/${P}-bsd.patch" |
21 |
epatch "${FILESDIR}/${P}-bsd.patch" |
23 |
} |
|
|
24 |
|
22 |
|
25 |
src_compile() { |
|
|
26 |
sed -i \ |
23 |
sed -i \ |
27 |
-e "s:PREFIX =.*:PREFIX = ${D}usr:" \ |
24 |
-e "s:PREFIX =.*:PREFIX = ${ED}usr:" \ |
28 |
-e "s:CFLAGS =.*:CFLAGS = -Wall -I. -g ${CFLAGS}:" \ |
25 |
-e "s:CFLAGS =.*:CFLAGS = -Wall -I. -g ${CFLAGS}:" \ |
29 |
-e "s:LDFLAGS =.*:LDFLAGS = -g ${LDFLAGS}:" \ |
26 |
-e "s:LDFLAGS =.*:LDFLAGS = -g ${LDFLAGS}:" \ |
30 |
-e '23,27d' \ |
27 |
-e '23,27d' \ |
31 |
-e '34d' \ |
28 |
-e '34d' \ |
32 |
Makefile \ |
29 |
Makefile \ |
33 |
|| die "sed Makefile failed" |
30 |
|| die "sed Makefile failed" |
|
|
31 |
} |
34 |
|
32 |
|
35 |
emake CC="$(tc-getCC)" || die "emake failed" |
33 |
src_compile() { |
|
|
34 |
emake CC="$(tc-getCC)" |
36 |
} |
35 |
} |
37 |
|
36 |
|
38 |
src_install () { |
37 |
src_install () { |
39 |
dobin netselect || die "dobin failed" |
38 |
dobin netselect |
40 |
fowners root:wheel /usr/bin/netselect |
39 |
if ! use prefix ; then |
41 |
fperms 4711 /usr/bin/netselect |
40 |
fowners root:wheel /usr/bin/netselect |
|
|
41 |
fperms 4711 /usr/bin/netselect |
42 |
fi |
42 |
dodoc ChangeLog HISTORY README* |
43 |
dodoc ChangeLog HISTORY README* |
43 |
} |
44 |
} |