wok view dummynet/receipt @ rev 20255

firefox, thunderbird: try to force i686
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 13 21:40:37 2018 +0100 (2018-03-13)
parents dfef8de3d270
children 8a51ff352615
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/remove commands for Tazpkg.
35 post_install()
36 {
37 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
38 }
40 post_remove()
41 {
42 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
43 }