From 1384b4d0ef194a7b3dd6d8a0fd0211d6617d5154 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 9 Jun 2018 14:40:03 +0200 Subject: [PATCH] net-misc/trickle: initial import --- .../net-misc/trickle/files/fix-install.patch | 23 ++++++++++++++ .../net-misc/trickle/trickle-scm.exheres-0 | 30 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 packages/net-misc/trickle/files/fix-install.patch create mode 100644 packages/net-misc/trickle/trickle-scm.exheres-0 diff --git a/packages/net-misc/trickle/files/fix-install.patch b/packages/net-misc/trickle/files/fix-install.patch new file mode 100644 index 0000000..975347f --- /dev/null +++ b/packages/net-misc/trickle/files/fix-install.patch @@ -0,0 +1,23 @@ +Source: Upstream issue tracker, https://github.com/mariusae/trickle/issues/16 +Reason: fix installation +Upstream: no + +--- trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/Makefile.am 2017-10-25 01:20:13.943420040 +0200 ++++ trickle-66551ad94ad3d8af83e1e4422804676ac8762f47/Makefile.am 2017-10-25 01:20:30.810419348 +0200 +@@ -31,10 +31,14 @@ + AM_CFLAGS = -Wall -Icompat @EVENTINC@ + + overloaddir = $(libdir) +-overload_DATA = libtrickle.so + +-libtrickle.so: trickle-overload.c atomicio.c +-$(overload_DATA): ++libtrickle.so: trickle-overload.lo atomicio.lo ++ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la ++ -rpath $(libdir)/trickle trickle-overload.lo atomicio.lo $(LIBS) ++ $(LDFLAGS) -module -avoid-version -nostdlib -ldl ++ @rm -f libtmp$@.la tmp$@.so* $@ ++ @cp .libs/libtmp$@.so $@ ++ @rm -f .libs/libtmp$@.* + + CLEANFILES = *.so diff --git a/packages/net-misc/trickle/trickle-scm.exheres-0 b/packages/net-misc/trickle/trickle-scm.exheres-0 new file mode 100644 index 0000000..4cb61f0 --- /dev/null +++ b/packages/net-misc/trickle/trickle-scm.exheres-0 @@ -0,0 +1,30 @@ +# Copyright 2018 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require github [ user=mariusae ] +require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ] + +SUMMARY="Trickle is a userland bandwidth shaper for Unix-like systems" +DESCRIPTION=" +Trickle is a voluntary, cooperative bandwidth shaper. trickle works entirely in userland and is cross platform compatible. +https://www.usenix.org/legacy/event/usenix05/tech/freenix/full_papers/eriksen/eriksen.pdf +" + +LICENCES="BSD-3" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS="" + +DEPENDENCIES=" + build+run: + dev-libs/libevent +" + +BUGS_TO="hasufell@posteo.de" + +DEFAULT_SRC_COMPILE_PARAMS=( -j1 ) + +DEFAULT_SRC_PREPARE_PATCHES=( + "${FILES}"/fix-install.patch +) +