wok-current rev 25573

updated asterisk and asterisk-dev (11.1.1 -> 20.2.1)
author Hans-G?nter Theisgen
date Sat May 13 16:27:48 2023 +0100 (19 months ago)
parents 82f370bad6b5
children 41845daa1e03
files asterisk-dev/receipt asterisk/receipt
line diff
     1.1 --- a/asterisk-dev/receipt	Sat May 13 13:34:41 2023 +0000
     1.2 +++ b/asterisk-dev/receipt	Sat May 13 16:27:48 2023 +0100
     1.3 @@ -1,17 +1,18 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="asterisk-dev"
     1.7 -VERSION="11.1.1"
     1.8 +VERSION="20.2.1"
     1.9  CATEGORY="development"
    1.10 -SHORT_DESC="Open Source PBX and telephony toolkit development files."
    1.11 +SHORT_DESC="Open Source PBX and telephony toolkit - development files."
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14  WEB_SITE="https://www.asterisk.org/"
    1.15 +
    1.16  WANTED="asterisk"
    1.17  
    1.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.19  genpkg_rules()
    1.20  {
    1.21  	mkdir -p $fs/usr
    1.22 -	cp -a $install/usr/include $fs/usr
    1.23 +	cp -a	$install/usr/include	$fs/usr
    1.24  }
     2.1 --- a/asterisk/receipt	Sat May 13 13:34:41 2023 +0000
     2.2 +++ b/asterisk/receipt	Sat May 13 16:27:48 2023 +0100
     2.3 @@ -1,31 +1,35 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="asterisk"
     2.7 -VERSION="11.1.1"
     2.8 +VERSION="20.2.1"
     2.9  CATEGORY="misc"
    2.10 +TAGS="telephony"
    2.11  SHORT_DESC="Open Source PBX and telephony toolkit."
    2.12  MAINTAINER="pascal.bellard@slitaz.org"
    2.13  LICENSE="GPL2"
    2.14 +WEB_SITE="https://www.asterisk.org/"
    2.15 +
    2.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.17  EXTRA_SOURCE_FILES="rfc3951.txt"
    2.18 -WEB_SITE="https://www.asterisk.org/"
    2.19  WGET_URL="http://downloads.asterisk.org/pub/telephony/asterisk/releases/$TARBALL"
    2.20 +
    2.21 +DEPENDS="alsa-lib attr bluez codec2 curl dahdi freetds iksemel jansson
    2.22 +	libcap libcomerr3 libedit libical libkrb5 libldap libmysqlclient
    2.23 +	libogg libpostgresqlclient libpri libsdl libsdl-image libssl
    2.24 +	libunixODBC libusb-compat libvorbis libxml2 lua nbs ncurses neon
    2.25 +	net-snmp newt openssl opus popt portaudio radiusclient-ng spandsp
    2.26 +	speex sqlite tiff util-linux-uuid zlib"
    2.27 +BUILD_DEPENDS="alsa-lib-dev autoconf automake bluez bluez-dev codec2-dev
    2.28 +	curl-dev dahdi-dev dahdi-linux dahdi-tools gmime gmime-dev 
    2.29 +	gtk+-dev iksemel iksemel-dev jack-audio-connection-kit-dev 
    2.30 +	jansson-dev libcap-dev libedit-dev libical-dev libpri-dev 
    2.31 +	libsdl-dev libsdl-image-dev libtool libvorbis-dev libxml2-dev 
    2.32 +	lua lua-dev mysql-dev nbs-dev ncurses-dev neon neon-dev net-snmp-dev 
    2.33 +	newt-dev openldap openldap-dev openssl-dev opus-dev popt-dev 
    2.34 +	portaudio-dev postgresql postgresql-dev radiusclient-ng 
    2.35 +	radiusclient-ng-dev speex-dev sqlite-dev unixODBC unixODBC-dev"
    2.36 +
    2.37  CONFIG_FILES="/etc/asterisk"
    2.38 -TAGS="telephony"
    2.39 -
    2.40 -DEPENDS="openssl ncurses zlib libogg libvorbis curl newt libusb-compat alsa-lib \
    2.41 -speex iksemel spandsp tiff radiusclient-ng nbs freetds libpostgresqlclient \
    2.42 -libmysqlclient libunixODBC popt dahdi libpri lua libcap attr net-snmp \
    2.43 -portaudio sqlite libkrb5 libcomerr3 libsdl libsdl-image libssl libxml2 bluez \
    2.44 -libldap libical neon util-linux-uuid opus codec2"
    2.45 -BUILD_DEPENDS="gtk+-dev libxml2-dev postgresql-dev libsdl-dev ncurses-dev \
    2.46 -gmime gmime-dev unixODBC-dev unixODBC openldap-dev openldap \
    2.47 -dahdi-linux dahdi-tools dahdi-dev \
    2.48 -newt-dev mysql-dev nbs-dev popt-dev neon-dev neon postgresql sqlite-dev \
    2.49 -openssl-dev lua-dev lua libpri-dev bluez-dev bluez portaudio-dev alsa-lib-dev \
    2.50 -libsdl-image-dev net-snmp iksemel libical-dev curl-dev libcap-dev iksemel-dev \
    2.51 -jack-audio-connection-kit-dev radiusclient-ng-dev radiusclient-ng \
    2.52 -libvorbis-dev speex-dev opus-dev codec2-dev autoconf automake libtool"
    2.53  
    2.54  # What is the latest version available today?
    2.55  current_version()
    2.56 @@ -54,33 +58,44 @@
    2.57  	busybox sed -i 's|lua5.1/||' pbx/pbx_lua.c
    2.58  	grep -rsl '^#define AST_PBX_MAX_STACK' * | xargs busybox sed -i \
    2.59  		's/define AST_PBX_MAX_STACK.*/define AST_PBX_MAX_STACK 1024/'
    2.60 -	while read url ; do
    2.61 +	while read url
    2.62 +	  do
    2.63  		[ -s $SOURCES_REPOSITORY/$(basename "$url") ] ||
    2.64  		    wget --no-check-certificate -P $SOURCES_REPOSITORY "$url"
    2.65 -	done <<EOT
    2.66 +	  done <<EOT
    2.67  http://www.ietf.org/rfc/rfc3951.txt                                            
    2.68 -https://github.com/meetecho/asterisk-opus/raw/master/asterisk_opus%2Bvp8.diff  
    2.69 -http://svn.code.sf.net/p/freetel/code/codec2/branches/0.5/asterisk-11/asterisk-11.8.1-codec2.patch                                                             
    2.70 -http://svn.code.sf.net/p/freetel/code/codec2/branches/0.5/asterisk-11/asterisk-11.8.1-opus-codec2.patch                                                        
    2.71  EOT
    2.72 +	# suitable for 11.1.2
    2.73 +#https://github.com/meetecho/asterisk-opus/raw/master/asterisk_opus+vp8.diff
    2.74 +	# suitable for 11.8.1
    2.75 +#http://svn.code.sf.net/p/freetel/code/codec2/branches/0.5/asterisk-11/asterisk-11.8.1-codec2.patch                                                             
    2.76 +#http://svn.code.sf.net/p/freetel/code/codec2/branches/0.5/asterisk-11/asterisk-11.8.1-opus-codec2.patch                                                        
    2.77 +
    2.78  	cp $SOURCES_REPOSITORY/rfc3951.txt codecs/ilbc ||
    2.79  	cp $stuff/rfc3951.txt codecs/ilbc
    2.80 -	[ -f codecs/ilbc/iLBC_define.h ] || ( cd codecs/ilbc &&
    2.81 -		awk -f $stuff/extract-cfile.awk rfc3951.txt > /dev/null )
    2.82 -	patch -p1 < $SOURCES_REPOSITORY/asterisk_opus%2Bvp8.diff                
    2.83 -	patch -p1 < $SOURCES_REPOSITORY/asterisk-11.8.1-opus-codec2.patch       
    2.84 -	mkdir -p $DESTDIR/usr/bin                                               
    2.85 +	[ -f codecs/ilbc/iLBC_define.h ] ||
    2.86 +	( cd codecs/ilbc && awk -f $stuff/extract-cfile.awk rfc3951.txt > /dev/null )
    2.87 +	# suitable for 11.1.2
    2.88 +#	patch -p1 < $SOURCES_REPOSITORY/asterisk_opus+vp8.diff
    2.89 +	# suitable for 11.8.1
    2.90 +#	patch -p1 < $SOURCES_REPOSITORY/asterisk-11.8.1-opus-codec2.patch       
    2.91 +
    2.92 +	mkdir -p $DESTDIR/usr/bin
    2.93 +	mkdir -p $DESTDIR/usr/include
    2.94 +
    2.95  	./bootstrap.sh                                                          
    2.96 -	./configure \
    2.97 -		--prefix=/usr \
    2.98 -		--sysconfdir=/etc \
    2.99 -		--without-pwlib \
   2.100 -		--with-dahdi=$WOK/dahdi/$(ls $WOK/dahdi/taz) \
   2.101 -		--with-tonezone \
   2.102 +	# 20.2.1 unrecognised:
   2.103 +	#	--without-pwlib
   2.104 +	./configure						\
   2.105 +		--prefix=/usr					\
   2.106 +		--sysconfdir=/etc				\
   2.107 +		--with-dahdi=$WOK/dahdi/$(ls $WOK/dahdi/taz)	\
   2.108 +		--with-tonezone					\
   2.109  		$CONFIGURE_ARGS &&
   2.110  	make -j 1 2>&1 | grep -v pjproject &&
   2.111  	make -j 1 DESTDIR=$DESTDIR install &&
   2.112  	make -j 1 DESTDIR=$DESTDIR samples &&
   2.113 +	cp -a	$src/include/asterisk	$DESTDIR/usr/include &&
   2.114  	cd contrib/utils &&
   2.115  	gcc rawplayer.c -o $DESTDIR/usr/bin/rawplayer
   2.116  }
   2.117 @@ -89,52 +104,67 @@
   2.118  genpkg_rules()
   2.119  {
   2.120  	mkdir -p $fs/usr
   2.121 -	cp -a $install/etc $fs
   2.122 -	cp -a $install/var $fs
   2.123 -	cp -a $install/usr/lib $fs/usr
   2.124 -	cp -a $install/usr/sbin $fs/usr
   2.125 -	cp -a $stuff/*/ $fs
   2.126 -	rm -f $fs/usr/lib/libasteriskssl.so
   2.127 -	ln -s libasteriskssl.so.1 $fs/usr/lib/libasteriskssl.so
   2.128 +
   2.129 +	cp -a $install/etc		$fs
   2.130 +	cp -a $install/var		$fs
   2.131 +	cp -a $install/usr/lib		$fs/usr
   2.132 +	cp -a $install/usr/sbin		$fs/usr
   2.133 +	cp -a $stuff/*/			$fs
   2.134 +	rm -f				$fs/usr/lib/libasteriskssl.so
   2.135 +	ln -s libasteriskssl.so.1	$fs/usr/lib/libasteriskssl.so
   2.136  }
   2.137  
   2.138  # Rules to configure package
   2.139  setup_rules()
   2.140  {
   2.141  	case "$2" in
   2.142 -	mysql_host)
   2.143 -		sed -i "s|^hostname=.*|hostname=$3|" "$1/etc/asterisk/cdr_mysql.conf"
   2.144 -		sed -i "s|^dbhost=.*|dbhost=$3|" "$1/etc/asterisk/res_mysql.conf"
   2.145 +	(mysql_host)
   2.146 +		sed -i "s|^hostname=.*|hostname=$3|" \
   2.147 +			"$1/etc/asterisk/cdr_mysql.conf"
   2.148 +		sed -i "s|^dbhost=.*|dbhost=$3|" \
   2.149 +			"$1/etc/asterisk/res_mysql.conf"
   2.150  		;;
   2.151 -	mysql_user)
   2.152 -		sed -i "s|^user=.*|user=$3|" "$1/etc/asterisk/cdr_mysql.conf"
   2.153 -		sed -i "s|^dbuser=.*|dbuser=$3|" "$1/etc/asterisk/res_mysql.conf"
   2.154 +	(mysql_user)
   2.155 +		sed -i "s|^user=.*|user=$3|" \
   2.156 +			"$1/etc/asterisk/cdr_mysql.conf"
   2.157 +		sed -i "s|^dbuser=.*|dbuser=$3|" \
   2.158 +			"$1/etc/asterisk/res_mysql.conf"
   2.159  		;;
   2.160 -	mysql_password)
   2.161 -		sed -i "s|^password=.*|password=$3|" "$1/etc/asterisk/cdr_mysql.conf"
   2.162 -		sed -i "s|^dbpass=.*|dbpass=$3|" "$1/etc/asterisk/res_mysql.conf"
   2.163 +	(mysql_password)
   2.164 +		sed -i "s|^password=.*|password=$3|" \
   2.165 +			"$1/etc/asterisk/cdr_mysql.conf"
   2.166 +		sed -i "s|^dbpass=.*|dbpass=$3|" \
   2.167 +			"$1/etc/asterisk/res_mysql.conf"
   2.168  		;;
   2.169 -	mysql_database)
   2.170 -		sed -i "s|^dbname=.*|dbname=$3|" "$1/etc/asterisk/res_mysql.conf" \
   2.171 -						 "$1/etc/asterisk/cdr_mysql.conf"
   2.172 +	(mysql_database)
   2.173 +		sed -i "s|^dbname=.*|dbname=$3|" \
   2.174 +			"$1/etc/asterisk/res_mysql.conf" \
   2.175 +			"$1/etc/asterisk/cdr_mysql.conf"
   2.176  		;;
   2.177 -	pgsql_host)
   2.178 -		sed -i "s|^hostname=.*|hostname=$3|" "$1/etc/asterisk/cdr_pgsql.conf"
   2.179 -		sed -i "s|^dbhost=.*|dbhost=$3|" "$1/etc/asterisk/res_pgsql.conf"
   2.180 +	(pgsql_host)
   2.181 +		sed -i "s|^hostname=.*|hostname=$3|" \
   2.182 +			"$1/etc/asterisk/cdr_pgsql.conf"
   2.183 +		sed -i "s|^dbhost=.*|dbhost=$3|" \
   2.184 +			"$1/etc/asterisk/res_pgsql.conf"
   2.185  		;;
   2.186 -	pgsql_user)
   2.187 -		sed -i "s|^user=.*|user=$3|" "$1/etc/asterisk/cdr_pgsql.conf"
   2.188 -		sed -i "s|^dbuser=.*|dbuser=$3|" "$1/etc/asterisk/res_pgsql.conf"
   2.189 +	(pgsql_user)
   2.190 +		sed -i "s|^user=.*|user=$3|" \
   2.191 +			"$1/etc/asterisk/cdr_pgsql.conf"
   2.192 +		sed -i "s|^dbuser=.*|dbuser=$3|" \
   2.193 +			"$1/etc/asterisk/res_pgsql.conf"
   2.194  		;;
   2.195 -	pgsql_password)
   2.196 -		sed -i "s|^password=.*|password=$3|" "$1/etc/asterisk/cdr_pgsql.conf"
   2.197 -		sed -i "s|^dbpass=.*|dbpass=$3|" "$1/etc/asterisk/res_pgsql.conf"
   2.198 +	(pgsql_password)
   2.199 +		sed -i "s|^password=.*|password=$3|" \
   2.200 +			"$1/etc/asterisk/cdr_pgsql.conf"
   2.201 +		sed -i "s|^dbpass=.*|dbpass=$3|" \
   2.202 +			"$1/etc/asterisk/res_pgsql.conf"
   2.203  		;;
   2.204 -	pgsql_database)
   2.205 -		sed -i "s|^dbname=.*|dbname=$3|" "$1/etc/asterisk/res_pgsql.conf" \
   2.206 -						 "$1/etc/asterisk/cdr_pgsql.conf"
   2.207 +	(pgsql_database)
   2.208 +		sed -i "s|^dbname=.*|dbname=$3|" \
   2.209 +			"$1/etc/asterisk/res_pgsql.conf" \
   2.210 +			"$1/etc/asterisk/cdr_pgsql.conf"
   2.211  		;;
   2.212 -	*)	cat <<EOT
   2.213 +	(*)	cat <<EOT
   2.214  mysql_host	hostname or ip of mysql server
   2.215  mysql_user	username to connect to mysql server
   2.216  mysql_password	password to connect to mysql server