wok-stable diff asterisk/receipt @ rev 1187
Add bristuff
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 04 13:34:35 2008 +0000 (2008-08-04) |
parents | |
children | b4764dbfcef8 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/asterisk/receipt Mon Aug 04 13:34:35 2008 +0000 1.3 @@ -0,0 +1,39 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="asterisk" 1.7 +VERSION= 1.8 +CATEGORY="system" 1.9 +SHORT_DESC="Open Source PBX and telephony toolkit." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://www.digium.com/" 1.12 +WANTED="bristuff" 1.13 +DEPENDS="openssl ncurses zlib libogg libvorbis curl newt libusb alsa-lib \ 1.14 +speex iksemel spandsp tiff radiusclient-ng nbs freetds libpostgresqlclient \ 1.15 +libmysqlclient" 1.16 +CONFIG_FILES="/etc/asterisk" 1.17 + 1.18 +# Extract VERSION from WANTED package source 1.19 +get_version() 1.20 +{ 1.21 + eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) 1.22 + VERSION=$AST_VER 1.23 +} 1.24 + 1.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.26 +genpkg_rules() 1.27 +{ 1.28 + if [ -d taz/$PACKAGE-/fs ]; then 1.29 + get_version 1.30 + sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" receipt 1.31 + mv taz/$PACKAGE- taz/$PACKAGE-$VERSION 1.32 + fi 1.33 + _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd) 1.34 + while read file; do 1.35 + dir=$(dirname $file) 1.36 + [ -d $fs$dir ] || mkdir -p $fs$dir 1.37 + eval cp -a "$_pkg$file" $fs$dir 1.38 + done < $_pkg/../$PACKAGE.files-list 1.39 + for i in $fs/etc/asterisk/*.sample; do 1.40 + mv $i ${i%.sample} 1.41 + done 1.42 +}