wok view dahdi-linux/receipt @ rev 24154
linux64 : update modules64.list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 06 12:18:58 2021 +0000 (2021-12-06) |
parents | 29d39c79090b |
children | 453c249b6219 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dahdi-linux"
4 VERSION="2.11.1"
5 CATEGORY="network"
6 SHORT_DESC="Digium Asterisk Hardware Device Interface: kernel modules."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.asterisk.org/"
11 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/releases/$TARBALL"
12 EXTRA_SOURCE_FILES="dahdi-fw-hx8-2.06.tar.gz dahdi-fw-oct6114-032-1.05.01.tar.gz \
13 dahdi-fw-oct6114-064-1.05.01.tar.gz dahdi-fw-oct6114-128-1.05.01.tar.gz \
14 dahdi-fw-oct6114-256-1.05.01.tar.gz dahdi-fw-tc400m-MR6.12.tar.gz \
15 dahdi-fw-te820-1.76.tar.gz dahdi-fw-vpmoct032-1.12.0.tar.gz \
16 dahdi-fw-te133-7a001e.tar.gz dahdi-fw-te134-780017.tar.gz \
17 dahdi-fw-te435-13001e.tar.gz dahdi-fw-te436-10017.tar.gz \
18 dahdi-fw-a8b-1f001e.tar.gz dahdi-fw-a8a-1d0017.tar.gz \
19 dahdi-fw-a4b-d001e.tar.gz dahdi-fw-a4a-a0017.tar.gz \
20 dahdi-fwload-vpmadt032-1.25.0.tar.gz"
22 DEPENDS="linux udev"
23 BUILD_DEPENDS="linux-module-headers xz perl"
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 compile_rules()
27 {
28 FIRMWARE_URL=http://downloads.digium.com/pub/telephony/firmware/releases
29 for i in $EXTRA_SOURCE_FILES ; do
30 [ -s $SOURCES_REPOSITORY/$i ] ||
31 wget -P $SOURCES_REPOSITORY $FIRMWARE_URL/$i
32 cp $SOURCES_REPOSITORY/$i drivers/dahdi/firmware/
33 tar xzf $SOURCES_REPOSITORY/$i -C drivers/dahdi/firmware/
34 done
35 make KVERS="/usr/src/linux" install 2>&1 | grep -v 'slitaz/modules' &&
36 find $DESTDIR/lib/modules -name '*.ko' -exec xz {} \;
37 for i in $EXTRA_SOURCE_FILES ; do
38 [ -s $SOURCES_REPOSITORY/$i ] ||
39 cp drivers/dahdi/firmware/$i $SOURCES_REPOSITORY/
40 done
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 EXTRAVERSION=_${kvers}
47 cp -a $install/* $fs
48 rm -rf $fs/usr/include
49 }
51 # Post install/remove commands for Tazpkg.
52 post_install()
53 {
54 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
55 }
57 post_remove()
58 {
59 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
60 }