wok-6.x view dahdi-linux/receipt @ rev 14727

Up libdrm (2.4.45)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 13 09:38:35 2013 +0200 (2013-06-13)
parents 35e1381d79b6
children 08901e2b9d77
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 if [ ! -d $WOK/linux/taz ]; then
24 if [ -x /usr/bin/cook ]; then
25 cook linux
26 else
27 tazwok cook linux
28 fi
29 fi
30 make KVERS=$kvers KSRC=$WOK/linux/source/$(ls $WOK/linux/taz) install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 EXTRAVERSION=_${kvers%.*}
37 cp -a $install/* $fs
38 }
40 # Post install/remove commands for Tazpkg.
41 post_install()
42 {
43 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
44 }
46 post_remove()
47 {
48 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
49 }