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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-20071127.ebuild,v 1.10 2008/04/20 20:55:59 vapier 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"
15 IUSE="static ipv6 doc"
16
17 DEPEND="virtual/os-headers
18 doc? (
19 app-text/openjade
20 dev-perl/SGMLSpm
21 app-text/docbook-sgml-dtd
22 app-text/docbook-sgml-utils
23 )"
24 RDEPEND="!net-misc/rarpd"
25
26 S=${WORKDIR}/${PN}-s${PV}
27
28 src_unpack() {
29 unpack ${A}
30 cd "${S}"
31 epatch "${FILESDIR}"/${P}-gcc34.patch
32 epatch "${FILESDIR}"/021109-uclibc-no-ether_ntohost.patch
33 epatch "${FILESDIR}"/${PN}-20070202-makefile.patch
34 epatch "${FILESDIR}"/${P}-kernel-ifaddr.patch
35 epatch "${FILESDIR}"/${PN}-20060512-linux-headers.patch
36 epatch "${FILESDIR}"/${PN}-20070202-no-open-max.patch #195861
37
38 use static && append-ldflags -static
39 use ipv6 || sed -i -e 's:IPV6_TARGETS=:#IPV6_TARGETS=:' Makefile
40 }
41
42 src_compile() {
43 tc-export CC
44 emake || die "make main failed"
45
46 # We include the extra check for docbook2html
47 # because when we emerge from a stage1/stage2,
48 # it may not exist #23156
49 if use doc && type -P docbook2html >/dev/null ; then
50 emake -j1 html || die
51 fi
52 }
53
54 src_install() {
55 into /
56 dobin ping || die "ping"
57 use ipv6 && dobin ping6
58 dosbin arping || die "arping"
59 into /usr
60 dosbin tracepath || die "tracepath"
61 use ipv6 && dosbin trace{path,route}6
62 dosbin clockdiff rarpd rdisc ipg tftpd || die "misc sbin"
63
64 fperms 4711 /bin/ping
65 use ipv6 && fperms 4711 /bin/ping6 /usr/sbin/traceroute6
66
67 dodoc INSTALL RELNOTES
68 use ipv6 \
69 && dosym ping.8 /usr/share/man/man8/ping6.8 \
70 || rm -f doc/*6.8
71 rm -f doc/setkey.8
72 doman doc/*.8
73
74 use doc && dohtml doc/*.html
75 }

  ViewVC Help
Powered by ViewVC 1.1.20