wok-current view dummynet/receipt @ rev 22625
updated cyrus-imapd and cyrus-impad-dev (2.4.17 -> 3.0.13)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 12 16:58:49 2020 +0100 (2020-01-12) |
parents | 8a51ff352615 |
children | 34e801e0eb52 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dummynet"
4 VERSION="20150115"
5 GITHASH="e717cdd4bef764a4aa7babedc54220b35b04c777"
6 CATEGORY="network"
7 SHORT_DESC="Network testing/emulation tool."
8 MAINTAINER="samuel_trassare@yahoo.com"
9 LICENSE="BSD"
10 WEB_SITE="https://web.archive.org/web/20190131145449/http://info.iet.unipi.it/~luigi/dummynet/"
11 TARBALL="$VERSION-ipfw3.zip"
12 WGET_URL="https://github.com/luigirizzo/dummynet/archive/$GITHASH.zip"
14 BUILD_DEPENDS="linux-module-headers"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 installed=/var/lib/tazpkg/installed
20 kvers=$(. $installed/linux-module-headers/receipt ; echo $VERSION)
21 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
22 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
23 make
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin \
30 $fs/lib/modules/$kvers-slitaz/kernel/net
31 cp -a $src/ipfw/ipfw $fs/usr/bin
32 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
33 }
35 # Post install/remove commands for Tazpkg.
36 post_install()
37 {
38 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
39 }
41 post_remove()
42 {
43 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
44 }