wok rev 4111

Up asterisk (1.6.1.6) thanks pankso !
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 19 22:31:37 2009 +0200 (2009-09-19)
parents d5010a514900
children 3fc576c9937b
files asterisk-dev/receipt asterisk/receipt
line diff
     1.1 --- a/asterisk-dev/receipt	Sat Sep 19 22:16:35 2009 +0200
     1.2 +++ b/asterisk-dev/receipt	Sat Sep 19 22:31:37 2009 +0200
     1.3 @@ -1,30 +1,16 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="asterisk-dev"
     1.7 -VERSION="bristuff"
     1.8 +VERSION="1.6.1.6"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="Open Source PBX and telephony toolkit development files."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 -WEB_SITE="http://www.digium.com/"
    1.13 -WANTED="bristuff"
    1.14 -
    1.15 -# Extract VERSION from WANTED package source
    1.16 -get_version()
    1.17 -{
    1.18 -	eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh)
    1.19 -	VERSION=$WANTED-$AST_VER
    1.20 -}
    1.21 +WEB_SITE="http://www.asterisk.org/"
    1.22 +WANTED="asterisk"
    1.23  
    1.24  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.25  genpkg_rules()
    1.26  {
    1.27 -	get_version
    1.28 -	[ -d taz/$PACKAGE-$WANTED/fs ] && \
    1.29 -		mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
    1.30 -	_pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
    1.31 -	while read file; do
    1.32 -		dir=$(dirname $file)
    1.33 -		[ -d $fs$dir ] || mkdir -p $fs$dir
    1.34 -		eval cp -a "$_pkg$file" $fs$dir
    1.35 -	done < $_pkg/../$PACKAGE.files-list
    1.36 +	mkdir -p $fs/usr
    1.37 +	cp -a $_pkg/usr/include $fs/usr
    1.38  }
     2.1 --- a/asterisk/receipt	Sat Sep 19 22:16:35 2009 +0200
     2.2 +++ b/asterisk/receipt	Sat Sep 19 22:31:37 2009 +0200
     2.3 @@ -1,39 +1,48 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="asterisk"
     2.7 -VERSION="bristuff"
     2.8 +VERSION="1.6.1.6"
     2.9  CATEGORY="misc"
    2.10  SHORT_DESC="Open Source PBX and telephony toolkit."
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
    2.12 -WEB_SITE="http://www.digium.com/"
    2.13 -WANTED="bristuff"
    2.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.15 +WEB_SITE="http://www.asterisk.org/"
    2.16 +WGET_URL="http://downloads.asterisk.org/pub/telephony/asterisk/$TARBALL"
    2.17  DEPENDS="openssl ncurses zlib libogg libvorbis curl newt libusb alsa-lib \
    2.18  speex iksemel spandsp tiff radiusclient-ng nbs freetds libpostgresqlclient \
    2.19 -libmysqlclient libunixODBC mISDNuser popt zaptel"
    2.20 +libmysqlclient libunixODBC popt dahdi libpri"
    2.21 +BUILD_DEPENDS="libvorbis-dev curl-dev speex-dev alsa-lib-dev popt-dev \
    2.22 +libpri-dev spandsp-dev"
    2.23  CONFIG_FILES="/etc/asterisk"
    2.24  
    2.25 -# Extract VERSION from WANTED package source
    2.26 -get_version()
    2.27 +# Rules to configure and make the package.
    2.28 +#
    2.29 +# Graphical configuration: 'make menuconfig' or 'make gmenuconfig'
    2.30 +#
    2.31 +compile_rules()
    2.32  {
    2.33 -	eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh)
    2.34 -	VERSION=$WANTED-$AST_VER
    2.35 +	cd $src
    2.36 +	./configure \
    2.37 +		--prefix=/usr \
    2.38 +		--sysconfdir=/etc \
    2.39 +		--without-pwlib \
    2.40 +		$CONFIGURE_ARGS &&
    2.41 +	make &&
    2.42 +	make DESTDIR=$PWD/_pkg install &&
    2.43 +	make DESTDIR=$PWD/_pkg samples &&
    2.44 +	cd contrib/utils &&
    2.45 +	gcc rawplayer.c -o $src/_pkg/usr/bin/rawplayer
    2.46  }
    2.47  
    2.48  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.49  genpkg_rules()
    2.50  {
    2.51 -	get_version
    2.52 -	[ -d taz/$PACKAGE-$WANTED/fs ] && \
    2.53 -		mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
    2.54 -	_pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
    2.55 -	while read file; do
    2.56 -		dir=$(dirname $file)
    2.57 -		[ -d $fs$dir ] || mkdir -p $fs$dir
    2.58 -		eval cp -a "$_pkg$file" $fs$dir
    2.59 -	done < $_pkg/../$PACKAGE.files-list
    2.60 -	for i in $fs/etc/asterisk/*.sample; do
    2.61 -		mv $i ${i%.sample}
    2.62 -	done
    2.63 +	mkdir -p $fs/usr
    2.64 +	cp -a $_pkg/etc $fs
    2.65 +	cp -a $_pkg/var $fs
    2.66 +	cp -a $_pkg/usr/bin $fs/usr
    2.67 +	cp -a $_pkg/usr/lib $fs/usr
    2.68 +	cp -a $_pkg/usr/sbin $fs/usr
    2.69  	cp -a stuff/* $fs
    2.70  }
    2.71