wok view dummynet/receipt @ rev 24590

syslinux: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 28 14:39:39 2022 +0000 (2022-02-28)
parents 364099c9aff2
children a66f312c374b
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 }