wok-6.x view dummynet/receipt @ rev 13382

dummynet: force kernel version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 21 15:41:42 2012 +0200 (2012-09-21)
parents 99c1208e7bf1
children 31a6c59885ff
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/uname -r/echo $kvers-slitaz/" Makefile.inc
20 make
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin \
27 $fs/lib/modules/$kvers-slitaz/kernel/net
28 cp -a $src/ipfw/ipfw $fs/usr/bin
29 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
30 }
32 post_install()
33 {
34 echo "/lib/modules/`uname -r`/kernel/net/ipfw_mod.ko" >> /lib/modules/modules.dep
35 depmod
36 }