Lines 1-13
Link Here
|
1 |
# Copyright 1999-2010 Gentoo Foundation |
1 |
# Copyright 1999-2010 Gentoo Foundation |
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-misc/iputils/iputils-20071127-r2.ebuild,v 1.2 2010/01/07 15:52:15 fauli Exp $ |
3 |
# $Header: |
4 |
|
4 |
|
5 |
inherit flag-o-matic eutils toolchain-funcs |
5 |
inherit flag-o-matic eutils toolchain-funcs |
6 |
|
6 |
|
7 |
DESCRIPTION="Network monitoring tools including ping and ping6" |
7 |
DESCRIPTION="Network monitoring tools including ping and ping6" |
8 |
HOMEPAGE="http://www.linux-foundation.org/en/Net:Iputils" |
8 |
HOMEPAGE="http://www.linux-foundation.org/en/Net:Iputils" |
9 |
SRC_URI="http://www.skbuff.net/iputils/iputils-s${PV}.tar.bz2 |
9 |
SRC_URI="http://www.skbuff.net/iputils/iputils-s${PV}.tar.bz2 |
10 |
mirror://gentoo/iputils-s${PV}-manpages.tar.bz2" |
10 |
mirror://gentoo/iputils-s${PV}-manpages.tar.bz2" |
11 |
|
11 |
|
12 |
LICENSE="BSD" |
12 |
LICENSE="BSD" |
13 |
SLOT="0" |
13 |
SLOT="0" |
Lines 29-40
Link Here
|
29 |
src_unpack() { |
29 |
src_unpack() { |
30 |
unpack ${A} |
30 |
unpack ${A} |
31 |
cd "${S}" |
31 |
cd "${S}" |
32 |
epatch "${FILESDIR}"/${P}-gcc34.patch |
32 |
# epatch "${FILESDIR}"/${P}-gcc34.patch |
33 |
epatch "${FILESDIR}"/021109-uclibc-no-ether_ntohost.patch |
33 |
epatch "${FILESDIR}"/021109-uclibc-no-ether_ntohost.patch |
34 |
epatch "${FILESDIR}"/${PN}-20070202-makefile.patch |
34 |
epatch "${FILESDIR}"/${PN}-20070202-makefile.patch |
35 |
epatch "${FILESDIR}"/${P}-kernel-ifaddr.patch |
35 |
epatch "${FILESDIR}"/${PN}-20071127-kernel-ifaddr.patch |
36 |
epatch "${FILESDIR}"/${PN}-20060512-linux-headers.patch |
36 |
# epatch "${FILESDIR}"/${PN}-20060512-linux-headers.patch |
37 |
epatch "${FILESDIR}"/${PN}-20070202-no-open-max.patch #195861 |
37 |
# epatch "${FILESDIR}"/${PN}-20070202-no-open-max.patch #195861 |
38 |
epatch "${FILESDIR}"/${PN}-20070202-idn.patch #218638 |
38 |
epatch "${FILESDIR}"/${PN}-20070202-idn.patch #218638 |
39 |
use SECURITY_HAZARD && epatch "${FILESDIR}"/${PN}-20071127-nonroot-floodping.patch |
39 |
use SECURITY_HAZARD && epatch "${FILESDIR}"/${PN}-20071127-nonroot-floodping.patch |
40 |
use static && append-ldflags -static |
40 |
use static && append-ldflags -static |
Lines 62-68
Link Here
|
62 |
into /usr |
62 |
into /usr |
63 |
dosbin tracepath || die "tracepath" |
63 |
dosbin tracepath || die "tracepath" |
64 |
use ipv6 && dosbin trace{path,route}6 |
64 |
use ipv6 && dosbin trace{path,route}6 |
65 |
dosbin clockdiff rarpd rdisc ipg tftpd || die "misc sbin" |
65 |
dosbin clockdiff rarpd rdisc tftpd || die "misc sbin" |
66 |
|
66 |
|
67 |
fperms 4711 /bin/ping |
67 |
fperms 4711 /bin/ping |
68 |
use ipv6 && fperms 4711 /bin/ping6 /usr/sbin/traceroute6 |
68 |
use ipv6 && fperms 4711 /bin/ping6 /usr/sbin/traceroute6 |