wok annotate dahdi-linux/receipt @ rev 6798

Up: apr-util to 1.3.10.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Oct 19 02:23:27 2010 +0000 (2010-10-19)
parents 6e563e30a870
children 27c8e74ecc1e
rev   line source
pascal@4102 1 # SliTaz package receipt.
pascal@4102 2
pascal@4102 3 PACKAGE="dahdi-linux"
pascal@5444 4 VERSION="2.3.0"
pascal@4102 5 CATEGORY="network"
pascal@4102 6 SHORT_DESC="Digium Asterisk Hardware Device Interface: kernel modules."
pascal@4102 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@4102 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4102 9 WEB_SITE="http://www.asterisk.org/"
pascal@4102 10 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/releases/$TARBALL"
pascal@4102 11 DEPENDS="linux"
pascal@4102 12 #PROVIDE="linux-misdn"
pascal@4102 13
pascal@4102 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4102 15 compile_rules()
pascal@4102 16 {
pascal@4102 17 cd $src
pascal@5063 18 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile
pascal@4102 19 [ -d $WOK/linux/taz ] || tazwok cook linux
pascal@5445 20 make KSRC=$WOK/linux/$(ls $WOK/linux/taz) DESTDIR=$PWD/_pkg install
pascal@4102 21 }
pascal@4102 22
pascal@4102 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4102 24 genpkg_rules()
pascal@4102 25 {
pascal@4102 26 mkdir -p $fs/usr
pascal@4102 27 cp -a $_pkg/dev $fs
pascal@4102 28 cp -a $_pkg/lib $fs
pascal@4102 29 cp -a $_pkg/usr/share $fs/usr
pascal@4102 30 }
pascal@4102 31
pascal@4102 32 # Post install/remove commands for Tazpkg.
pascal@4102 33 post_install()
pascal@4102 34 {
pascal@4102 35 chroot "$1/" depmod -a
pascal@4102 36 }
pascal@4102 37
pascal@4102 38 post_remove()
pascal@4102 39 {
pascal@4102 40 depmod -a
pascal@4102 41 }