#Packager: Raphael Groner pkgname=wondershaper pkgver=1.1a pkgrel=1rg arch=noarch source=(http://lartc.org/$pkgname/$pkgname-$pkgver.tar.gz) sourcetemplate=http://people.salixos.org/damnagehack/$pkgname docs=("readme" "version" "copying" "changelog" "todo") url=http://lartc.org/wondershaper/ dotnew=(etc/wondershaper.conf) slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "wondershaper (traffic shaping)" "Attemption to create the holy grail:" "* Maintain low latency for interfactive traffic at all times" "This means that downloading or uploading files should not disturb SSH " "or even telnet. These are the most important things, even 200ms " "latency is sluggish to work over." "* Allow 'surfing' at reasonable speeds while up or downloading" "Even though http is 'bulk' traffic, other traffic should not drown it " "out too much." "* Make sure uploads don't harm downloads, and the other way around." ) build() { cd $startdir/src/$pkgname-$pkgver split -l `grep -n "#################" wshaper |sed s/:.*//` wshaper mkdir -p $startdir/pkg/etc $startdir/pkg/usr/sbin # config mv xaa $startdir/pkg/etc/wondershaper.conf # script echo "#!/bin/sh" >wondershaper echo ". /etc/wondershaper.conf" >>wondershaper find x* -exec cat {} >>wondershaper \; install -m755 wondershaper $startdir/pkg/usr/sbin }