wok-4.x annotate dahdi-linux/receipt @ rev 9573

Up: lilo to 23.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Apr 11 23:54:29 2011 +0000 (2011-04-11)
parents b81188b2a50e
children 053bea3ac599
rev   line source
pascal@4102 1 # SliTaz package receipt.
pascal@4102 2
pascal@4102 3 PACKAGE="dahdi-linux"
pascal@7387 4 VERSION="2.4.0"
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@5063 18 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile
pascal@8991 19 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \
pascal@8992 20 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g'
pascal@4102 21 [ -d $WOK/linux/taz ] || tazwok cook linux
gokhlayeh@8679 22 make KSRC=$WOK/linux/$(ls $WOK/linux/taz) install
pascal@4102 23 }
pascal@4102 24
pascal@4102 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4102 26 genpkg_rules()
pascal@4102 27 {
pascal@9066 28 cp -a $_pkg/* $fs
pascal@4102 29 }
pascal@4102 30
pascal@4102 31 # Post install/remove commands for Tazpkg.
pascal@4102 32 post_install()
pascal@4102 33 {
pascal@4102 34 chroot "$1/" depmod -a
pascal@4102 35 }
pascal@4102 36
pascal@4102 37 post_remove()
pascal@4102 38 {
pascal@4102 39 depmod -a
pascal@4102 40 }