wok-6.x diff dummynet64/receipt @ rev 20240
Add dummynet64, lirc64, nvidia64-173xx, nvidia64-96xx, tp_smapi64
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 09 16:57:32 2018 +0100 (2018-03-09) |
parents | |
children | f2bea3663690 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dummynet64/receipt Fri Mar 09 16:57:32 2018 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="dummynet64" 1.7 +VERSION="20120812" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Network testing/emulation tool." 1.10 +MAINTAINER="samuel_trassare@yahoo.com" 1.11 +LICENSE="BSD" 1.12 +WEB_SITE="http://info.iet.unipi.it/~luigi/dummynet/" 1.13 +TARBALL="$VERSION-ipfw3.tgz" 1.14 +WGET_URL="http://info.iet.unipi.it/~luigi/doc/$TARBALL" 1.15 +PROVIDE="dummynet:linux64" 1.16 + 1.17 +BUILD_DEPENDS="linux64-module-headers uclibc-cross-compiler-x86_64" 1.18 + 1.19 +# Aufs enable chroot 1.20 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" 1.21 + 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 +{ 1.25 + installed=/var/lib/tazpkg/installed 1.26 + kvers=$(. $installed/linux64-module-headers/receipt ; echo $VERSION) 1.27 + sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile 1.28 + sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc 1.29 + make 1.30 +} 1.31 + 1.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.33 +genpkg_rules() 1.34 +{ 1.35 + mkdir -p $fs/usr/bin \ 1.36 + $fs/lib/modules/$kvers-slitaz/kernel/net 1.37 + cp -a $src/ipfw/ipfw $fs/usr/bin 1.38 + cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net 1.39 +} 1.40 + 1.41 +# Post install/remove commands for Tazpkg. 1.42 +post_install() 1.43 +{ 1.44 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 1.45 +} 1.46 + 1.47 +post_remove() 1.48 +{ 1.49 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 1.50 +}