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

Contents of /net-misc/iputils/iputils-20070202.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Tue Sep 14 01:50:01 2010 UTC (9 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-20070202.ebuild,v 1.14 2009/08/23 16:00:44 flameeyes 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
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
14 IUSE="static ipv6 doc"
15
16 DEPEND="virtual/os-headers
17 doc? (
18 app-text/openjade
19 dev-perl/SGMLSpm
20 app-text/docbook-sgml-dtd
21 app-text/docbook-sgml-utils
22 )"
23 RDEPEND="!net-misc/rarpd"
24
25 S=${WORKDIR}/${PN}-s${PV}
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30 epatch "${FILESDIR}"/${PN}-021109-gcc34.patch
31 epatch "${FILESDIR}"/021109-uclibc-no-ether_ntohost.patch
32 epatch "${FILESDIR}"/${PN}-20070202-makefile.patch
33 epatch "${FILESDIR}"/${PN}-20060512-kernel-ifaddr.patch
34 epatch "${FILESDIR}"/${PN}-20060512-linux-headers.patch
35 epatch "${FILESDIR}"/${PN}-20070202-no-open-max.patch #195861
36
37 use static && append-ldflags -static
38 use ipv6 || sed -i -e 's:IPV6_TARGETS=:#IPV6_TARGETS=:' Makefile
39 }
40
41 src_compile() {
42 tc-export CC
43 emake || die "make main failed"
44
45 # We include the extra check for docbook2html
46 # because when we emerge from a stage1/stage2,
47 # it may not exist #23156
48 if use doc && type -p docbook2html ; then
49 emake -j1 html man || die
50 fi
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
68 if use doc ; then
69 rm -f doc/setkey.8
70 use ipv6 \
71 && dosym ping.8 /usr/share/man/man8/ping6.8 \
72 || rm -f doc/*6.8
73 doman doc/*.8
74
75 dohtml doc/*.html
76 fi
77 }

  ViewVC Help
Powered by ViewVC 1.1.20