wok-next view dahdi-linux/receipt @ rev 20673
font-manager: dev package is empty, update deps.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri May 11 16:56:15 2018 +0300 (2018-05-11) |
parents | d43bf7aae921 |
children | d5aab818505e |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.asterisk.org/"
12 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/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"
23 BUILD_DEPENDS="linux-module-headers xz perl"
24 SPLIT="dahdi-linux dahdi-linux-dev"
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 compile_rules()
28 {
29 FIRMWARE_URL=http://downloads.digium.com/pub/telephony/firmware/releases
30 for i in $EXTRA_SOURCE_FILES ; do
31 [ -s $SRC/$i ] ||
32 wget -P $SRC $FIRMWARE_URL/$i
33 cp $SRC/$i drivers/dahdi/firmware/
34 tar xzf $SRC/$i -C drivers/dahdi/firmware/
35 done
36 make KVERS="/usr/src/linux" install 2>&1 | grep -v 'slitaz/modules' &&
37 find $DESTDIR/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 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 case $PACKAGE in
48 dahdi-linux)
49 DEPENDS="linux eudev"
50 cp -a $install/* $fs
51 rm -rf $fs/usr/include
52 ;;
53 dahdi-linux-dev)
54 mkdir -p $fs/usr
55 cp -a $install/usr/include $fs/usr
56 ;;
57 esac
58 }
60 # Post install/remove commands for Tazpkg.
61 post_install_dahdi_linux()
62 {
63 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
64 }
66 post_remove_dahdi_linux()
67 {
68 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
69 }