wok-4.x view dahdi-linux/receipt @ rev 12377
Add gdmap [can't compile it in cooking/rolling]
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Feb 07 01:23:55 2013 +0000 (2013-02-07) |
parents | 531d46ddb333 |
children |
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/source/$(ls $WOK/linux/taz) install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 EXTRAVERSION=_${kvers}
29 cp -a $_pkg/* $fs
30 }
32 # Post install/remove commands for Tazpkg.
33 post_install()
34 {
35 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
36 }
38 post_remove()
39 {
40 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
41 }