wok-next view dummynet/receipt @ rev 15568

Up: thunderbird-langpack-zh_TW (17.0.11esr)
author Dominique Corbex <domcox@slitaz.org>
date Sun Nov 24 17:37:55 2013 +0100 (2013-11-24)
parents 31a6c59885ff
children eb8067417980
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 installed=/var/lib/tazpkg/installed
18 kvers=$(. $installed/linux-module-headers/receipt ; echo $VERSION)
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 }