wok-6.x annotate 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
rev   line source
samuel_trassare@13380 1 # SliTaz package receipt.
samuel_trassare@13380 2
samuel_trassare@13380 3 PACKAGE="dummynet"
samuel_trassare@13380 4 VERSION="20120812"
samuel_trassare@13380 5 CATEGORY="network"
samuel_trassare@13380 6 SHORT_DESC="Network testing/emulation tool."
samuel_trassare@13380 7 MAINTAINER="samuel_trassare@yahoo.com"
samuel_trassare@13380 8 WEB_SITE="http://info.iet.unipi.it/~luigi/dummynet/"
samuel_trassare@13380 9 TARBALL="$VERSION-ipfw3.tgz"
samuel_trassare@13380 10 WGET_URL="http://info.iet.unipi.it/~luigi/doc/$TARBALL"
samuel_trassare@13380 11
samuel_trassare@13380 12 BUILD_DEPENDS="linux-module-headers"
samuel_trassare@13380 13
samuel_trassare@13380 14 # Rules to configure and make the package.
samuel_trassare@13380 15 compile_rules()
samuel_trassare@13380 16 {
samuel_trassare@13380 17 make
samuel_trassare@13380 18 }
samuel_trassare@13380 19
samuel_trassare@13380 20 # Rules to gen a SliTaz package suitable for Tazpkg.
samuel_trassare@13380 21 genpkg_rules()
samuel_trassare@13380 22 {
samuel_trassare@13380 23 mkdir -p $fs/usr/bin \
samuel_trassare@13380 24 $fs/lib/modules/`uname -r`/kernel/net
samuel_trassare@13380 25 cp -a $src/ipfw/ipfw $fs/usr/bin
samuel_trassare@13380 26 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/`uname -r`/kernel/net
samuel_trassare@13380 27 }
samuel_trassare@13380 28
samuel_trassare@13380 29 post_install()
samuel_trassare@13380 30 {
samuel_trassare@13380 31 echo "/lib/modules/`uname -r`/kernel/net/ipfw_mod.ko" >> /lib/modules/modules.dep
samuel_trassare@13380 32 depmod
samuel_trassare@13380 33 }