# ChangeLog for net-analyzer/ethloop
-# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ethloop/ChangeLog,v 1.3 2004/08/16 10:17:30 eldad Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ethloop/ChangeLog,v 1.4 2005/09/10 03:01:52 vanquirius Exp $
+
+*ethloop-10-r1 (10 Sep 2005)
+
+ 10 Sep 2005; Marcelo Goes <vanquirius@gentoo.org>
+ +files/ethloop-10-gcc4.diff, +ethloop-10-r1.ebuild:
+ Fix hardcoded CC and CFLAGS, include string.h in ethloop.c to avoid warnings
+ and dosbin instead of dobin since this needs root priviledges anyway.
16 Aug 2004; Eldad Zack <eldad@gentoo.org> ethloop-10.ebuild:
x86 stable
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+MD5 760ea0f1910be57fa62e8485a9498a0a ethloop-10-r1.ebuild 686
MD5 ed5f1c74527a881b5fec25002d8c734f ethloop-10.ebuild 564
-MD5 51d476edc344bab8417560c06be2e8ff ChangeLog 560
+MD5 a796789f265abbaa4e97756ea53bb2a0 ChangeLog 853
MD5 3c5ff5e66702ce3fbb010eea8fb1da10 metadata.xml 244
MD5 70d7e3ea63f12f27c86a0ae488756544 files/digest-ethloop-10 56
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.4 (GNU/Linux)
-
-iD8DBQFBIIppT+MN7JbqCpMRAixMAJ94D1EqNmaZigSuVpdPYDYsJJSzBQCfexhX
-WyLDydJ1K1I+ekAc54So1NQ=
-=+SLd
------END PGP SIGNATURE-----
+MD5 70d7e3ea63f12f27c86a0ae488756544 files/digest-ethloop-10-r1 56
+MD5 31736f988b4e3a18957fe0e808f53841 files/ethloop-10-gcc4.diff 566
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ethloop/ethloop-10-r1.ebuild,v 1.1 2005/09/10 03:01:52 vanquirius Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Local simulator for testing Linux QoS disciplines"
+HOMEPAGE="http://luxik.cdi.cz/~devik/qos/ethloop/"
+SRC_URI="http://luxik.cdi.cz/~devik/qos/ethloop/ethloop10.tgz"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+IUSE=""
+DEPEND=""
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${P}-gcc4.diff
+}
+
+src_compile() {
+ export CC="$(tc-getCC)"
+ emake || die
+}
+
+src_install() {
+ dosbin ${S}/ethloop
+}
--- /dev/null
+MD5 df0caf522fab6f7324f19cfd2a1b3ea8 ethloop10.tgz 3912
--- /dev/null
+diff --exclude='*~' -Naur ethloop.orig/ethloop.c ethloop/ethloop.c
+--- ethloop.orig/ethloop.c 2005-09-09 23:38:18.000000000 -0300
++++ ethloop/ethloop.c 2005-09-09 23:47:22.000000000 -0300
+@@ -13,6 +13,7 @@
+ #include <stdlib.h>
+ #include <sys/time.h>
+ #include <signal.h>
++#include <string.h>
+
+ int sock;
+
+diff --exclude='*~' -Naur ethloop.orig/Makefile ethloop/Makefile
+--- ethloop.orig/Makefile 2005-09-09 23:38:18.000000000 -0300
++++ ethloop/Makefile 2005-09-09 23:40:47.000000000 -0300
+@@ -1,5 +1,3 @@
+-CC=gcc
+-CFLAGS=-g -O2
+ all: ethloop
+ run: all
+ ./ethloop