wok-current view dahdi-linux/receipt @ rev 13915

Add xpaint (thanks mojo)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 25 10:03:15 2013 +0100 (2013-01-25)
parents b9368eac086f
children 69557c05e267
line source
1 # SliTaz package receipt.
3 PACKAGE="dahdi-linux"
4 VERSION="2.6.1"
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 #PROVIDE="linux-misdn"
13 DEPENDS="linux udev"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 compile_rules()
17 {
18 cd $src
19 sed -i 's|/sbin/depmod|echo &|' Makefile
20 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile
21 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \
22 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g'
23 [ -d $WOK/linux/taz ] || tazwok cook linux
24 make KVERS=$kvers KSRC=$WOK/linux/source/$(ls $WOK/linux/taz) install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 EXTRAVERSION=_${kvers%.*}
31 cp -a $install/* $fs
32 }
34 # Post install/remove commands for Tazpkg.
35 post_install()
36 {
37 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
38 }
40 post_remove()
41 {
42 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
43 }