wok-next rev 17730
dahdi-linux: use linux-module-headers & xz
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 06 08:37:28 2015 +0100 (2015-03-06) |
parents | 28580bc4a7da |
children | 14154392a2a1 |
files | dahdi-linux/receipt |
line diff
1.1 --- a/dahdi-linux/receipt Thu Mar 05 23:06:50 2015 +0100 1.2 +++ b/dahdi-linux/receipt Fri Mar 06 08:37:28 2015 +0100 1.3 @@ -12,18 +12,17 @@ 1.4 #PROVIDE="linux-misdn" 1.5 1.6 DEPENDS="linux udev" 1.7 +BUILD_DEPENDS="linux-module-headers xz" 1.8 1.9 # Rules to gen a SliTaz package suitable for Tazpkg. 1.10 compile_rules() 1.11 { 1.12 - cd $src 1.13 sed -i 's|/sbin/depmod|echo &|' Makefile 1.14 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile 1.15 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \ 1.16 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g' 1.17 - [ ! -d $WOK/linux/taz ] && cook linux 1.18 - make KVERS=$kvers KSRC=$WOK/linux/source/$(ls $WOK/linux/taz) \ 1.19 - install 2>&1 | grep -v 'slitaz/modules' 1.20 + make KVERS="/usr/src/linux" install 2>&1 | grep -v 'slitaz/modules' && 1.21 + find $DESTDIR/lib/modules -name '*.ko' -exec xz {} \; 1.22 } 1.23 1.24 # Rules to gen a SliTaz package suitable for Tazpkg.