wok-current annotate dahdi-linux/receipt @ rev 25650
Fix libwebkit gtk+ twice in dep, thanks Ceel
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Feb 02 17:58:11 2024 +0000 (9 months ago) |
parents | 05c8d8d9d934 |
children |
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@23974 | 10 WEB_SITE="https://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@24425 | 25 # What is the latest version available today? |
pascal@24425 | 26 current_version() |
pascal@24425 | 27 { |
pascal@24425 | 28 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 29 sed "/$PACKAGE-/!d;/tar/!d;/-rc/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24425 | 30 } |
pascal@24425 | 31 |
pascal@4102 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4102 | 33 compile_rules() |
pascal@4102 | 34 { |
pascal@20132 | 35 FIRMWARE_URL=http://downloads.digium.com/pub/telephony/firmware/releases |
pascal@17734 | 36 for i in $EXTRA_SOURCE_FILES ; do |
pascal@20132 | 37 [ -s $SOURCES_REPOSITORY/$i ] || |
pascal@20132 | 38 wget -P $SOURCES_REPOSITORY $FIRMWARE_URL/$i |
pascal@17734 | 39 cp $SOURCES_REPOSITORY/$i drivers/dahdi/firmware/ |
pascal@17735 | 40 tar xzf $SOURCES_REPOSITORY/$i -C drivers/dahdi/firmware/ |
pascal@17734 | 41 done |
pascal@17730 | 42 make KVERS="/usr/src/linux" install 2>&1 | grep -v 'slitaz/modules' && |
pascal@17730 | 43 find $DESTDIR/lib/modules -name '*.ko' -exec xz {} \; |
pascal@17734 | 44 for i in $EXTRA_SOURCE_FILES ; do |
pascal@17734 | 45 [ -s $SOURCES_REPOSITORY/$i ] || |
pascal@17734 | 46 cp drivers/dahdi/firmware/$i $SOURCES_REPOSITORY/ |
pascal@17734 | 47 done |
pascal@4102 | 48 } |
pascal@4102 | 49 |
pascal@4102 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4102 | 51 genpkg_rules() |
pascal@4102 | 52 { |
pankso@15855 | 53 EXTRAVERSION=_${kvers} |
pascal@13872 | 54 cp -a $install/* $fs |
pankso@15855 | 55 rm -rf $fs/usr/include |
pascal@4102 | 56 } |
pascal@4102 | 57 |
pascal@4102 | 58 # Post install/remove commands for Tazpkg. |
pascal@4102 | 59 post_install() |
pascal@4102 | 60 { |
pankso@15855 | 61 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@4102 | 62 } |
pascal@4102 | 63 |
pascal@4102 | 64 post_remove() |
pascal@4102 | 65 { |
pankso@15855 | 66 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@4102 | 67 } |