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