diff options
Diffstat (limited to 'main/asterisk/APKBUILD')
-rw-r--r-- | main/asterisk/APKBUILD | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/main/asterisk/APKBUILD b/main/asterisk/APKBUILD index d76ed9567..d416e778b 100644 --- a/main/asterisk/APKBUILD +++ b/main/asterisk/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Timo Teras <timo.teras@iki.fi> # Maintainer: Timo Teras <timo.teras@iki.fi> pkgname=asterisk -pkgver=1.6.0.20 -pkgrel=1 +pkgver=1.6.2.1 +pkgrel=0 pkgdesc="Asterisk: A Module Open Source PBX System" url="http://www.asterisk.org/" license="GPL" @@ -12,21 +12,20 @@ makedepends="autoconf automake libtool ncurses-dev popt-dev newt-dev zlib-dev freetds-dev openssl-dev lua-dev alsa-lib-dev" install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-install" subpackages="$pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-odbc - $pkgname-tds" + $pkgname-tds $pkgname-sample-config:sample" source="http://downloads.digium.com/pub/asterisk/releases/$pkgname-$pkgver.tar.gz 100-uclibc-daemon.patch 101-caps-uclibc.patch 102-gsm-pic.patch - 103-rundir.patch - 201-incomplete.patch - 301-libpri-autoconf.patch - 400-destroy-no-response-234131.patch + 400-bug-227.patch asterisk.initd asterisk.confd asterisk.logrotate" -build() { - cd "$srcdir/$pkgname-$pkgver" +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" for i in ../[1-9]*.patch; do msg "Apply $i" patch -p1 < $i || return 1 @@ -36,6 +35,10 @@ build() { sed -i -e 's/PBX_ICONV=1/PBX_ICONV=0/g' configure.ac ./bootstrap.sh +} + +build() { + cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ @@ -54,6 +57,10 @@ build() { rm menuselect.makeopts make menuselect.makeopts make -j1 || return 1 +} + +package() { + cd "$_builddir" make -j1 DESTDIR="$pkgdir" install install -d "$pkgdir"/var/run/asterisk @@ -91,14 +98,17 @@ tds() { _find_and_move '*_tds*' } -md5sums="649c905c897824cebcf9bc2cee1f9398 asterisk-1.6.0.20.tar.gz +sample() { + pkgdesc="Sample configuration files for asterisk" + cd "$_builddir" + make samples DESTDIR="$subpkgdir" +} + +md5sums="8fbc60f9d80e686c749ae95292e225d8 asterisk-1.6.2.1.tar.gz b00c9d98ce2ad445501248a197c6e436 100-uclibc-daemon.patch 6e1129e30c4fd2c25c86c81685a485a9 101-caps-uclibc.patch 97b39fd9777a2521d4f9f095482b7ac2 102-gsm-pic.patch -5008f51c737ec91f5047519bc9f25b85 103-rundir.patch -57825b74526187075ff7cb6816c55467 201-incomplete.patch -5771a5ab34b187dbfe8e23950b04213b 301-libpri-autoconf.patch -e35d40d688f6e4e4034c7aca8f955f46 400-destroy-no-response-234131.patch +79e9634b5054bceb3b8dc246654bb243 400-bug-227.patch 0ce3219e05f55af884a7dc6b99c2b276 asterisk.initd ed31d7ba37bcf8b0346dcf8593c395f0 asterisk.confd 3e65172275684373e1a25c8a11224411 asterisk.logrotate" |