wok-current diff dummynet/receipt @ rev 13382

dummynet: force kernel version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 21 15:41:42 2012 +0200 (2012-09-21)
parents 99c1208e7bf1
children 31a6c59885ff
line diff
     1.1 --- a/dummynet/receipt	Thu Sep 20 19:49:11 2012 +0000
     1.2 +++ b/dummynet/receipt	Fri Sep 21 15:41:42 2012 +0200
     1.3 @@ -14,6 +14,9 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 +	kvers=$(cd /lib/modules ; ls -d *-slitaz)
     1.8 +	kvers=${kvers%-slitaz}
     1.9 +	sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
    1.10  	make
    1.11  }
    1.12  
    1.13 @@ -21,9 +24,9 @@
    1.14  genpkg_rules()
    1.15  {
    1.16  	mkdir -p $fs/usr/bin \
    1.17 -		$fs/lib/modules/`uname -r`/kernel/net
    1.18 +		$fs/lib/modules/$kvers-slitaz/kernel/net
    1.19  	cp -a $src/ipfw/ipfw $fs/usr/bin
    1.20 -	cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/`uname -r`/kernel/net
    1.21 +	cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
    1.22  }
    1.23  
    1.24  post_install()