# Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: System Team # Author: Daniel Robbins # $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/net-tools-1.60-r1.ebuild,v 1.2 2001/08/29 04:33:25 drobbins Exp $ S=${WORKDIR}/${P} DESCRIPTION="standard Linux network tools" SRC_URI="http://www.tazenda.demon.co.uk/phil/net-tools/${P}.tar.bz2" HOMEPAGE="http://sites.inka.de/lina/linux/NetTools/" DEPEND="virtual/glibc" src_unpack() { unpack ${A} cd ${S} cp ${FILESDIR}/config.h . cp ${FILESDIR}/config.make . cp Makefile Makefile.orig sed -e "s/-O2 -Wall -g/${CFLAGS}/" Makefile.orig > Makefile cd man cp Makefile Makefile.orig sed -e "s:/usr/man:/usr/share/man:" Makefile.orig > Makefile } src_compile() { emake || die cd po emake || die } src_install() { make BASEDIR=${D} install || die mv ${D}/bin/* ${D}/sbin for i in hostname domainname netstat dnsdomainname ypdomainname nisdomainname do mv ${D}/sbin/${i} ${D}/bin done dosym /bin/hostname /usr/bin/hostname if [ -z "`use bootcd`" ] && [ -z "`use build`" ] then dodoc COPYING README README.ipv6 TODO else rm -rf ${D}/usr/share fi }