wok-stable view dahdi-linux/receipt @ rev 12403
bozohttpd, cherokee, hiawatha, nginx: add PROVIDE (from cooking wok)
author | Stanislas Leduc <stanislas.leduc@balinor.net> |
---|---|
date | Thu Aug 22 08:57:32 2013 +0200 (2013-08-22) |
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 }