summaryrefslogtreecommitdiff
blob: 1d33a8246c2b990923aa087b654fa5108a453eeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/iproute2-2.2.4-r2.ebuild,v 1.2 2001/05/02 16:14:25 achim Exp $

A=iproute2-2.2.4-now-ss001007.tar.gz
S=${WORKDIR}/iproute2
DESCRIPTION="Kernel 2.4 routing and traffic control utilities"
SRC_URI="ftp://ftp.inr.ac.ru/ip-routing/${A}"

DEPEND="virtual/glibc tex? ( app-text/tetex )"

src_unpack() {
    unpack ${A}
    cd ${S}
#    cp Makefile Makefile.orig
#    sed -e "s/-O2/${CFLAGS}/g" Makefile.orig > Makefile
#	#this next thing is required to enable diffserv (ATM support doesn't compile right now)
#	cp Config Config.orig
#	sed -e 's/DIFFSERV=n/DIFFSERV=y/g' Config.orig > Config
}

src_compile() {
    try make ${MAKEOPTS}
    if [ "`use tex`" ]
    then
		cd doc
		try make
    fi
}


src_install() {

	into /
   	cd ${S}/ip
	dosbin ifcfg ip routef routel rtacct rtmon rtpr
	cd ${S}/tc
	dosbin tc
	cd ${S}
	dodoc README* RELNOTES
	docinto examples/diffserv
	dodoc examples/diffserv/*
	docinto examples
	dodoc examples/*
	dodir /etc/iproute2
	insinto /etc/iproute2
	doins ${S}/etc/iproute2/*

	if [ "`use tex`" ]
	then
	    docinto ps
	    dodoc doc/*.ps
	fi

}