wok-6.x view dummynet64/receipt @ rev 20241
Remove broadcom-wl64, nvidia64-173xx, nvidia64-96xx
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 09 18:10:50 2018 +0100 (2018-03-09) |
parents | 6238b9c00443 |
children | 8a51ff352615 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dummynet64"
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"
12 PROVIDE="dummynet:linux64"
14 BUILD_DEPENDS="linux64-module-headers uclibc-cross-compiler-x86_64"
16 # Aufs enable chroot
17 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 installed=/var/lib/tazpkg/installed
23 kvers=$(. $installed/linux64-module-headers/receipt ; echo $VERSION)
24 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
25 sed -i "s/uname -r/echo $kvers-slitaz64/" Makefile.inc
26 sed -i "/par = NULL/d;s|w_q = ((.*|/* & */|;s|double w_q;|/* & */|" \
27 ipfw/dummynet.c
28 sed -i "/altqptr =/d" ipfw/ipfw2.c
29 sed -i "/no-unused-but-set-variable/d" */Makefile
30 make
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin \
37 $fs/lib/modules/$kvers-slitaz/kernel/net
38 cp -a $src/ipfw/ipfw $fs/usr/bin
39 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
40 }
42 # Post install/remove commands for Tazpkg.
43 post_install()
44 {
45 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
46 }
48 post_remove()
49 {
50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
51 }