wok-next view dahdi-linux/receipt @ rev 10729
Up: slitaz-menus (2.3) - Remove too obstructive SliTaz Network menu
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 29 03:54:39 2011 +0200 (2011-05-29) |
parents | b81188b2a50e |
children | d5ebb7d32aca |
line source
1 # SliTaz package receipt.
3 PACKAGE="dahdi-linux"
4 VERSION="2.4.0"
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/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile
19 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \
20 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g'
21 [ -d $WOK/linux/taz ] || tazwok cook linux
22 make KSRC=$WOK/linux/$(ls $WOK/linux/taz) install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 cp -a $_pkg/* $fs
29 }
31 # Post install/remove commands for Tazpkg.
32 post_install()
33 {
34 chroot "$1/" depmod -a
35 }
37 post_remove()
38 {
39 depmod -a
40 }