wok-6.x annotate dahdi-linux/receipt @ rev 18044
yad: update depends
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Tue May 12 19:26:09 2015 -0400 (2015-05-12) |
parents | 3dd7afb348a9 |
children | 29d39c79090b |
rev | line source |
---|---|
pascal@4102 | 1 # SliTaz package receipt. |
pascal@4102 | 2 |
pascal@4102 | 3 PACKAGE="dahdi-linux" |
pascal@12858 | 4 VERSION="2.6.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@17734 | 12 EXTRA_SOURCE_FILES="dahdi-fw-hx8-2.06.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@17734 | 16 dahdi-fwload-vpmadt032-1.25.0.tar.gz" |
pascal@13872 | 17 |
gokhlayeh@8679 | 18 DEPENDS="linux udev" |
pascal@17730 | 19 BUILD_DEPENDS="linux-module-headers xz" |
pascal@4102 | 20 |
pascal@4102 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4102 | 22 compile_rules() |
pascal@4102 | 23 { |
pascal@12858 | 24 sed -i 's|/sbin/depmod|echo &|' Makefile |
pascal@5063 | 25 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile |
pascal@17734 | 26 for i in $EXTRA_SOURCE_FILES ; do |
pascal@17735 | 27 [ -s $SOURCES_REPOSITORY/$i ] || continue |
pascal@17734 | 28 cp $SOURCES_REPOSITORY/$i drivers/dahdi/firmware/ |
pascal@17735 | 29 tar xzf $SOURCES_REPOSITORY/$i -C drivers/dahdi/firmware/ |
pascal@17734 | 30 done |
pascal@8991 | 31 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \ |
pascal@8992 | 32 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g' |
pascal@17730 | 33 make KVERS="/usr/src/linux" install 2>&1 | grep -v 'slitaz/modules' && |
pascal@17730 | 34 find $DESTDIR/lib/modules -name '*.ko' -exec xz {} \; |
pascal@17734 | 35 for i in $EXTRA_SOURCE_FILES ; do |
pascal@17734 | 36 [ -s $SOURCES_REPOSITORY/$i ] || |
pascal@17734 | 37 cp drivers/dahdi/firmware/$i $SOURCES_REPOSITORY/ |
pascal@17734 | 38 done |
pascal@4102 | 39 } |
pascal@4102 | 40 |
pascal@4102 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4102 | 42 genpkg_rules() |
pascal@4102 | 43 { |
pankso@15855 | 44 EXTRAVERSION=_${kvers} |
pascal@13872 | 45 cp -a $install/* $fs |
pankso@15855 | 46 rm -rf $fs/usr/include |
pascal@4102 | 47 } |
pascal@4102 | 48 |
pascal@4102 | 49 # Post install/remove commands for Tazpkg. |
pascal@4102 | 50 post_install() |
pascal@4102 | 51 { |
pankso@15855 | 52 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@4102 | 53 } |
pascal@4102 | 54 |
pascal@4102 | 55 post_remove() |
pascal@4102 | 56 { |
pankso@15855 | 57 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@4102 | 58 } |