summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-02-12 03:18:08 +0000
committerMike Frysinger <vapier@gentoo.org>2005-02-12 03:18:08 +0000
commit42beca0aa2625142c85e8add4403ea29f0cd5c5f (patch)
tree0d3c23d1fcd94ac5000a7370a091f3e4e0af29b1 /sys-apps/net-tools
parentold (diff)
downloadgentoo-2-42beca0aa2625142c85e8add4403ea29f0cd5c5f.tar.gz
gentoo-2-42beca0aa2625142c85e8add4403ea29f0cd5c5f.tar.bz2
gentoo-2-42beca0aa2625142c85e8add4403ea29f0cd5c5f.zip
Move to using a patch tarball, add some updates from Fedora, add ipv6 hostname fix by pasi.valminen@hut.fi #42650, and add support for infiniband to ifconfig by Tom Duffy #81180.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sys-apps/net-tools')
-rw-r--r--sys-apps/net-tools/ChangeLog10
-rw-r--r--sys-apps/net-tools/files/digest-net-tools-1.60-r112
-rw-r--r--sys-apps/net-tools/net-tools-1.60-r11.ebuild78
3 files changed, 89 insertions, 1 deletions
diff --git a/sys-apps/net-tools/ChangeLog b/sys-apps/net-tools/ChangeLog
index c198b578a027..4f229097fbfe 100644
--- a/sys-apps/net-tools/ChangeLog
+++ b/sys-apps/net-tools/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-apps/net-tools
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.48 2005/01/10 18:30:53 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.49 2005/02/12 03:18:08 vapier Exp $
+
+*net-tools-1.60-r11 (11 Feb 2005)
+
+ 11 Feb 2005; Mike Frysinger <vapier@gentoo.org>
+ +net-tools-1.60-r11.ebuild:
+ Move to using a patch tarball, add some updates from Fedora, add ipv6
+ hostname fix by pasi.valminen@hut.fi #42650, and add support for infiniband
+ to ifconfig by Tom Duffy #81180.
10 Jan 2005; Mike Frysinger <vapier@gentoo.org>
+files/1.60-Makefile.patch, net-tools-1.60-r10.ebuild:
diff --git a/sys-apps/net-tools/files/digest-net-tools-1.60-r11 b/sys-apps/net-tools/files/digest-net-tools-1.60-r11
new file mode 100644
index 000000000000..72ffcede8ffa
--- /dev/null
+++ b/sys-apps/net-tools/files/digest-net-tools-1.60-r11
@@ -0,0 +1,2 @@
+MD5 888774accab40217dde927e21979c165 net-tools-1.60.tar.bz2 198520
+MD5 2dc2754baac85bfa639a516ba138e22a net-tools-1.60-patches-1.0.tar.bz2 26098
diff --git a/sys-apps/net-tools/net-tools-1.60-r11.ebuild b/sys-apps/net-tools/net-tools-1.60-r11.ebuild
new file mode 100644
index 000000000000..4a68e50190e9
--- /dev/null
+++ b/sys-apps/net-tools/net-tools-1.60-r11.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/net-tools-1.60-r11.ebuild,v 1.1 2005/02/12 03:18:08 vapier Exp $
+
+inherit flag-o-matic toolchain-funcs eutils
+
+DESCRIPTION="Standard Linux networking tools"
+HOMEPAGE="http://sites.inka.de/lina/linux/NetTools/"
+SRC_URI="http://www.tazenda.demon.co.uk/phil/net-tools/${P}.tar.bz2
+ mirror://gentoo/${P}-patches-1.0.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="nls build static"
+
+RDEPEND=""
+DEPEND="nls? ( sys-devel/gettext )
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${WORKDIR}/patch
+ cp ${WORKDIR}/extra/config.{h,make} .
+ cp ${WORKDIR}/extra/ether-wake.c .
+ cp ${WORKDIR}/extra/ether-wake.8 man/en_US/
+ mkdir include/linux
+ cp ${WORKDIR}/extra/if_infiniband.h include/linux/
+
+ if use static ; then
+ append-flags -static
+ append-ldflags -static
+ fi
+
+ sed -i \
+ -e "/^COPTS =/s:=:=${CFLAGS}:" \
+ -e "/^LOPTS =/s:=:=${LDFLAGS}:" \
+ Makefile || die "sed FLAGS Makefile failed"
+
+ if ! use nls ; then
+ sed -i \
+ -e '/define I18N/s:1$:0:' config.h \
+ || die "sed config.h failed"
+ sed -i \
+ -e '/^I18N=/s:1$:0:' config.make \
+ || die "sed config.make failed"
+ fi
+}
+
+src_compile() {
+ tc-export CC
+ emake libdir || die "emake libdir failed"
+ emake || die "emake failed"
+ emake ether-wake || die "ether-wake failed to build"
+
+ if use nls ; then
+ emake i18ndir || die "emake i18ndir failed"
+ fi
+}
+
+src_install() {
+ make BASEDIR="${D}" install || die "make install failed"
+ dosbin ether-wake || die "dosbin failed"
+ mv "${D}"/bin/* "${D}"/sbin || die "mv failed"
+ mv "${D}"/sbin/{hostname,domainname,netstat,dnsdomainname,ypdomainname,nisdomainname} "${D}"/bin \
+ || die "mv failed"
+ dodir /usr/bin
+ dosym /bin/hostname /usr/bin/hostname
+
+ if ! use build ; then
+ dodoc README README.ipv6 TODO
+ else
+ # only install /bin/hostname
+ rm -rf "${D}"/usr "${D}"/sbin
+ rm -f "${D}"/bin/{domainname,netstat,dnsdomainname,ypdomainname,nisdomainname}
+ fi
+}