/[gentoo-x86]/net-misc/iputils/iputils-20100418-r1.ebuild
Gentoo

Contents of /net-misc/iputils/iputils-20100418-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Apr 20 19:56:55 2012 UTC (7 years, 7 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
old, specially the ones still pulling in obsolete sys-fs/sysfsutils

(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-20100418-r1.ebuild,v 1.9 2011/01/07 20:57:52 ranger Exp $
4
5 inherit flag-o-matic eutils toolchain-funcs
6
7 DESCRIPTION="Network monitoring tools including ping and ping6"
8 HOMEPAGE="http://www.linux-foundation.org/en/Net:Iputils"
9 SRC_URI="http://www.skbuff.net/iputils/iputils-s${PV}.tar.bz2
10 mirror://gentoo/iputils-s${PV}-manpages.tar.bz2"
11
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-linux ~x86-linux"
15 IUSE="doc idn ipv6 SECURITY_HAZARD ssl static"
16
17 # sysfsutils is needed for libsysfs which is used by arping only
18 RDEPEND="!net-misc/rarpd
19 ssl? ( dev-libs/openssl )
20 idn? ( net-dns/libidn )
21 sys-fs/sysfsutils"
22 DEPEND="${RDEPEND}
23 virtual/os-headers"
24
25 S=${WORKDIR}/${PN}-s${PV}
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30 epatch "${FILESDIR}"/021109-uclibc-no-ether_ntohost.patch
31 epatch "${FILESDIR}"/${PN}-20100418-arping-broadcast.patch #337049
32 epatch "${FILESDIR}"/${PN}-20100418-openssl.patch #335436
33 epatch "${FILESDIR}"/${PN}-20100418-so_mark.patch #335347
34 epatch "${FILESDIR}"/${PN}-20100418-makefile.patch
35 epatch "${FILESDIR}"/${PN}-20100418-proper-libs.patch #332703
36 epatch "${FILESDIR}"/${PN}-20100418-printf-size.patch
37 epatch "${FILESDIR}"/${PN}-20100418-aliasing.patch
38 epatch "${FILESDIR}"/${PN}-20071127-kernel-ifaddr.patch
39 epatch "${FILESDIR}"/${PN}-20070202-idn.patch #218638
40 epatch "${FILESDIR}"/${PN}-20100418-ping-CVE-2010-2529.patch #332527
41 use SECURITY_HAZARD && epatch "${FILESDIR}"/${PN}-20071127-nonroot-floodping.patch
42 use static && append-ldflags -static
43 use ssl && append-cppflags -DHAVE_OPENSSL
44 use ipv6 || sed -i -e 's:IPV6_TARGETS=:#IPV6_TARGETS=:' Makefile
45 export IDN=$(use idn && echo yes)
46 }
47
48 src_compile() {
49 tc-export CC
50 emake || die "make main failed"
51 }
52
53 src_install() {
54 into /
55 dobin ping || die "ping"
56 use ipv6 && dobin ping6
57 dosbin arping || die "arping"
58 into /usr
59 dosbin tracepath || die "tracepath"
60 use ipv6 && dosbin trace{path,route}6
61 dosbin clockdiff rarpd rdisc ipg tftpd || die "misc sbin"
62
63 fperms 4711 /bin/ping
64 use ipv6 && fperms 4711 /bin/ping6 /usr/sbin/traceroute6
65
66 dodoc INSTALL RELNOTES
67 use ipv6 \
68 && dosym ping.8 /usr/share/man/man8/ping6.8 \
69 || rm -f doc/*6.8
70 rm -f doc/setkey.8
71 doman doc/*.8
72
73 use doc && dohtml doc/*.html
74 }

  ViewVC Help
Powered by ViewVC 1.1.20