wok annotate dahdi-linux/receipt @ rev 13765
Up: wine, winetricks
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Thu Jan 03 14:55:33 2013 +0300 (2013-01-03) |
parents | d5ebb7d32aca |
children | 35e1381d79b6 |
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" |
gokhlayeh@8679 | 11 DEPENDS="linux udev" |
pascal@4102 | 12 #PROVIDE="linux-misdn" |
pascal@4102 | 13 |
pascal@4102 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4102 | 15 compile_rules() |
pascal@4102 | 16 { |
pascal@4102 | 17 cd $src |
pascal@12858 | 18 sed -i 's|/sbin/depmod|echo &|' Makefile |
pascal@5063 | 19 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile |
pascal@8991 | 20 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \ |
pascal@8992 | 21 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g' |
pascal@4102 | 22 [ -d $WOK/linux/taz ] || tazwok cook linux |
pascal@12858 | 23 make KVERS=$kvers KSRC=$WOK/linux/source/$(ls $WOK/linux/taz) install |
pascal@4102 | 24 } |
pascal@4102 | 25 |
pascal@4102 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4102 | 27 genpkg_rules() |
pascal@4102 | 28 { |
pascal@12859 | 29 EXTRAVERSION=_${kvers%.*} |
pascal@9066 | 30 cp -a $_pkg/* $fs |
pascal@4102 | 31 } |
pascal@4102 | 32 |
pascal@4102 | 33 # Post install/remove commands for Tazpkg. |
pascal@4102 | 34 post_install() |
pascal@4102 | 35 { |
pascal@12858 | 36 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@4102 | 37 } |
pascal@4102 | 38 |
pascal@4102 | 39 post_remove() |
pascal@4102 | 40 { |
pascal@12858 | 41 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@4102 | 42 } |