wok-6.x rev 17734
dahdi-linux: save firmware as source
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 06 11:23:56 2015 +0100 (2015-03-06) |
parents | 98eec404c54e |
children | 6654f7570789 |
files | dahdi-linux/receipt |
line diff
1.1 --- a/dahdi-linux/receipt Fri Mar 06 10:51:35 2015 +0100 1.2 +++ b/dahdi-linux/receipt Fri Mar 06 11:23:56 2015 +0100 1.3 @@ -9,7 +9,11 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.5 WEB_SITE="http://www.asterisk.org/" 1.6 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/releases/$TARBALL" 1.7 -#PROVIDE="linux-misdn" 1.8 +EXTRA_SOURCE_FILES="dahdi-fw-hx8-2.06.tar.gz \ 1.9 +dahdi-fw-oct6114-064-1.05.01.tar.gz dahdi-fw-oct6114-128-1.05.01.tar.gz \ 1.10 +dahdi-fw-oct6114-256-1.05.01.tar.gz dahdi-fw-tc400m-MR6.12.tar.gz \ 1.11 +dahdi-fw-te820-1.76.tar.gz dahdi-fw-vpmoct032-1.12.0.tar.gz \ 1.12 +dahdi-fwload-vpmadt032-1.25.0.tar.gz" 1.13 1.14 DEPENDS="linux udev" 1.15 BUILD_DEPENDS="linux-module-headers xz" 1.16 @@ -19,10 +23,18 @@ 1.17 { 1.18 sed -i 's|/sbin/depmod|echo &|' Makefile 1.19 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile 1.20 + for i in $EXTRA_SOURCE_FILES ; do 1.21 + [ -s $SOURCES_REPOSITORY/$i ] && 1.22 + cp $SOURCES_REPOSITORY/$i drivers/dahdi/firmware/ 1.23 + done 1.24 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \ 1.25 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g' 1.26 make KVERS="/usr/src/linux" install 2>&1 | grep -v 'slitaz/modules' && 1.27 find $DESTDIR/lib/modules -name '*.ko' -exec xz {} \; 1.28 + for i in $EXTRA_SOURCE_FILES ; do 1.29 + [ -s $SOURCES_REPOSITORY/$i ] || 1.30 + cp drivers/dahdi/firmware/$i $SOURCES_REPOSITORY/ 1.31 + done 1.32 } 1.33 1.34 # Rules to gen a SliTaz package suitable for Tazpkg.