wok-next view dummynet/receipt @ rev 21274
gejengel: inserted modification of configure files from cooking
author | Hans-G?nter Theisgen |
---|---|
date | Sat Dec 07 15:42:09 2019 +0100 (2019-12-07) |
parents | dfef8de3d270 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="dummynet"
4 VERSION="20120812"
5 CATEGORY="network"
6 SHORT_DESC="Network testing/emulation tool"
7 MAINTAINER="devel@slitaz.org"
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 compile_rules() {
16 installed=/var/lib/tazpkg/installed
17 kvers=$(. $installed/linux-module-headers/receipt; echo $VERSION)
18 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
19 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
20 make
21 }
23 genpkg_rules() {
24 mkdir -p $fs/usr/bin \
25 $fs/lib/modules/$kvers-slitaz/kernel/net
26 cp -a $src/ipfw/ipfw $fs/usr/bin
27 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
28 }
30 post_install() {
31 [ -n "$1" ] || depmod -a
32 }