wok-6.x annotate dahdi-linux/receipt @ rev 17730
dahdi-linux: use linux-module-headers & xz
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 06 08:37:28 2015 +0100 (2015-03-06) |
parents | db5b03f42dd9 |
children | 3dd7afb348a9 |
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@17730 | 15 BUILD_DEPENDS="linux-module-headers xz" |
pascal@4102 | 16 |
pascal@4102 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4102 | 18 compile_rules() |
pascal@4102 | 19 { |
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' |
pascal@17730 | 24 make KVERS="/usr/src/linux" install 2>&1 | grep -v 'slitaz/modules' && |
pascal@17730 | 25 find $DESTDIR/lib/modules -name '*.ko' -exec xz {} \; |
pascal@4102 | 26 } |
pascal@4102 | 27 |
pascal@4102 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4102 | 29 genpkg_rules() |
pascal@4102 | 30 { |
pankso@15855 | 31 EXTRAVERSION=_${kvers} |
pascal@13872 | 32 cp -a $install/* $fs |
pankso@15855 | 33 rm -rf $fs/usr/include |
pascal@4102 | 34 } |
pascal@4102 | 35 |
pascal@4102 | 36 # Post install/remove commands for Tazpkg. |
pascal@4102 | 37 post_install() |
pascal@4102 | 38 { |
pankso@15855 | 39 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@4102 | 40 } |
pascal@4102 | 41 |
pascal@4102 | 42 post_remove() |
pascal@4102 | 43 { |
pankso@15855 | 44 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@4102 | 45 } |