wok annotate asterisk/receipt @ rev 1624
acpid: add power savings scripts
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Thu Oct 23 20:07:24 2008 +0000 (2008-10-23) |
parents | 1e551bfbe671 |
children | f00979b9a2ba |
rev | line source |
---|---|
pascal@1187 | 1 # SliTaz package receipt. |
pascal@1187 | 2 |
pascal@1187 | 3 PACKAGE="asterisk" |
pascal@1327 | 4 VERSION="bristuff" |
pascal@1423 | 5 CATEGORY="misc" |
pascal@1187 | 6 SHORT_DESC="Open Source PBX and telephony toolkit." |
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 DEPENDS="openssl ncurses zlib libogg libvorbis curl newt libusb alsa-lib \ |
pascal@1187 | 11 speex iksemel spandsp tiff radiusclient-ng nbs freetds libpostgresqlclient \ |
pascal@1187 | 12 libmysqlclient" |
pascal@1187 | 13 CONFIG_FILES="/etc/asterisk" |
pascal@1187 | 14 |
pascal@1187 | 15 # Extract VERSION from WANTED package source |
pascal@1187 | 16 get_version() |
pascal@1187 | 17 { |
pascal@1187 | 18 eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh) |
pascal@1327 | 19 VERSION=$WANTED-$AST_VER |
pascal@1187 | 20 } |
pascal@1187 | 21 |
pascal@1187 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1187 | 23 genpkg_rules() |
pascal@1187 | 24 { |
pascal@1327 | 25 get_version |
pascal@1327 | 26 [ -d taz/$PACKAGE-$WANTED/fs ] && \ |
pascal@1327 | 27 mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION |
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 for i in $fs/etc/asterisk/*.sample; do |
pascal@1187 | 35 mv $i ${i%.sample} |
pascal@1187 | 36 done |
pascal@1187 | 37 } |
pascal@1213 | 38 |
pascal@1213 | 39 # Pre and post install commands for Tazpkg. |
pascal@1213 | 40 post_install() |
pascal@1213 | 41 { |
pascal@1213 | 42 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ |
pascal@1213 | 43 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT |
pascal@1213 | 44 $(cd $1/ ; find etc/asterisk -type f) |
pascal@1213 | 45 EOT |
pascal@1213 | 46 } |
pascal@1213 | 47 |
pascal@1213 | 48 repack_cleanup() |
pascal@1213 | 49 { |
pascal@1213 | 50 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) |
pascal@1213 | 51 } |