wok-current annotate dummynet/receipt @ rev 25727

Add miss stuff folder for libxml++, dbus-c++
author Stanislas Leduc <shann@slitaz.org>
date Tue Nov 05 13:46:37 2024 +0000 (4 weeks ago)
parents 364099c9aff2
children
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
pascal@24497 16 # What is the latest version available today?
pascal@24497 17 current_version()
pascal@24497 18 {
pascal@24497 19 wget -O - https://github.com/luigirizzo/dummynet/commits/master 2>/dev/null | \
pascal@24497 20 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
pascal@24497 21 }
pascal@24497 22
samuel_trassare@13380 23 # Rules to configure and make the package.
samuel_trassare@13380 24 compile_rules()
samuel_trassare@13380 25 {
pascal@15167 26 installed=/var/lib/tazpkg/installed
pascal@15167 27 kvers=$(. $installed/linux-module-headers/receipt ; echo $VERSION)
samuel_trassare@13407 28 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
pascal@13382 29 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
samuel_trassare@13380 30 make
samuel_trassare@13380 31 }
samuel_trassare@13380 32
samuel_trassare@13380 33 # Rules to gen a SliTaz package suitable for Tazpkg.
samuel_trassare@13380 34 genpkg_rules()
samuel_trassare@13380 35 {
samuel_trassare@13380 36 mkdir -p $fs/usr/bin \
pascal@13382 37 $fs/lib/modules/$kvers-slitaz/kernel/net
samuel_trassare@13380 38 cp -a $src/ipfw/ipfw $fs/usr/bin
pascal@13382 39 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
samuel_trassare@13380 40 }
samuel_trassare@13380 41
pascal@20240 42 # Post install/remove commands for Tazpkg.
samuel_trassare@13380 43 post_install()
samuel_trassare@13380 44 {
pascal@20240 45 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
samuel_trassare@13380 46 }
pascal@20240 47
pascal@20240 48 post_remove()
pascal@20240 49 {
pascal@20240 50 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@20240 51 }