wok-next annotate dummynet/receipt @ rev 21658

updated flashrom (0.9.6.1 -> 1.2)
author Hans-G?nter Theisgen
date Sat Jun 27 10:24:22 2020 +0100 (2020-06-27)
parents dfef8de3d270
children
rev   line source
samuel_trassare@13380 1 # SliTaz package receipt.
samuel_trassare@13380 2
samuel_trassare@13380 3 PACKAGE="dummynet"
samuel_trassare@13380 4 VERSION="20120812"
samuel_trassare@13380 5 CATEGORY="network"
al@21020 6 SHORT_DESC="Network testing/emulation tool"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15579 8 LICENSE="BSD"
samuel_trassare@13380 9 WEB_SITE="http://info.iet.unipi.it/~luigi/dummynet/"
samuel_trassare@13380 10 TARBALL="$VERSION-ipfw3.tgz"
samuel_trassare@13380 11 WGET_URL="http://info.iet.unipi.it/~luigi/doc/$TARBALL"
samuel_trassare@13380 12
samuel_trassare@13380 13 BUILD_DEPENDS="linux-module-headers"
samuel_trassare@13380 14
al@21020 15 compile_rules() {
pascal@15167 16 installed=/var/lib/tazpkg/installed
al@21020 17 kvers=$(. $installed/linux-module-headers/receipt; echo $VERSION)
samuel_trassare@13407 18 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
pascal@13382 19 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
samuel_trassare@13380 20 make
samuel_trassare@13380 21 }
samuel_trassare@13380 22
al@21020 23 genpkg_rules() {
samuel_trassare@13380 24 mkdir -p $fs/usr/bin \
pascal@13382 25 $fs/lib/modules/$kvers-slitaz/kernel/net
samuel_trassare@13380 26 cp -a $src/ipfw/ipfw $fs/usr/bin
pascal@13382 27 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
samuel_trassare@13380 28 }
samuel_trassare@13380 29
al@21020 30 post_install() {
al@21020 31 [ -n "$1" ] || depmod -a
samuel_trassare@13380 32 }