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
commita2df9f4913adf2a733e6cf74fbc6edbd70043b98 (patch)
tree0c54e14e91898b1b83e18589aaf8629fe16c92ef /sys-apps/net-tools/net-tools-1.60-r11.ebuild
parentold (diff)
downloadhistorical-a2df9f4913adf2a733e6cf74fbc6edbd70043b98.tar.gz
historical-a2df9f4913adf2a733e6cf74fbc6edbd70043b98.tar.bz2
historical-a2df9f4913adf2a733e6cf74fbc6edbd70043b98.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.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'sys-apps/net-tools/net-tools-1.60-r11.ebuild')
-rw-r--r--sys-apps/net-tools/net-tools-1.60-r11.ebuild78
1 files changed, 78 insertions, 0 deletions
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
+}