diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-03-11 05:39:11 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-03-11 05:39:11 +0000 |
commit | 640609fdd86e1a4c6a5267e1a2128fa97e590bac (patch) | |
tree | f2d3e2782060ceedb4ccd592f373383a7e2f1eef /sys-apps/net-tools | |
parent | forgot to delete a line (diff) | |
download | gentoo-2-640609fdd86e1a4c6a5267e1a2128fa97e590bac.tar.gz gentoo-2-640609fdd86e1a4c6a5267e1a2128fa97e590bac.tar.bz2 gentoo-2-640609fdd86e1a4c6a5267e1a2128fa97e590bac.zip |
Fold etherwake and mii-diag into this package as well as a bunch of other diag utilities.
(Portage version: 2.1_pre5-r4)
Diffstat (limited to 'sys-apps/net-tools')
-rw-r--r-- | sys-apps/net-tools/ChangeLog | 11 | ||||
-rw-r--r-- | sys-apps/net-tools/files/digest-net-tools-1.60-r12 | 6 | ||||
-rw-r--r-- | sys-apps/net-tools/net-tools-1.60-r12.ebuild | 73 |
3 files changed, 88 insertions, 2 deletions
diff --git a/sys-apps/net-tools/ChangeLog b/sys-apps/net-tools/ChangeLog index ae81f0e8b069..4f0467c44c4f 100644 --- a/sys-apps/net-tools/ChangeLog +++ b/sys-apps/net-tools/ChangeLog @@ -1,6 +1,13 @@ # 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.55 2005/06/30 03:40:31 kumba Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.56 2006/03/11 05:39:11 vapier Exp $ + +*net-tools-1.60-r12 (11 Mar 2006) + + 11 Mar 2006; Mike Frysinger <vapier@gentoo.org> + +net-tools-1.60-r12.ebuild: + Fold etherwake and mii-diag into this package as well as a bunch of other + diag utilities. 29 Jun 2005; Joshua Kinard <kumba@gentoo.org> net-tools-1.60-r11.ebuild: Marked stable on mips. diff --git a/sys-apps/net-tools/files/digest-net-tools-1.60-r12 b/sys-apps/net-tools/files/digest-net-tools-1.60-r12 new file mode 100644 index 000000000000..41cee0a164e8 --- /dev/null +++ b/sys-apps/net-tools/files/digest-net-tools-1.60-r12 @@ -0,0 +1,6 @@ +MD5 0513b10db47b41859babea4a1d7e06b6 net-tools-1.60-patches-1.2.tar.bz2 104902 +RMD160 f4f9fb022acb7ff6bade8858b749e07afb1394a4 net-tools-1.60-patches-1.2.tar.bz2 104902 +SHA256 59da1d7bff68f54f5a77b382e1e52e38312e77e721ef096b5c3a13407ee9fa6d net-tools-1.60-patches-1.2.tar.bz2 104902 +MD5 888774accab40217dde927e21979c165 net-tools-1.60.tar.bz2 198520 +RMD160 58376371a9383842640d2c4215cf771d522ee43e net-tools-1.60.tar.bz2 198520 +SHA256 7ae4dd6d44d6715f18e10559ffd270511b6e55a8900ca54fbebafe0ae6cf7d7b net-tools-1.60.tar.bz2 198520 diff --git a/sys-apps/net-tools/net-tools-1.60-r12.ebuild b/sys-apps/net-tools/net-tools-1.60-r12.ebuild new file mode 100644 index 000000000000..cb1f45792acd --- /dev/null +++ b/sys-apps/net-tools/net-tools-1.60-r12.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2006 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-r12.ebuild,v 1.1 2006/03/11 05:39:11 vapier Exp $ + +inherit flag-o-matic toolchain-funcs eutils + +PVER=1.2 +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-${PVER}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="nls static" + +RDEPEND="!sys-apps/mii-diag + !net-misc/etherwake" +DEPEND="nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${WORKDIR}"/patch/*.patch + cp "${WORKDIR}"/extra/config.{h,make} . || die + mkdir include/linux + cp "${WORKDIR}"/extra/*.h include/linux/ + mv "${WORKDIR}"/extra/ethercard-diag/ "${S}"/ || die + + 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 -C ethercard-diag || die "emake ethercard-diag failed" + + if use nls ; then + emake i18ndir || die "emake i18ndir failed" + fi +} + +src_install() { + make BASEDIR="${D}" install || die "make install failed" + make -C ethercard-diag DESTDIR="${D}" install || die "make install ethercard-diag failed" + mv "${D}"/usr/sbin/mii-diag "${D}"/sbin/ || die "mv mii-diag failed" + mv "${D}"/bin/* "${D}"/sbin/ || die "mv bin to sbin failed" + mv "${D}"/sbin/{hostname,domainname,netstat,dnsdomainname,ypdomainname,nisdomainname} "${D}"/bin/ \ + || die "mv sbin to bin failed" + dodir /usr/bin + dosym /bin/hostname /usr/bin/hostname + + dodoc README README.ipv6 TODO +} |