wok-6.x annotate 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
rev   line source
pascal@20240 1 # SliTaz package receipt.
pascal@20240 2
pascal@20240 3 PACKAGE="dummynet64"
pascal@20240 4 VERSION="20120812"
pascal@20240 5 CATEGORY="network"
pascal@20240 6 SHORT_DESC="Network testing/emulation tool."
pascal@20240 7 MAINTAINER="samuel_trassare@yahoo.com"
pascal@20240 8 LICENSE="BSD"
pascal@20240 9 WEB_SITE="http://info.iet.unipi.it/~luigi/dummynet/"
pascal@20240 10 TARBALL="$VERSION-ipfw3.tgz"
pascal@20240 11 WGET_URL="http://info.iet.unipi.it/~luigi/doc/$TARBALL"
pascal@20240 12 PROVIDE="dummynet:linux64"
pascal@20240 13
pascal@20240 14 BUILD_DEPENDS="linux64-module-headers uclibc-cross-compiler-x86_64"
pascal@20240 15
pascal@20240 16 # Aufs enable chroot
pascal@20240 17 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
pascal@20240 18
pascal@20240 19 # Rules to configure and make the package.
pascal@20240 20 compile_rules()
pascal@20240 21 {
pascal@20240 22 installed=/var/lib/tazpkg/installed
pascal@20240 23 kvers=$(. $installed/linux64-module-headers/receipt ; echo $VERSION)
pascal@20240 24 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
pascal@20240 25 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
pascal@20240 26 make
pascal@20240 27 }
pascal@20240 28
pascal@20240 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20240 30 genpkg_rules()
pascal@20240 31 {
pascal@20240 32 mkdir -p $fs/usr/bin \
pascal@20240 33 $fs/lib/modules/$kvers-slitaz/kernel/net
pascal@20240 34 cp -a $src/ipfw/ipfw $fs/usr/bin
pascal@20240 35 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
pascal@20240 36 }
pascal@20240 37
pascal@20240 38 # Post install/remove commands for Tazpkg.
pascal@20240 39 post_install()
pascal@20240 40 {
pascal@20240 41 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@20240 42 }
pascal@20240 43
pascal@20240 44 post_remove()
pascal@20240 45 {
pascal@20240 46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@20240 47 }