Add ebuild for net-misc/trickle-1.06.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 16 Sep 2009 15:30:22 +0000 (17:30 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 16 Sep 2009 15:30:37 +0000 (17:30 +0200)
net-misc/trickle/Manifest [new file with mode: 0644]
net-misc/trickle/files/trickle-1.06-automake-cflags.diff [new file with mode: 0644]
net-misc/trickle/files/trickle-1.06-in_addr_t.diff [new file with mode: 0644]
net-misc/trickle/files/trickle-1.06-libobjs.diff [new file with mode: 0644]
net-misc/trickle/files/trickle-1.06-overloadDATA.diff [new file with mode: 0644]
net-misc/trickle/trickle-1.06.ebuild [new file with mode: 0644]

diff --git a/net-misc/trickle/Manifest b/net-misc/trickle/Manifest
new file mode 100644 (file)
index 0000000..72e5806
--- /dev/null
@@ -0,0 +1,6 @@
+AUX trickle-1.06-automake-cflags.diff 425 RMD160 368e47af9da06baf617dd4f401ba6ff436aff6ca SHA1 65451e071f6caee5f093bfa769b52f57aae569dd SHA256 6efb2889d8db2978dbec508fefc915582216c56cb959f292d8a34175a60920c1
+AUX trickle-1.06-in_addr_t.diff 401 RMD160 4a2f2ce1449f8c69360e9e57f3abc69bc9b01145 SHA1 6fc80ff487c92a1ca6a858447bda764504fed1f9 SHA256 177aab38d71456322d5a2709f00b945e291fdd53a6eefa349561ada2be61aaff
+AUX trickle-1.06-libobjs.diff 534 RMD160 a5763915ae00489fd078dbf2e0aa6de4c96b8063 SHA1 f42e01377fd6c8c3dfefd893057da9a8146cb8ff SHA256 ef9a5bc68c9803b8c0937dd84f151d452858b02e11b130f3db7a9d96701c76a8
+AUX trickle-1.06-overloadDATA.diff 507 RMD160 e77bc11a6486a7a04e3625c6b7bf3b1e0d4d249e SHA1 478fb904255f460e69d67fe0a6097aa31f6829b4 SHA256 2853212f175fb5bbb91cb69c7e071783fa39995a15dd8e14e6c695b645d1141a
+DIST trickle-1.06.tar.gz 166044 RMD160 7154ca3a607699021aed7f656ea757483e00b8b8 SHA1 bba2305606a94c2d0ce7a9b9f12ea06a6f5f223f SHA256 9ef83d243d7e91cd5333ef7a497d8fce5aa127d2600ec0b299302f31c37b8609
+EBUILD trickle-1.06.ebuild 665 RMD160 eed704afb830d5963b6f1b2e6827fbbbc7618217 SHA1 7bd8bab57df0b09ff4d3e27e703c1927ef3999ef SHA256 268b9edcca0ef12ee601ca65bdd144b64ff2d23552e97c680e6a880332bdba75
diff --git a/net-misc/trickle/files/trickle-1.06-automake-cflags.diff b/net-misc/trickle/files/trickle-1.06-automake-cflags.diff
new file mode 100644 (file)
index 0000000..cb25bb9
--- /dev/null
@@ -0,0 +1,11 @@
+--- trickle-old/Makefile.am    2004-07-07 09:57:37.000000000 +0200
++++ trickle-1.07/Makefile.am   2008-11-12 15:50:21.753130443 +0100
+@@ -28,7 +28,7 @@ trickled_LDADD = @EVENTLIB@ @LIBOBJS@
+ tricklectl_SOURCES = tricklectl.c trickledu.c atomicio.c xdr.c
+ tricklectl_LDADD = @ERRO@ @LIBOBJS@
+-AM_CFLAGS += -Wall -Icompat @EVENTINC@
++AM_CFLAGS = -Wall -Icompat @EVENTINC@
+ overloaddir = $(libdir)
+ overload_DATA = libtrickle.so
diff --git a/net-misc/trickle/files/trickle-1.06-in_addr_t.diff b/net-misc/trickle/files/trickle-1.06-in_addr_t.diff
new file mode 100644 (file)
index 0000000..97e65e0
--- /dev/null
@@ -0,0 +1,8 @@
+--- trickle-old/configure.in   2008-11-12 15:37:18.511129031 +0100
++++ trickle-1.07/configure.in  2008-11-12 15:36:48.398129944 +0100
+@@ -70 +70,4 @@ AC_CHECK_TYPE(u_int8_t, unsigned char)
+-AC_CHECK_TYPE(in_addr_t, unsigned long)
++AC_CHECK_TYPE(in_addr_t, [], [
++      AC_DEFINE([in_addr_t], [unsigned long], [Define to 'unsigned long' if not provided])
++], [#include <sys/types.h>
++#include <netinet/in.h>])
diff --git a/net-misc/trickle/files/trickle-1.06-libobjs.diff b/net-misc/trickle/files/trickle-1.06-libobjs.diff
new file mode 100644 (file)
index 0000000..97c1746
--- /dev/null
@@ -0,0 +1,14 @@
+--- trickle-old/configure.in   2008-11-12 16:21:21.607129542 +0100
++++ trickle-1.06/configure.in  2008-11-12 16:21:33.541129262 +0100
+@@ -214,11 +214,4 @@ clibdir="$prefix/lib/trickle"
+ AC_DEFINE_UNQUOTED(SYSCONFDIR, "$csysconfdir")
+ AC_DEFINE_UNQUOTED(LIBDIR, "$clibdir")
+-
+-# This is necessary so that .o files in LIBOBJS are also built via
+-# the ANSI2KNR-filtering rules.
+-LIBOBJS=`echo "$LIBOBJS" | sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
+-LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'`
+-AC_SUBST(LTLIBOBJS)
+-
+ AC_OUTPUT(Makefile)
diff --git a/net-misc/trickle/files/trickle-1.06-overloadDATA.diff b/net-misc/trickle/files/trickle-1.06-overloadDATA.diff
new file mode 100644 (file)
index 0000000..ccac753
--- /dev/null
@@ -0,0 +1,16 @@
+diff -dupr trickle-old/Makefile.am trickle-1.06/Makefile.am
+--- trickle-old/Makefile.am    2008-11-12 16:42:13.389129342 +0100
++++ trickle-1.06/Makefile.am   2008-11-12 16:42:39.628131902 +0100
+@@ -30,12 +30,6 @@ tricklectl_LDADD = @ERRO@ @LIBOBJS@
+ AM_CFLAGS += -Wall -Icompat @EVENTINC@
+-overloaddir = $(libdir)
+-overload_DATA = libtrickle.so
+-
+-libtrickle.so: trickle-overload.c atomicio.c
+-$(overload_DATA):
+-
+ CLEANFILES = *.so
+ EXTRA_DIST = LICENSE README strlcat.c strlcpy.c err.c Makefile.am.inc \
diff --git a/net-misc/trickle/trickle-1.06.ebuild b/net-misc/trickle/trickle-1.06.ebuild
new file mode 100644 (file)
index 0000000..50e908c
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit eutils autotools
+
+DESCRIPTION="portable lightweight userspace bandwidth shaper"
+HOMEPAGE="http://monkey.org/~marius/pages/?page=trickle"
+SRC_URI="http://monkey.org/~marius/trickle/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-libs/libevent"
+
+src_prepare() {
+       epatch "${FILESDIR}/${P}-libobjs.diff"
+       epatch "${FILESDIR}/${P}-overloadDATA.diff"
+       epatch "${FILESDIR}/${P}-automake-cflags.diff"
+       epatch "${FILESDIR}/${P}-in_addr_t.diff"
+
+       eautoreconf
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+}