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