wok-next diff 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
line diff
     1.1 --- a/dummynet/receipt	Fri Jan 30 10:17:37 2015 +0100
     1.2 +++ b/dummynet/receipt	Sat Jun 27 10:24:22 2020 +0100
     1.3 @@ -3,8 +3,8 @@
     1.4  PACKAGE="dummynet"
     1.5  VERSION="20120812"
     1.6  CATEGORY="network"
     1.7 -SHORT_DESC="Network testing/emulation tool."
     1.8 -MAINTAINER="samuel_trassare@yahoo.com"
     1.9 +SHORT_DESC="Network testing/emulation tool"
    1.10 +MAINTAINER="devel@slitaz.org"
    1.11  LICENSE="BSD"
    1.12  WEB_SITE="http://info.iet.unipi.it/~luigi/dummynet/"
    1.13  TARBALL="$VERSION-ipfw3.tgz"
    1.14 @@ -12,26 +12,21 @@
    1.15  
    1.16  BUILD_DEPENDS="linux-module-headers"
    1.17  
    1.18 -# Rules to configure and make the package.
    1.19 -compile_rules()
    1.20 -{
    1.21 +compile_rules() {
    1.22  	installed=/var/lib/tazpkg/installed
    1.23 -	kvers=$(. $installed/linux-module-headers/receipt ; echo $VERSION)
    1.24 +	kvers=$(. $installed/linux-module-headers/receipt; echo $VERSION)
    1.25  	sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
    1.26  	sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
    1.27  	make
    1.28  }
    1.29  
    1.30 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 -genpkg_rules()
    1.32 -{
    1.33 +genpkg_rules() {
    1.34  	mkdir -p $fs/usr/bin \
    1.35  		$fs/lib/modules/$kvers-slitaz/kernel/net
    1.36  	cp -a $src/ipfw/ipfw $fs/usr/bin
    1.37  	cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
    1.38  }
    1.39  
    1.40 -post_install()
    1.41 -{
    1.42 -	[ "$1" ] || depmod -a
    1.43 +post_install() {
    1.44 +	[ -n "$1" ] || depmod -a
    1.45  }