wok-6.x view dummynet/receipt @ rev 14344
tcc: update patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 14 14:51:53 2013 +0200 (2013-04-14) |
parents | 0c06068b2963 |
children | 5946b996ee93 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dummynet"
4 VERSION="20120812"
5 CATEGORY="network"
6 SHORT_DESC="Network testing/emulation tool."
7 MAINTAINER="samuel_trassare@yahoo.com"
8 WEB_SITE="http://info.iet.unipi.it/~luigi/dummynet/"
9 TARBALL="$VERSION-ipfw3.tgz"
10 WGET_URL="http://info.iet.unipi.it/~luigi/doc/$TARBALL"
12 BUILD_DEPENDS="linux-module-headers"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 kvers=$(cd /lib/modules ; ls -d *-slitaz)
18 kvers=${kvers%-slitaz}
19 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
20 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
21 make
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/bin \
28 $fs/lib/modules/$kvers-slitaz/kernel/net
29 cp -a $src/ipfw/ipfw $fs/usr/bin
30 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
31 }
33 post_install()
34 {
35 echo "/lib/modules/`uname -r`/kernel/net/ipfw_mod.ko" >> /lib/modules/modules.dep
36 depmod
37 }