wok-current annotate dahdi-linux/receipt @ rev 15855

New kernel config and huge receipt clean up
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 29 09:56:07 2014 +0100 (2014-01-29)
parents 08901e2b9d77
children c7e96859edc3
rev   line source
pascal@4102 1 # SliTaz package receipt.
pascal@4102 2
pascal@4102 3 PACKAGE="dahdi-linux"
pascal@12858 4 VERSION="2.6.1"
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@15059 8 LICENSE="GPL2"
pascal@4102 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4102 10 WEB_SITE="http://www.asterisk.org/"
pascal@4102 11 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/releases/$TARBALL"
pascal@13872 12 #PROVIDE="linux-misdn"
pascal@13872 13
gokhlayeh@8679 14 DEPENDS="linux udev"
pascal@4102 15
pascal@4102 16 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4102 17 compile_rules()
pascal@4102 18 {
pascal@4102 19 cd $src
pascal@12858 20 sed -i 's|/sbin/depmod|echo &|' Makefile
pascal@5063 21 sed -i 's/tar -xof/tar -xf/' drivers/dahdi/firmware/Makefile
pascal@8991 22 find -type f | xargs sed -i -e 's/DECLARE_MUTEX/DEFINE_SEMAPHORE/g' \
pascal@8992 23 -e 's/init_MUTEX\([^)]*\)/sema_init\1, 1/g'
pankso@15855 24 [ ! -d $WOK/linux/taz ] && cook linux
pascal@15059 25 make KVERS=$kvers KSRC=$WOK/linux/source/$(ls $WOK/linux/taz) \
pascal@15059 26 install 2>&1 | grep -v 'slitaz/modules'
pascal@4102 27 }
pascal@4102 28
pascal@4102 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4102 30 genpkg_rules()
pascal@4102 31 {
pankso@15855 32 EXTRAVERSION=_${kvers}
pascal@13872 33 cp -a $install/* $fs
pankso@15855 34 rm -rf $fs/usr/include
pascal@4102 35 }
pascal@4102 36
pascal@4102 37 # Post install/remove commands for Tazpkg.
pascal@4102 38 post_install()
pascal@4102 39 {
pankso@15855 40 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@4102 41 }
pascal@4102 42
pascal@4102 43 post_remove()
pascal@4102 44 {
pankso@15855 45 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@4102 46 }