# HG changeset patch # User Samuel Trassare # Date 1348170551 0 # Node ID 99c1208e7bf107081d8112758a993f2ccded62f6 # Parent 3895a599efa354b24f9aa6f71ae4d31aac05edf6 Added dummynet kernel module and ipfw userspace tool diff -r 3895a599efa3 -r 99c1208e7bf1 dummynet/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dummynet/description.txt Thu Sep 20 19:49:11 2012 +0000 @@ -0,0 +1,6 @@ +dummynet is a live network emulation tool, originally designed for testing +networking protocols, and since then used for a variety of applications +including bandwidth management. It simulates/enforces queue and bandwidth +limitations, delays, packet losses, and multipath effects. It also implements +various scheduling algorithms. dummynet can be used on the machine running the +user's application, or on external boxes acting as routers or bridges. diff -r 3895a599efa3 -r 99c1208e7bf1 dummynet/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dummynet/receipt Thu Sep 20 19:49:11 2012 +0000 @@ -0,0 +1,33 @@ +# SliTaz package receipt. + +PACKAGE="dummynet" +VERSION="20120812" +CATEGORY="network" +SHORT_DESC="Network testing/emulation tool." +MAINTAINER="samuel_trassare@yahoo.com" +WEB_SITE="http://info.iet.unipi.it/~luigi/dummynet/" +TARBALL="$VERSION-ipfw3.tgz" +WGET_URL="http://info.iet.unipi.it/~luigi/doc/$TARBALL" + +BUILD_DEPENDS="linux-module-headers" + +# Rules to configure and make the package. +compile_rules() +{ + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin \ + $fs/lib/modules/`uname -r`/kernel/net + cp -a $src/ipfw/ipfw $fs/usr/bin + cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/`uname -r`/kernel/net +} + +post_install() +{ + echo "/lib/modules/`uname -r`/kernel/net/ipfw_mod.ko" >> /lib/modules/modules.dep + depmod +}