wok diff dummynet/receipt @ rev 13380

Added dummynet kernel module and ipfw userspace tool
author Samuel Trassare <samuel_trassare@yahoo.com>
date Thu Sep 20 19:49:11 2012 +0000 (2012-09-20)
parents
children 0c06068b2963
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dummynet/receipt	Thu Sep 20 19:49:11 2012 +0000
     1.3 @@ -0,0 +1,33 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="dummynet"
     1.7 +VERSION="20120812"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Network testing/emulation tool."
    1.10 +MAINTAINER="samuel_trassare@yahoo.com"
    1.11 +WEB_SITE="http://info.iet.unipi.it/~luigi/dummynet/"
    1.12 +TARBALL="$VERSION-ipfw3.tgz"
    1.13 +WGET_URL="http://info.iet.unipi.it/~luigi/doc/$TARBALL"
    1.14 +
    1.15 +BUILD_DEPENDS="linux-module-headers"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	make
    1.21 +}
    1.22 +
    1.23 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.24 +genpkg_rules()
    1.25 +{
    1.26 +	mkdir -p $fs/usr/bin \
    1.27 +		$fs/lib/modules/`uname -r`/kernel/net
    1.28 +	cp -a $src/ipfw/ipfw $fs/usr/bin
    1.29 +	cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/`uname -r`/kernel/net
    1.30 +}
    1.31 +
    1.32 +post_install()
    1.33 +{
    1.34 +	echo "/lib/modules/`uname -r`/kernel/net/ipfw_mod.ko" >> /lib/modules/modules.dep
    1.35 +	depmod
    1.36 +}