wok-current annotate dummynet/receipt @ rev 22984

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