wok view dahdi-linux/receipt @ rev 15547

Up: firefox-langpack-zh_TW (17.0.11esr)
author Dominique Corbex <domcox@slitaz.org>
date Sun Nov 24 17:36:44 2013 +0100 (2013-11-24)
parents 69557c05e267
children db5b03f42dd9
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.asterisk.org/"
11 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/releases/$TARBALL"
12 #PROVIDE="linux-misdn"
14 DEPENDS="linux udev"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 compile_rules()
18 {
19 cd $src
20 sed -i 's|/sbin/depmod|echo &|' Makefile
21 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile
22 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \
23 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g'
24 if [ ! -d $WOK/linux/taz ]; then
25 if [ -x /usr/bin/cook ]; then
26 cook linux
27 else
28 tazwok cook linux
29 fi
30 fi
31 make KVERS=$kvers KSRC=$WOK/linux/source/$(ls $WOK/linux/taz) \
32 install 2>&1 | grep -v 'slitaz/modules'
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 EXTRAVERSION=_${kvers%.*}
39 cp -a $install/* $fs
40 }
42 # Post install/remove commands for Tazpkg.
43 post_install()
44 {
45 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
46 }
48 post_remove()
49 {
50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
51 }