wok-stable diff asterisk/receipt @ rev 4118

Remove bristuff
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 19 23:09:57 2009 +0200 (2009-09-19)
parents 7a436db659a4
children 4a4eb43a0c91
line diff
     1.1 --- a/asterisk/receipt	Sun Mar 15 22:17:07 2009 +0000
     1.2 +++ b/asterisk/receipt	Sat Sep 19 23:09:57 2009 +0200
     1.3 @@ -1,39 +1,48 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="asterisk"
     1.7 -VERSION="bristuff"
     1.8 +VERSION="1.6.1.6"
     1.9  CATEGORY="misc"
    1.10  SHORT_DESC="Open Source PBX and telephony toolkit."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 -WEB_SITE="http://www.digium.com/"
    1.13 -WANTED="bristuff"
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 +WEB_SITE="http://www.asterisk.org/"
    1.16 +WGET_URL="http://downloads.asterisk.org/pub/telephony/asterisk/$TARBALL"
    1.17  DEPENDS="openssl ncurses zlib libogg libvorbis curl newt libusb alsa-lib \
    1.18  speex iksemel spandsp tiff radiusclient-ng nbs freetds libpostgresqlclient \
    1.19 -libmysqlclient libunixODBC mISDNuser popt zaptel"
    1.20 +libmysqlclient libunixODBC popt dahdi libpri"
    1.21 +BUILD_DEPENDS="libvorbis-dev curl-dev speex-dev alsa-lib-dev popt-dev \
    1.22 +libpri-dev spandsp-dev"
    1.23  CONFIG_FILES="/etc/asterisk"
    1.24  
    1.25 -# Extract VERSION from WANTED package source
    1.26 -get_version()
    1.27 +# Rules to configure and make the package.
    1.28 +#
    1.29 +# Graphical configuration: 'make menuconfig' or 'make gmenuconfig'
    1.30 +#
    1.31 +compile_rules()
    1.32  {
    1.33 -	eval $(grep ^AST_VER= $WOK/$WANTED/$WANTED-*/download.sh)
    1.34 -	VERSION=$WANTED-$AST_VER
    1.35 +	cd $src
    1.36 +	./configure \
    1.37 +		--prefix=/usr \
    1.38 +		--sysconfdir=/etc \
    1.39 +		--without-pwlib \
    1.40 +		$CONFIGURE_ARGS &&
    1.41 +	make &&
    1.42 +	make DESTDIR=$PWD/_pkg install &&
    1.43 +	make DESTDIR=$PWD/_pkg samples &&
    1.44 +	cd contrib/utils &&
    1.45 +	gcc rawplayer.c -o $src/_pkg/usr/bin/rawplayer
    1.46  }
    1.47  
    1.48  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.49  genpkg_rules()
    1.50  {
    1.51 -	get_version
    1.52 -	[ -d taz/$PACKAGE-$WANTED/fs ] && \
    1.53 -		mv taz/$PACKAGE-$WANTED taz/$PACKAGE-$VERSION
    1.54 -	_pkg=$(cd $(dirname $src)/$WANTED-*/_pkg ; pwd)
    1.55 -	while read file; do
    1.56 -		dir=$(dirname $file)
    1.57 -		[ -d $fs$dir ] || mkdir -p $fs$dir
    1.58 -		eval cp -a "$_pkg$file" $fs$dir
    1.59 -	done < $_pkg/../$PACKAGE.files-list
    1.60 -	for i in $fs/etc/asterisk/*.sample; do
    1.61 -		mv $i ${i%.sample}
    1.62 -	done
    1.63 +	mkdir -p $fs/usr
    1.64 +	cp -a $_pkg/etc $fs
    1.65 +	cp -a $_pkg/var $fs
    1.66 +	cp -a $_pkg/usr/bin $fs/usr
    1.67 +	cp -a $_pkg/usr/lib $fs/usr
    1.68 +	cp -a $_pkg/usr/sbin $fs/usr
    1.69  	cp -a stuff/* $fs
    1.70  }
    1.71