wok view dahdi-linux/receipt @ rev 25003

updated nspr and nspr-dev (4.25 -> 4.33)
author Hans-G?nter Theisgen
date Mon May 16 14:53:05 2022 +0100 (2022-05-16)
parents 05c8d8d9d934
children ba642f310677
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 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - ${WGET_URL%/*} 2>/dev/null | \
29 sed "/$PACKAGE-/!d;/tar/!d;/-rc/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 compile_rules()
34 {
35 FIRMWARE_URL=http://downloads.digium.com/pub/telephony/firmware/releases
36 for i in $EXTRA_SOURCE_FILES ; do
37 [ -s $SOURCES_REPOSITORY/$i ] ||
38 wget -P $SOURCES_REPOSITORY $FIRMWARE_URL/$i
39 cp $SOURCES_REPOSITORY/$i drivers/dahdi/firmware/
40 tar xzf $SOURCES_REPOSITORY/$i -C drivers/dahdi/firmware/
41 done
42 make KVERS="/usr/src/linux" install 2>&1 | grep -v 'slitaz/modules' &&
43 find $DESTDIR/lib/modules -name '*.ko' -exec xz {} \;
44 for i in $EXTRA_SOURCE_FILES ; do
45 [ -s $SOURCES_REPOSITORY/$i ] ||
46 cp drivers/dahdi/firmware/$i $SOURCES_REPOSITORY/
47 done
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 EXTRAVERSION=_${kvers}
54 cp -a $install/* $fs
55 rm -rf $fs/usr/include
56 }
58 # Post install/remove commands for Tazpkg.
59 post_install()
60 {
61 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
62 }
64 post_remove()
65 {
66 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
67 }