wok-next view dahdi-linux/receipt @ rev 21286
updated gnuradio (3.7.8 -> 3.8.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Dec 08 11:42:09 2019 +0100 (2019-12-08) |
parents | 5c189fc65a98 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="dahdi-linux"
4 VERSION="2.11.1"
5 EXTRAVERSION="_$kvers"
6 CATEGORY="network"
7 SHORT_DESC="Digium Asterisk Hardware Device Interface: kernel modules"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.asterisk.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/releases/$TARBALL"
14 EXTRA_SOURCE_FILES="dahdi-fw-hx8-2.06.tar.gz dahdi-fw-oct6114-032-1.05.01.tar.gz \
15 dahdi-fw-oct6114-064-1.05.01.tar.gz dahdi-fw-oct6114-128-1.05.01.tar.gz \
16 dahdi-fw-oct6114-256-1.05.01.tar.gz dahdi-fw-tc400m-MR6.12.tar.gz \
17 dahdi-fw-te820-1.76.tar.gz dahdi-fw-vpmoct032-1.12.0.tar.gz \
18 dahdi-fw-te133-7a001e.tar.gz dahdi-fw-te134-780017.tar.gz \
19 dahdi-fw-te435-13001e.tar.gz dahdi-fw-te436-10017.tar.gz \
20 dahdi-fw-a8b-1f001e.tar.gz dahdi-fw-a8a-1d0017.tar.gz \
21 dahdi-fw-a4b-d001e.tar.gz dahdi-fw-a4a-a0017.tar.gz \
22 dahdi-fwload-vpmadt032-1.25.0.tar.gz"
24 BUILD_DEPENDS="linux-module-headers xz perl"
25 SPLIT="$PACKAGE-dev"
27 compile_rules() {
28 FIRMWARE_URL=http://downloads.digium.com/pub/telephony/firmware/releases
29 for i in $EXTRA_SOURCE_FILES; do
30 [ -s $SRC/$i ] ||
31 wget -P $SRC $FIRMWARE_URL/$i
32 cp $SRC/$i drivers/dahdi/firmware/
33 tar xzf $SRC/$i -C drivers/dahdi/firmware/
34 done
36 make KVERS="/usr/src/linux" install 2>&1 | grep -v 'slitaz/modules' &&
37 find $install/lib/modules -name '*.ko' -exec xz {} \;
38 for i in $EXTRA_SOURCE_FILES; do
39 [ -s $SRC/$i ] ||
40 cp drivers/dahdi/firmware/$i $SRC/
41 done
42 }
44 genpkg_rules() {
45 case $PACKAGE in
46 dahdi-linux)
47 copy @std
48 DEPENDS="linux eudev"
49 ;;
50 *-dev)
51 copy @dev
52 ;;
53 esac
54 }
56 post_install_dahdi_linux() {
57 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
58 }
60 post_remove_dahdi_linux() {
61 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
62 }