aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <stephen.arnold42@gmail.com>2015-08-02 15:33:34 -0700
committerSteve Arnold <stephen.arnold42@gmail.com>2015-08-02 15:33:34 -0700
commitfb91e1fa271045401e402850c65088e5d9f1304f (patch)
tree6a116ed51eaf5f388599ac3e9a647892daa37d35 /net-misc
parentmoved chromeos-sources from local overlay (diff)
downloadarm-fb91e1fa271045401e402850c65088e5d9f1304f.tar.gz
arm-fb91e1fa271045401e402850c65088e5d9f1304f.tar.bz2
arm-fb91e1fa271045401e402850c65088e5d9f1304f.zip
add modified ethercard-diag ebuild
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/ethercard-diag/Manifest1
-rw-r--r--net-misc/ethercard-diag/ethercard-diag-20050321.1g.ebuild47
-rw-r--r--net-misc/ethercard-diag/files/ethercard-diag-make_diag_only.patch22
3 files changed, 70 insertions, 0 deletions
diff --git a/net-misc/ethercard-diag/Manifest b/net-misc/ethercard-diag/Manifest
new file mode 100644
index 0000000..aefc981
--- /dev/null
+++ b/net-misc/ethercard-diag/Manifest
@@ -0,0 +1 @@
+DIST ethercard-diag-20050321.1g.tar.lzma 113181 SHA256 99953e09d3cba3234f43240ec131ddb0caf226650ecb6eca71f26240235eb4fb SHA512 19f9030f97a6a675b2f372acaa320314452b1c5edf543973ac72ac5cce45c05c03c1b1cc0a0375a2b15fc26c89b7a9d18b0702f82c8d4f4362e2f82362feda35 WHIRLPOOL 063744e05ca0f5a821e68757a09fcedc3a39368c162704d119a72830fad6998eb5770274ac42bce2a754b5d43839ae1d2ee6524ad01d51fc9934f28f5732cfca
diff --git a/net-misc/ethercard-diag/ethercard-diag-20050321.1g.ebuild b/net-misc/ethercard-diag/ethercard-diag-20050321.1g.ebuild
new file mode 100644
index 0000000..15abffc
--- /dev/null
+++ b/net-misc/ethercard-diag/ethercard-diag-20050321.1g.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="low level mii diagnostic tools including mii-diag and etherwake (merge of netdiag/isa-diag)"
+HOMEPAGE="ftp://ftp.scyld.com/pub/diag/ ftp://ftp.scyld.com/pub/isa-diag/"
+SRC_URI="mirror://gentoo/${P}.tar.lzma"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="+diag-only"
+
+DEPEND="!sys-apps/nictools"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-make_diag_only.patch \
+ "${S}"/patches/000*.patch
+
+ # triggers QA warnings, needs fixing...
+ sed -i -e "s|pcnet-diag ||" "${S}"/pub/diag/Makefile
+ rm -f "${S}"/pub/diag/pcnet-diag*
+}
+
+src_compile() {
+ tc-export CC AR
+ if ! use diag-only ; then
+ emake || die
+ else
+ emake diag || die
+ fi
+}
+
+src_install() {
+ if ! use diag-only ; then
+ emake DESTDIR="${D}" install || die
+ else
+ emake DESTDIR="${D}" install-diag || die
+ fi
+
+ dodir /sbin
+ mv "${D}"/usr/sbin/{mii-diag,ether-wake} "${D}"/sbin/ || die
+}
diff --git a/net-misc/ethercard-diag/files/ethercard-diag-make_diag_only.patch b/net-misc/ethercard-diag/files/ethercard-diag-make_diag_only.patch
new file mode 100644
index 0000000..0a1526e
--- /dev/null
+++ b/net-misc/ethercard-diag/files/ethercard-diag-make_diag_only.patch
@@ -0,0 +1,22 @@
+--- Makefile.orig 2015-08-02 13:43:21.793770111 -0700
++++ Makefile 2015-08-02 13:44:46.390900498 -0700
+@@ -1,7 +1,13 @@
++diag:
++ $(MAKE) -C pub/diag
++
+ all: .patch
+ $(MAKE) -C pub/diag
+ $(MAKE) -C pub/isa-diag
+
++install-diag:
++ $(MAKE) -C pub/diag install
++
+ install:
+ $(MAKE) -C pub/diag $@
+ $(MAKE) -C pub/isa-diag $@
+@@ -21,4 +27,4 @@
+ dist:
+ ./make-dist.sh $(GV)
+
+-.PHONY: all clean dist install unpatch
++.PHONY: all clean dist install unpatch diag install-diag