wok annotate dummynet64/receipt @ rev 21047

updated imlib2 and imlib2-dev (1.4.6 -> 1.5.1)
author Hans-G?nter Theisgen
date Tue Mar 12 16:40:34 2019 +0100 (2019-03-12)
parents f2bea3663690
children 364099c9aff2
rev   line source
pascal@20240 1 # SliTaz package receipt.
pascal@20240 2
pascal@20240 3 PACKAGE="dummynet64"
pascal@20267 4 VERSION="20150115"
pascal@20267 5 GITHASH="e717cdd4bef764a4aa7babedc54220b35b04c777"
pascal@20240 6 CATEGORY="network"
pascal@20240 7 SHORT_DESC="Network testing/emulation tool."
pascal@20240 8 MAINTAINER="samuel_trassare@yahoo.com"
pascal@20240 9 LICENSE="BSD"
pascal@20240 10 WEB_SITE="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"
pascal@20240 13 PROVIDE="dummynet:linux64"
pascal@20240 14
pascal@20240 15 BUILD_DEPENDS="linux64-module-headers uclibc-cross-compiler-x86_64"
pascal@20240 16
pascal@20240 17 # Aufs enable chroot
pascal@20240 18 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
pascal@20240 19
pascal@20240 20 # Rules to configure and make the package.
pascal@20240 21 compile_rules()
pascal@20240 22 {
pascal@20240 23 installed=/var/lib/tazpkg/installed
pascal@20240 24 kvers=$(. $installed/linux64-module-headers/receipt ; echo $VERSION)
pascal@20240 25 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
pascal@20241 26 sed -i "s/uname -r/echo $kvers-slitaz64/" Makefile.inc
pascal@20241 27 sed -i "/par = NULL/d;s|w_q = ((.*|/* & */|;s|double w_q;|/* & */|" \
pascal@20241 28 ipfw/dummynet.c
pascal@20241 29 sed -i "/altqptr =/d" ipfw/ipfw2.c
pascal@20241 30 sed -i "/no-unused-but-set-variable/d" */Makefile
pascal@20240 31 make
pascal@20240 32 }
pascal@20240 33
pascal@20240 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20240 35 genpkg_rules()
pascal@20240 36 {
pascal@20240 37 mkdir -p $fs/usr/bin \
pascal@20240 38 $fs/lib/modules/$kvers-slitaz/kernel/net
pascal@20240 39 cp -a $src/ipfw/ipfw $fs/usr/bin
pascal@20240 40 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
pascal@20240 41 }
pascal@20240 42
pascal@20240 43 # Post install/remove commands for Tazpkg.
pascal@20240 44 post_install()
pascal@20240 45 {
pascal@20240 46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@20240 47 }
pascal@20240 48
pascal@20240 49 post_remove()
pascal@20240 50 {
pascal@20240 51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@20240 52 }