forked from hasufell/hasufell-repository
38 lines
920 B
Bash
38 lines
920 B
Bash
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
require github [ user=mariusae ]
|
|
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.16 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"
|
|
MYOPTIONS=""
|
|
|
|
DEPENDENCIES="
|
|
build+run:
|
|
dev-libs/libevent:=
|
|
net-libs/libtirpc
|
|
"
|
|
|
|
BUGS_TO="hasufell@posteo.de"
|
|
|
|
DEFAULT_SRC_COMPILE_PARAMS=( -j1 )
|
|
|
|
DEFAULT_SRC_PREPARE_PATCHES=(
|
|
"${FILES}"/fix-install.patch
|
|
)
|
|
|
|
src_prepare(){
|
|
CFLAGS+=" -I/usr/$(exhost --target)/include/tirpc"
|
|
LDFLAGS+=" -ltirpc"
|
|
|
|
autotools_src_prepare
|
|
}
|
|
|