wok-current view dahdi-linux64/receipt @ rev 25618

Use default gcc 6.3 for libgphoto2
author Stanislas Leduc <shann@slitaz.org>
date Sun Sep 03 19:59:46 2023 +0000 (14 months ago)
parents 05c8d8d9d934
children
line source
1 # SliTaz package receipt.
3 PACKAGE="dahdi-linux64"
4 SOURCE="dahdi-linux"
5 VERSION="2.11.1"
6 CATEGORY="network"
7 SHORT_DESC="Digium Asterisk Hardware Device Interface: kernel modules."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://www.asterisk.org/"
12 WGET_URL="http://downloads.asterisk.org/pub/telephony/$SOURCE/releases/$TARBALL"
13 EXTRA_SOURCE_FILES="dahdi-fw-hx8-2.06.tar.gz dahdi-fw-oct6114-032-1.05.01.tar.gz \
14 dahdi-fw-oct6114-064-1.05.01.tar.gz dahdi-fw-oct6114-128-1.05.01.tar.gz \
15 dahdi-fw-oct6114-256-1.05.01.tar.gz dahdi-fw-tc400m-MR6.12.tar.gz \
16 dahdi-fw-te820-1.76.tar.gz dahdi-fw-vpmoct032-1.12.0.tar.gz \
17 dahdi-fw-te133-7a001e.tar.gz dahdi-fw-te134-780017.tar.gz \
18 dahdi-fw-te435-13001e.tar.gz dahdi-fw-te436-10017.tar.gz \
19 dahdi-fw-a8b-1f001e.tar.gz dahdi-fw-a8a-1d0017.tar.gz \
20 dahdi-fw-a4b-d001e.tar.gz dahdi-fw-a4a-a0017.tar.gz \
21 dahdi-fwload-vpmadt032-1.25.0.tar.gz"
22 PROVIDE="dahdi-linux:linux64"
24 DEPENDS="linux64 udev"
25 BUILD_DEPENDS="linux64-module-headers xz perl uclibc-cross-compiler-x86_64"
27 # Aufs enable chroot
28 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
30 # What is the latest version available today?
31 current_version()
32 {
33 wget -O - ${WGET_URL%/*} 2>/dev/null | \
34 sed "/$SOURCE-/!d;/tar/!d;/-rc/d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 compile_rules()
39 {
40 FIRMWARE_URL=http://downloads.digium.com/pub/telephony/firmware/releases
41 for i in $EXTRA_SOURCE_FILES ; do
42 [ -s $SOURCES_REPOSITORY/$i ] ||
43 wget -P $SOURCES_REPOSITORY $FIRMWARE_URL/$i
44 cp $SOURCES_REPOSITORY/$i drivers/dahdi/firmware/
45 tar xzf $SOURCES_REPOSITORY/$i -C drivers/dahdi/firmware/
46 done
47 make KVERS="/usr/src/linux" install 2>&1 | grep -v 'slitaz/modules' &&
48 find $DESTDIR/lib/modules -name '*.ko' -exec xz {} \;
49 for i in $EXTRA_SOURCE_FILES ; do
50 [ -s $SOURCES_REPOSITORY/$i ] ||
51 cp drivers/dahdi/firmware/$i $SOURCES_REPOSITORY/
52 done
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 EXTRAVERSION=_${kvers}
59 cp -a $install/* $fs
60 rm -rf $fs/usr/include
61 }
63 # Post install/remove commands for Tazpkg.
64 post_install()
65 {
66 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
67 }
69 post_remove()
70 {
71 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
72 }