wok-6.x view dummynet/receipt @ rev 15314
pari: remove a wrong error trigger
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 27 16:38:06 2013 +0000 (2013-09-27) |
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 }