wok-next view dahdi-linux/receipt @ rev 5186
Up: slitaz-boot-scripts (3.4)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 28 00:44:34 2010 +0100 (2010-03-28) |
parents | f198af80a1ab |
children | 6e563e30a870 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dahdi-linux"
4 VERSION="2.2.0.2"
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"
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 [ -d $WOK/linux/taz ] || tazwok cook linux
20 make KSRC=$WOK/linux/$(ls $WOK/linux/taz) &&
21 make DESTDIR=$PWD/_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 cp -a $_pkg/dev $fs
29 cp -a $_pkg/lib $fs
30 cp -a $_pkg/usr/share $fs/usr
31 }
33 # Post install/remove commands for Tazpkg.
34 post_install()
35 {
36 chroot "$1/" depmod -a
37 }
39 post_remove()
40 {
41 depmod -a
42 }