blob: be1b5cd33f049d911494c4856141a86a58243321 (
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
|
# 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/net-tools/net-tools-1.57-r1.ebuild,v 1.8 2001/01/27 14:41:34 achim Exp $
P=net-tools-1.57
A=${P}.tar.bz2
S=${WORKDIR}/${P}
DESCRIPTION="standard Linux network tools"
SRC_URI="http://www.tazenda.demon.co.uk/phil/net-tools/${A}"
DEPEND=">=sys-libs/glibc-2.1.3"
src_compile() {
try make ${MAKEOPTS}
cd po
try make ${MAKEOPTS}
}
src_unpack() {
unpack ${A}
cd ${S}
cp ${O}/files/config.h .
cp ${O}/files/config.make .
mv Makefile Makefile.orig
sed -e "s/-O2 -Wall -g/${CFLAGS}/" Makefile.orig > Makefile
}
src_install() {
try make BASEDIR=${D} install
mv ${D}/bin/* ${D}/sbin
for i in hostname domainname netstat dnsdomainname ypdomainname nisdomainname
do
mv ${D}/sbin/${i} ${D}/bin
done
dodoc COPYING README README.ipv6 TODO
}
|