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