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

Up openssh (6.8p1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 15 09:55:50 2015 +0200 (2015-05-15)
parents eb8067417980
children 6238b9c00443
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 LICENSE="BSD"
9 WEB_SITE="http://info.iet.unipi.it/~luigi/dummynet/"
10 TARBALL="$VERSION-ipfw3.tgz"
11 WGET_URL="http://info.iet.unipi.it/~luigi/doc/$TARBALL"
13 BUILD_DEPENDS="linux-module-headers"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 installed=/var/lib/tazpkg/installed
19 kvers=$(. $installed/linux-module-headers/receipt ; echo $VERSION)
20 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
21 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
22 make
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin \
29 $fs/lib/modules/$kvers-slitaz/kernel/net
30 cp -a $src/ipfw/ipfw $fs/usr/bin
31 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
32 }
34 post_install()
35 {
36 [ "$1" ] || depmod -a
37 }