Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236250 - [New Ebuild] Trickle-1.07_p9 - A lightweight userspace bandwidth shaper
Summary: [New Ebuild] Trickle-1.07_p9 - A lightweight userspace bandwidth shaper
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 5 votes (vote)
Assignee: Default Assignee for New Packages
URL: http://www.monkey.org/~marius/trickle
Whiteboard:
Keywords: EBUILD
: 358711 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-31 04:08 UTC by Matt "gfunkmonk" Rinsch
Modified: 2020-06-18 13:29 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
[Ebuild] trickle-1.06 (trickle-1.06.ebuild,596 bytes, text/plain)
2008-08-31 04:09 UTC, Matt "gfunkmonk" Rinsch
Details
Cleaned up ebuild (trickle-1.06.ebuild,547 bytes, text/plain)
2008-08-31 22:34 UTC, Matt "gfunkmonk" Rinsch
Details
correct in_addr_t search includes (trickle-1.06-in_addr_t.diff,401 bytes, patch)
2008-11-12 16:09 UTC, Michał Górny
Details | Diff
AM_CFLAGS fix (trickle-1.06-automake-cflags.diff,425 bytes, patch)
2008-11-12 16:10 UTC, Michał Górny
Details | Diff
Removal of some ancient hack (trickle-1.06-libobjs.diff,534 bytes, patch)
2008-11-12 16:11 UTC, Michał Górny
Details | Diff
Remove overload_DATA (trickle-1.06-overloadDATA.diff,507 bytes, patch)
2008-11-12 16:12 UTC, Michał Górny
Details | Diff
Ebuild with patches (trickle-1.06.ebuild,665 bytes, text/plain)
2008-11-12 16:14 UTC, Michał Górny
Details
trickle-1.07 overlay files (trickle-1.07-overlay.tgz,541.20 KB, application/octet-stream)
2012-05-18 21:16 UTC, Gerrit Helm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt "gfunkmonk" Rinsch 2008-08-31 04:08:07 UTC
New ebuild for trickle.

trickle is a portable lightweight userspace bandwidth shaper. It can run in collaborative mode (together with trickled) or in stand alone mode.

trickle works by taking advantage of the unix loader preloading. Essentially it provides, to the application, a new version of the functionality that is required to send and receive data through sockets. It then limits traffic based on delaying the sending and receiving of data over a socket. trickle runs entirely in userspace and does not require root privileges.

Reproducible: Always
Comment 1 Matt "gfunkmonk" Rinsch 2008-08-31 04:09:12 UTC
Created attachment 164149 [details]
[Ebuild] trickle-1.06
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2008-08-31 17:27:53 UTC
- The ebuild header is invalid¹
- arch -> ~arch, did you test on all these architectures?
- remove src_unpack(), Portage does such trivial cases transparently.
- einstall is an ugly hack and only to be used, when emake DESTIDR=${D} install or similar doesn't work.


[1] http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3
Comment 3 Matt "gfunkmonk" Rinsch 2008-08-31 22:34:59 UTC
Created attachment 164188 [details]
Cleaned up ebuild

Been a few years since I've played with Gentoo. This ebuild should be better.
Comment 4 Henrique Rodrigues 2008-11-01 09:56:33 UTC
trickle 1.07 exists, but it's not announced in the webpage:

http://monkey.org/~marius/trickle/trickle-1.07.tar.gz
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2008-11-12 16:05:17 UTC
Before trickle gets into portage, we sure need to fix it a little, 'cause autotools part looks like a total fail — both in 1.06 and 1.07. I've created a few patches to allow it to be compiled on current Gentoo amd64 workstation, but I suppose they can break it somewhere else.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2008-11-12 16:09:11 UTC
Created attachment 171543 [details, diff]
correct in_addr_t search includes

trickle's configure looks for in_addr_t in sys/types.h, and on Linux it's in netinet/in.h instead. This causes search to fail and in_addr_t to be redeclared, which in turn causes compilation to fail.

This patch adds additional include to configure check.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2008-11-12 16:10:04 UTC
Created attachment 171546 [details, diff]
AM_CFLAGS fix

Replaces += with = in AM_CFLAGS declaration. Not sure, whether it's good solution, but it works.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2008-11-12 16:11:06 UTC
Created attachment 171547 [details, diff]
Removal of some ancient hack

Removes some ancient hack causing automake to fail. In 1.07 there's note saying that it's probably unnecessary now.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2008-11-12 16:12:54 UTC
Created attachment 171548 [details, diff]
Remove overload_DATA

Looks like some predecessor or clone of trickleoverload_DATA, causes 'make install' to fail.
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2008-11-12 16:14:06 UTC
Created attachment 171549 [details]
Ebuild with patches
Comment 11 Pat Erley 2011-01-13 00:35:08 UTC
Just tested, and this still works 2 years later, anything in particular keeping it from being merged (aside from upstream having semingly vanished)?
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-14 12:48:29 UTC
*** Bug 358711 has been marked as a duplicate of this bug. ***
Comment 13 Marco Schinkel 2011-11-24 08:16:29 UTC
This works, why isnt it in portage?
Comment 14 Gerrit Helm 2012-05-18 21:16:07 UTC
Created attachment 312223 [details]
trickle-1.07 overlay files

I just played a little bit with trickle.
For anyone who who cares i attached my files to build
a working 1.07-overlay-version. 

Too bad trickle cant limit the upload bandwith from sshd...
Cheers! :)
Comment 15 Philippe Chaintreuil 2014-01-19 02:02:24 UTC
(In reply to Gerrit Helm from comment #14)
> Created attachment 312223 [details]
> trickle-1.07 overlay files

I just tried this out and automake pukes on it now.  :-(
Comment 16 Philippe Chaintreuil 2014-01-19 03:48:16 UTC
https://github.com/mariusaeriksen/trickle may have newer code/Autotools scripts.