wok annotate zaptel/receipt @ rev 1719

Add nasm
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 18 11:27:13 2008 +0000 (2008-11-18)
parents 03a799424aaa
children 879fb025757a
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@1187 9 WANTED="bristuff"
pascal@1187 10 CONFIG_FILES="/etc/zaptel.conf"
pascal@1187 11
pascal@1187 12 # Extract VERSION from WANTED package source
pascal@1187 13 get_version()
pascal@1187 14 {
pascal@1187 15 eval $(grep ^ZAP_VER= $WOK/$WANTED/$WANTED-*/download.sh)
pascal@1327 16 VERSION=$WANTED-$ZAP_VER
pascal@1187 17 }
pascal@1187 18
pascal@1187 19 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1187 20 genpkg_rules()
pascal@1187 21 {
pascal@1327 22 get_version
pascal@1327 23 [ -d taz/$PACKAGE-$WANTED/fs ] && \
pascal@1327 24 mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
pascal@1187 25 kver=$(grep "kernel version" ../linux/linux-*/.config)
pascal@1187 26 kver=${kver##* }
pascal@1187 27 EXTRAVERSION=_$kver
pascal@1187 28 _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
pascal@1187 29 while read file; do
pascal@1187 30 dir=$(dirname $file)
pascal@1187 31 [ -d $fs$dir ] || mkdir -p $fs$dir
pascal@1187 32 eval cp -a "$_pkg$file" $fs$dir
pascal@1187 33 done < $_pkg/../$PACKAGE.files-list
pascal@1187 34 rm -f $fs/lib/modules/*/modules.*
pascal@1187 35 }
pascal@1187 36
pascal@1187 37 # Post install/remove commands for Tazpkg.
pascal@1187 38 post_install()
pascal@1187 39 {
pascal@1213 40 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
pascal@1213 41 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
pascal@1213 42 etc/zaptel.conf
pascal@1213 43 EOT
pascal@1455 44 depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
pascal@1187 45 }
pascal@1187 46
pascal@1187 47 post_remove()
pascal@1187 48 {
pascal@1187 49 depmod -a
pascal@1187 50 }
pascal@1187 51
pascal@1213 52 repack_cleanup()
pascal@1213 53 {
pascal@1213 54 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
pascal@1213 55 }