mod_bandwidth is a bandwidth management module for Apache. It differs from mod_throtlle in that mod_throttle only disallows new requests once a bandwidth threshhold has been reached, whereas mod_bandwidth actually limits the outgoing rate, which makes it much more useful for applications such as streaming media. It can be found at http://www.cohprog.com/v3/bandwidth/intro-en.html It is distributed as a single C file, as you'll notice from the ebuild. It does require a couple of temporary directories writeable by the apache user, and I've opted to use the /var/cache/mod_throttle directory for this purpose. Other than that, it's a fairly straightforward process. I'll attach a tarball with the ebuild, the addon-modules config file, digest, and Manifest in it... Reproducible: Always Steps to Reproduce:
Created attachment 13226 [details] mod_bandwidth.tar.bz2 Here it is. Enjoy!
Created attachment 13227 [details] UPDATED - mod_bandwidth.tar.bz2 <quote from="me"> I've opted to use the /var/cache/mod_throttle directory for this purpose. </quote> This is because I am a complete idiot, evidentally. mod_bandwidth is the directory that should be used. Here's an updated tarball that does just so. Gah.
ok
Added. In particular I dont think you really want to be calling the internal sandbox functions in your ebuilds unless you're really sure of what you're gonna do with 'em :-)