summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorMichael Mason <ms13sp@gmail.com>2009-03-12 19:28:17 +0000
committerMichael Mason <ms13sp@gmail.com>2009-03-12 19:28:17 +0000
commit7debce72a3c8290992257487cf3e19078a453a6c (patch)
treea73a3a8ffcad479050ceb9e4ad6f7a437ca0dd6f /testing
parentec988d15796ca0758be2864e71b66da1d6dd6fc2 (diff)
parentf7460473e0f62576af952f986ebf72e5064c218f (diff)
downloadaports-7debce72a3c8290992257487cf3e19078a453a6c.tar.bz2
aports-7debce72a3c8290992257487cf3e19078a453a6c.tar.xz
Merge branch 'master' of git://dev.alpinelinux.org/aports
Diffstat (limited to 'testing')
-rw-r--r--testing/asterisk/APKBUILD31
1 files changed, 28 insertions, 3 deletions
diff --git a/testing/asterisk/APKBUILD b/testing/asterisk/APKBUILD
index 736004ab..3d6bbac6 100644
--- a/testing/asterisk/APKBUILD
+++ b/testing/asterisk/APKBUILD
@@ -7,9 +7,10 @@ pkgdesc="Asterisk: A Module Open Source PBX System"
url="http://www.asterisk.org/"
license="GPL"
depends="ncurses popt zlib newt dahdi-linux dahdi-tools libltdl"
-makedepends="autoconf automake libtool ncurses-dev popt-dev newt-dev zlib-dev postgresql-dev unixodbc-dev dahdi-tools-dev libpri-dev"
+makedepends="autoconf automake libtool ncurses-dev popt-dev newt-dev zlib-dev
+ postgresql-dev unixodbc-dev dahdi-tools-dev libpri-dev g++"
install="$pkgname.pre-install $pkgname.post-install"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-odbc"
source="http://downloads.digium.com/pub/asterisk/releases/$pkgname-$pkgver.tar.gz
asterisk-01-1.6.0-gsm-pic.patch
asterisk-02-1.6.0-uclibc.patch
@@ -41,7 +42,8 @@ build() {
--disable-xmldoc --with-gsm=internal \
--without-iconv --with-popt --with-z --with-newt \
--with-odbc --with-postgres \
- --with-dahdi --with-pri --with-tonezone
+ --with-dahdi --with-pri --with-tonezone \
+ || return 1
# and figure out which modules to build
rm menuselect.makeopts
@@ -53,6 +55,29 @@ build() {
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
+_find_and_move() {
+ local pattern="$1"
+ cd "$pkgdir" || return 1
+ find -name "$pattern" -type f | while read f; do
+ local dest="$subpkgdir/${f%/*}"
+ mkdir -p "$dest"
+ mv "$f" "$dest"
+ done
+}
+
+pgsql() {
+ depends="uclibc asterisk libpq zlib"
+ install=
+ _find_and_move '*_pgsql*'
+}
+
+odbc() {
+ depends="uclibc asterisk unixodbc"
+ install=
+ _find_and_move '*odbc*'
+}
+
+
md5sums="29f7285b673d52b49d91c8e797acbbb0 asterisk-1.6.1-rc1.tar.gz
97b39fd9777a2521d4f9f095482b7ac2 asterisk-01-1.6.0-gsm-pic.patch
53b0b2a1527972722a50c8c5b560e63e asterisk-02-1.6.0-uclibc.patch