wok view dummynet/receipt @ rev 20554
updated libgcrypt again
author | Hans-G?nter Theisgen |
---|---|
date | Wed Dec 12 14:49:05 2018 +0100 (2018-12-12) |
parents | 6238b9c00443 |
children | 364099c9aff2 |
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="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 }