wok-current view asterisk/receipt @ rev 1580

gparted: update SUGGESTED
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 16 06:26:05 2008 +0000 (2008-10-16)
parents 1e551bfbe671
children f00979b9a2ba
line source
1 # SliTaz package receipt.
3 PACKAGE="asterisk"
4 VERSION="bristuff"
5 CATEGORY="misc"
6 SHORT_DESC="Open Source PBX and telephony toolkit."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://www.digium.com/"
9 WANTED="bristuff"
10 DEPENDS="openssl ncurses zlib libogg libvorbis curl newt libusb alsa-lib \
11 speex iksemel spandsp tiff radiusclient-ng nbs freetds libpostgresqlclient \
12 libmysqlclient"
13 CONFIG_FILES="/etc/asterisk"
15 # Extract VERSION from WANTED package source
16 get_version()
17 {
18 eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh)
19 VERSION=$WANTED-$AST_VER
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 get_version
26 [ -d taz/$PACKAGE-$WANTED/fs ] && \
27 mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
28 _pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
29 while read file; do
30 dir=$(dirname $file)
31 [ -d $fs$dir ] || mkdir -p $fs$dir
32 eval cp -a "$_pkg$file" $fs$dir
33 done < $_pkg/../$PACKAGE.files-list
34 for i in $fs/etc/asterisk/*.sample; do
35 mv $i ${i%.sample}
36 done
37 }
39 # Pre and post install commands for Tazpkg.
40 post_install()
41 {
42 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
43 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
44 $(cd $1/ ; find etc/asterisk -type f)
45 EOT
46 }
48 repack_cleanup()
49 {
50 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
51 }