diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-01-23 13:37:10 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-01-23 13:37:10 +0200 |
commit | dfb8a3618ae18157666d1c7e5ba194e3b30a670c (patch) | |
tree | 798c25ce5751c301bcad1aa6f2ab66bcfc41d0aa /main/asterisk/APKBUILD | |
parent | 9e97a17aee3dde6da7a78ab85b5f945a494360b7 (diff) | |
download | aports-dfb8a3618ae18157666d1c7e5ba194e3b30a670c.tar.bz2 aports-dfb8a3618ae18157666d1c7e5ba194e3b30a670c.tar.xz |
main/asterisk: upgrade to 11.2.1
Regression fixes from upstream. Rebase uclibc daemon patch,
and modify APKBUILD to use patches for the minor releases.
Diffstat (limited to 'main/asterisk/APKBUILD')
-rw-r--r-- | main/asterisk/APKBUILD | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/main/asterisk/APKBUILD b/main/asterisk/APKBUILD index 3243d0fa75..799a54e7b7 100644 --- a/main/asterisk/APKBUILD +++ b/main/asterisk/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Timo Teras <timo.teras@iki.fi> # Maintainer: Timo Teras <timo.teras@iki.fi> pkgname=asterisk -pkgver=11.2.0 +pkgver=11.2.1 pkgrel=0 pkgdesc="Asterisk: A Module Open Source PBX System" pkgusers="asterisk" @@ -19,7 +19,18 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-odbc $pkgname-tds $pkgname-fax $pkgname-sample-config:sample $pkgname-sounds-moh:sound_moh $pkgname-sounds-en:sound_en $pkgname-mobile" -source="http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${pkgver/_/-}.tar.gz + +_download="http://downloads.asterisk.org/pub/telephony/asterisk/releases" +_z=${pkgver##*.} +_xy=${pkgver%.$_z} +_patches="" +while [ $_z -gt 0 ]; do + _patches="$_download/asterisk-$_xy.$_z-patch.gz $_patches" + _z=$((_z-1)) +done + +source="$_download/asterisk-$_xy.0.tar.gz + $_patches 100-uclibc-daemon.patch 101-caps-uclibc.patch ASTERISK-18995.patch @@ -33,10 +44,14 @@ source="http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-$ _builddir="$srcdir/$pkgname-${pkgver/_/-}" prepare() { + cd "$srcdir" + mv "$pkgname-$_xy.0" "$pkgname-${pkgver/_/-}" + cd "$_builddir" for i in $source; do case $i in *.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;; + *-patch.gz) msg "${i##*/}"; gunzip < "$srcdir"/${i##*/} | patch -p0 || return 1;; esac done @@ -183,7 +198,8 @@ sound_en() { } md5sums="3d3da6016e3b238cd7ea3bf0df51403d asterisk-11.2.0.tar.gz -38c46521ad8a1c06dd79e481cc50c82c 100-uclibc-daemon.patch +ba86725f31af9e518ddafbb659a3a647 asterisk-11.2.1-patch.gz +837fc3bc835699462a8d2a7a16b9b6a3 100-uclibc-daemon.patch 6e1129e30c4fd2c25c86c81685a485a9 101-caps-uclibc.patch bc6713f5434e07b79d3afdd155461d72 ASTERISK-18995.patch 146befabe95798a67c58d8ac00d397a6 ASTERISK-19109.patch |