wok-6.x annotate dahdi-linux/receipt @ rev 15059
dahdi-linux: remove wrong error trigger
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 13 10:43:55 2013 +0000 (2013-08-13) |
parents | 69557c05e267 |
children | db5b03f42dd9 |
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@13872 | 12 #PROVIDE="linux-misdn" |
pascal@13872 | 13 |
gokhlayeh@8679 | 14 DEPENDS="linux udev" |
pascal@4102 | 15 |
pascal@4102 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4102 | 17 compile_rules() |
pascal@4102 | 18 { |
pascal@4102 | 19 cd $src |
pascal@12858 | 20 sed -i 's|/sbin/depmod|echo &|' Makefile |
pascal@5063 | 21 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile |
pascal@8991 | 22 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \ |
pascal@8992 | 23 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g' |
pascal@13937 | 24 if [ ! -d $WOK/linux/taz ]; then |
pascal@13937 | 25 if [ -x /usr/bin/cook ]; then |
pascal@13937 | 26 cook linux |
pascal@13937 | 27 else |
pascal@13937 | 28 tazwok cook linux |
pascal@13937 | 29 fi |
pascal@13937 | 30 fi |
pascal@15059 | 31 make KVERS=$kvers KSRC=$WOK/linux/source/$(ls $WOK/linux/taz) \ |
pascal@15059 | 32 install 2>&1 | grep -v 'slitaz/modules' |
pascal@4102 | 33 } |
pascal@4102 | 34 |
pascal@4102 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4102 | 36 genpkg_rules() |
pascal@4102 | 37 { |
pascal@12859 | 38 EXTRAVERSION=_${kvers%.*} |
pascal@13872 | 39 cp -a $install/* $fs |
pascal@4102 | 40 } |
pascal@4102 | 41 |
pascal@4102 | 42 # Post install/remove commands for Tazpkg. |
pascal@4102 | 43 post_install() |
pascal@4102 | 44 { |
pascal@12858 | 45 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@4102 | 46 } |
pascal@4102 | 47 |
pascal@4102 | 48 post_remove() |
pascal@4102 | 49 { |
pascal@12858 | 50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@4102 | 51 } |