wok-6.x view dummynet64/receipt @ rev 25429
updated xbindkeys (1.8.6 -> 1.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 18 17:19:07 2022 +0100 (2022-08-18) |
parents | 364099c9aff2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="dummynet64"
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"
13 PROVIDE="dummynet:linux64"
15 BUILD_DEPENDS="linux64-module-headers uclibc-cross-compiler-x86_64"
17 # Aufs enable chroot
18 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://github.com/luigirizzo/dummynet/commits/master 2>/dev/null | \
24 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 installed=/var/lib/tazpkg/installed
31 kvers=$(. $installed/linux64-module-headers/receipt ; echo $VERSION)
32 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
33 sed -i "s/uname -r/echo $kvers-slitaz64/" Makefile.inc
34 sed -i "/par = NULL/d;s|w_q = ((.*|/* & */|;s|double w_q;|/* & */|" \
35 ipfw/dummynet.c
36 sed -i "/altqptr =/d" ipfw/ipfw2.c
37 sed -i "/no-unused-but-set-variable/d" */Makefile
38 make
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/bin \
45 $fs/lib/modules/$kvers-slitaz/kernel/net
46 cp -a $src/ipfw/ipfw $fs/usr/bin
47 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
48 }
50 # Post install/remove commands for Tazpkg.
51 post_install()
52 {
53 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
54 }
56 post_remove()
57 {
58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
59 }