wok-stable rev 12285
dahdi-linux: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 24 18:00:09 2012 +0200 (2012-05-24) |
parents | f1d569ea76cc |
children | 77573a5d68f8 |
files | dahdi-linux/receipt |
line diff
1.1 --- a/dahdi-linux/receipt Tue May 15 11:38:14 2012 +0000 1.2 +++ b/dahdi-linux/receipt Thu May 24 18:00:09 2012 +0200 1.3 @@ -19,22 +19,23 @@ 1.4 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \ 1.5 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g' 1.6 [ -d $WOK/linux/taz ] || tazwok cook linux 1.7 - make KSRC=$WOK/linux/$(ls $WOK/linux/taz) install 1.8 + make KSRC=$WOK/linux/source/$(ls $WOK/linux/taz) install 1.9 } 1.10 1.11 # Rules to gen a SliTaz package suitable for Tazpkg. 1.12 genpkg_rules() 1.13 { 1.14 + EXTRAVERSION=_${kvers} 1.15 cp -a $_pkg/* $fs 1.16 } 1.17 1.18 # Post install/remove commands for Tazpkg. 1.19 post_install() 1.20 { 1.21 - chroot "$1/" depmod -a 1.22 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.23 } 1.24 1.25 post_remove() 1.26 { 1.27 - depmod -a 1.28 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.29 }