wok-6.x annotate dummynet/receipt @ rev 17304
Add python-cups
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 01 10:46:23 2014 +0100 (2014-11-01) |
parents | 5946b996ee93 |
children | dfef8de3d270 |
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" |
samuel_trassare@13380 | 6 SHORT_DESC="Network testing/emulation tool." |
samuel_trassare@13380 | 7 MAINTAINER="samuel_trassare@yahoo.com" |
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 |
samuel_trassare@13380 | 15 # Rules to configure and make the package. |
samuel_trassare@13380 | 16 compile_rules() |
samuel_trassare@13380 | 17 { |
pascal@15167 | 18 installed=/var/lib/tazpkg/installed |
pascal@15167 | 19 kvers=$(. $installed/linux-module-headers/receipt ; echo $VERSION) |
samuel_trassare@13407 | 20 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile |
pascal@13382 | 21 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc |
samuel_trassare@13380 | 22 make |
samuel_trassare@13380 | 23 } |
samuel_trassare@13380 | 24 |
samuel_trassare@13380 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
samuel_trassare@13380 | 26 genpkg_rules() |
samuel_trassare@13380 | 27 { |
samuel_trassare@13380 | 28 mkdir -p $fs/usr/bin \ |
pascal@13382 | 29 $fs/lib/modules/$kvers-slitaz/kernel/net |
samuel_trassare@13380 | 30 cp -a $src/ipfw/ipfw $fs/usr/bin |
pascal@13382 | 31 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net |
samuel_trassare@13380 | 32 } |
samuel_trassare@13380 | 33 |
samuel_trassare@13380 | 34 post_install() |
samuel_trassare@13380 | 35 { |
samuel_trassare@13380 | 36 echo "/lib/modules/`uname -r`/kernel/net/ipfw_mod.ko" >> /lib/modules/modules.dep |
samuel_trassare@13380 | 37 depmod |
samuel_trassare@13380 | 38 } |