wok-current view dummynet/receipt @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | 364099c9aff2 |
children |
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/luigirizzo/dummynet/commits/master 2>/dev/null | \
20 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 installed=/var/lib/tazpkg/installed
27 kvers=$(. $installed/linux-module-headers/receipt ; echo $VERSION)
28 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
29 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
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 "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
46 }
48 post_remove()
49 {
50 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
51 }