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

add traceroute 2.0.18. Really this time.
author Samuel Trassare <samuel_trassare@yahoo.com>
date Fri Nov 02 19:32:40 2012 +0000 (2012-11-02)
parents d5ebb7d32aca
children 35e1381d79b6
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 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|/sbin/depmod|echo &|' Makefile
19 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile
20 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \
21 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g'
22 [ -d $WOK/linux/taz ] || tazwok cook linux
23 make KVERS=$kvers KSRC=$WOK/linux/source/$(ls $WOK/linux/taz) install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 EXTRAVERSION=_${kvers%.*}
30 cp -a $_pkg/* $fs
31 }
33 # Post install/remove commands for Tazpkg.
34 post_install()
35 {
36 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
37 }
39 post_remove()
40 {
41 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
42 }