wok view dahdi-linux/receipt @ rev 17255

mc: fix build
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Mon Oct 20 20:17:03 2014 +0200 (2014-10-20)
parents 08901e2b9d77
children c7e96859edc3
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 [ ! -d $WOK/linux/taz ] && cook linux
25 make KVERS=$kvers KSRC=$WOK/linux/source/$(ls $WOK/linux/taz) \
26 install 2>&1 | grep -v 'slitaz/modules'
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 EXTRAVERSION=_${kvers}
33 cp -a $install/* $fs
34 rm -rf $fs/usr/include
35 }
37 # Post install/remove commands for Tazpkg.
38 post_install()
39 {
40 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
41 }
43 post_remove()
44 {
45 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
46 }