wok-current view dahdi-linux/receipt @ rev 9398
dahdi-tools: needs -j1
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 26 22:00:09 2011 +0100 (2011-03-26) |
parents | b81188b2a50e |
children | d5ebb7d32aca |
line source
1 # SliTaz package receipt.
3 PACKAGE="dahdi-linux"
4 VERSION="2.4.0"
5 CATEGORY="network"
6 SHORT_DESC="Digium Asterisk Hardware Device Interface: kernel modules."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.asterisk.org/"
10 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/releases/$TARBALL"
11 DEPENDS="linux udev"
12 #PROVIDE="linux-misdn"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 compile_rules()
16 {
17 cd $src
18 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile
19 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \
20 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g'
21 [ -d $WOK/linux/taz ] || tazwok cook linux
22 make KSRC=$WOK/linux/$(ls $WOK/linux/taz) install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 cp -a $_pkg/* $fs
29 }
31 # Post install/remove commands for Tazpkg.
32 post_install()
33 {
34 chroot "$1/" depmod -a
35 }
37 post_remove()
38 {
39 depmod -a
40 }