wok-6.x annotate zaptel/receipt @ rev 3215
fix: mscore depends
author | Allan Pinto <allan316@gmail.com> |
---|---|
date | Thu May 28 18:04:28 2009 +0000 (2009-05-28) |
parents | f306d126580e |
children |
rev | line source |
---|---|
pascal@1187 | 1 # SliTaz package receipt. |
pascal@1187 | 2 |
pascal@1187 | 3 PACKAGE="zaptel" |
pascal@1327 | 4 VERSION="bristuff" |
pascal@1423 | 5 CATEGORY="misc" |
pascal@1187 | 6 SHORT_DESC="Zapata Telephony Interface Driver." |
pascal@1187 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1187 | 8 WEB_SITE="http://www.digium.com/" |
pascal@2926 | 9 DEPENDS="libusb newt linux" |
pascal@1187 | 10 WANTED="bristuff" |
pascal@1187 | 11 CONFIG_FILES="/etc/zaptel.conf" |
pascal@1187 | 12 |
pascal@1187 | 13 # Extract VERSION from WANTED package source |
pascal@1187 | 14 get_version() |
pascal@1187 | 15 { |
pascal@1187 | 16 eval $(grep ^ZAP_VER= $WOK/$WANTED/$WANTED-*/download.sh) |
pascal@1327 | 17 VERSION=$WANTED-$ZAP_VER |
pascal@1187 | 18 } |
pascal@1187 | 19 |
pascal@1187 | 20 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1187 | 21 genpkg_rules() |
pascal@1187 | 22 { |
pascal@1780 | 23 mkdir -p $fs/etc/udev/rules.d |
pascal@1327 | 24 get_version |
pascal@1327 | 25 [ -d taz/$PACKAGE-$WANTED/fs ] && \ |
pascal@1327 | 26 mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION |
pascal@2062 | 27 kver=$(grep "kernel version" ../linux/$(ls ../linux/taz)/.config) |
pascal@1187 | 28 kver=${kver##* } |
pascal@1187 | 29 EXTRAVERSION=_$kver |
pascal@1187 | 30 _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) |
pascal@1187 | 31 while read file; do |
pascal@1187 | 32 dir=$(dirname $file) |
pascal@1187 | 33 [ -d $fs$dir ] || mkdir -p $fs$dir |
pascal@1187 | 34 eval cp -a "$_pkg$file" $fs$dir |
pascal@1187 | 35 done < $_pkg/../$PACKAGE.files-list |
pascal@1187 | 36 rm -f $fs/lib/modules/*/modules.* |
pascal@1780 | 37 src=$(dirname $_pkg) |
pascal@1780 | 38 cp $src/zaptel/build_tools/genudevrules $fs |
pascal@1780 | 39 sed -i 's/^ver/ver=99 # ver/' $fs/genudevrules |
pascal@1780 | 40 $fs/genudevrules | sed 's/asterisk/root/g' > $fs/etc/udev/rules.d/zaptel.rules |
pascal@1780 | 41 rm -f $fs/genudevrules |
pascal@1780 | 42 |
pascal@1187 | 43 } |
pascal@1187 | 44 |
pascal@1187 | 45 # Post install/remove commands for Tazpkg. |
pascal@1187 | 46 post_install() |
pascal@1187 | 47 { |
pascal@2926 | 48 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@3175 | 49 tazpkg reconfigure udev --root=$1 |
pascal@1187 | 50 } |
pascal@1187 | 51 |
pascal@1187 | 52 post_remove() |
pascal@1187 | 53 { |
pascal@1187 | 54 depmod -a |
pascal@1187 | 55 } |