wok annotate dahdi-linux/receipt @ rev 14129

esound: recook using existing upgraded audiofile-1 instead of absent old audiofile-0
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 28 10:12:51 2013 +0000 (2013-02-28)
parents 35e1381d79b6
children 08901e2b9d77
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@4102 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4102 9 WEB_SITE="http://www.asterisk.org/"
pascal@4102 10 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/releases/$TARBALL"
pascal@13872 11 #PROVIDE="linux-misdn"
pascal@13872 12
gokhlayeh@8679 13 DEPENDS="linux udev"
pascal@4102 14
pascal@4102 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4102 16 compile_rules()
pascal@4102 17 {
pascal@4102 18 cd $src
pascal@12858 19 sed -i 's|/sbin/depmod|echo &|' Makefile
pascal@5063 20 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile
pascal@8991 21 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \
pascal@8992 22 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g'
pascal@13937 23 if [ ! -d $WOK/linux/taz ]; then
pascal@13937 24 if [ -x /usr/bin/cook ]; then
pascal@13937 25 cook linux
pascal@13937 26 else
pascal@13937 27 tazwok cook linux
pascal@13937 28 fi
pascal@13937 29 fi
pascal@12858 30 make KVERS=$kvers KSRC=$WOK/linux/source/$(ls $WOK/linux/taz) install
pascal@4102 31 }
pascal@4102 32
pascal@4102 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4102 34 genpkg_rules()
pascal@4102 35 {
pascal@12859 36 EXTRAVERSION=_${kvers%.*}
pascal@13872 37 cp -a $install/* $fs
pascal@4102 38 }
pascal@4102 39
pascal@4102 40 # Post install/remove commands for Tazpkg.
pascal@4102 41 post_install()
pascal@4102 42 {
pascal@12858 43 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@4102 44 }
pascal@4102 45
pascal@4102 46 post_remove()
pascal@4102 47 {
pascal@12858 48 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@4102 49 }