aboutsummaryrefslogtreecommitdiffstats
path: root/testing/asterisk/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-01-26 15:09:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-01-26 15:12:01 +0000
commit8e5baaaeb3ce0775d6e205329010a6dedc198f6a (patch)
tree2a5bf54662a72d0b1331e8807c6ea6101a4d10cb /testing/asterisk/APKBUILD
parent11bf0c3d841c47e0c81e3107b9539f08ea38ee73 (diff)
downloadaports-8e5baaaeb3ce0775d6e205329010a6dedc198f6a.tar.bz2
aports-8e5baaaeb3ce0775d6e205329010a6dedc198f6a.tar.xz
main/asterisk: upgrade to 1.6.2.0 (from testing)
Diffstat (limited to 'testing/asterisk/APKBUILD')
-rw-r--r--testing/asterisk/APKBUILD114
1 files changed, 0 insertions, 114 deletions
diff --git a/testing/asterisk/APKBUILD b/testing/asterisk/APKBUILD
deleted file mode 100644
index d416e778b0..0000000000
--- a/testing/asterisk/APKBUILD
+++ /dev/null
@@ -1,114 +0,0 @@
-# Contributor: Timo Teras <timo.teras@iki.fi>
-# Maintainer: Timo Teras <timo.teras@iki.fi>
-pkgname=asterisk
-pkgver=1.6.2.1
-pkgrel=0
-pkgdesc="Asterisk: A Module Open Source PBX System"
-url="http://www.asterisk.org/"
-license="GPL"
-depends=
-makedepends="autoconf automake libtool ncurses-dev popt-dev newt-dev zlib-dev
- postgresql-dev unixodbc-dev dahdi-tools-dev libpri-dev tar
- 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-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
- 400-bug-227.patch
- asterisk.initd
- asterisk.confd
- asterisk.logrotate"
-
-_builddir="$srcdir/$pkgname-$pkgver"
-
-prepare() {
- cd "$_builddir"
- for i in ../[1-9]*.patch; do
- msg "Apply $i"
- patch -p1 < $i || return 1
- done
-
- sed -i -e 's:lua5.1/::' pbx/pbx_lua.c
- 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 \
- --infodir=/usr/share/info \
- --libdir=/usr/lib \
- --localstatedir=/var \
- --disable-xmldoc --with-gsm=internal \
- --without-iconv --with-popt --with-z --with-newt \
- --with-odbc --with-postgres --with-tds \
- --with-dahdi --with-pri --with-tonezone \
- --with-asound \
- --without-x11 \
- || return 1
-
- # and figure out which modules to 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
- install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
- install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
- install -m644 -D "$srcdir"/$pkgname.logrotate \
- "$pkgdir"/etc/logrotate.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=
- install=
- _find_and_move '*_pgsql*'
-}
-
-odbc() {
- depends=
- install=
- _find_and_move '*odbc*'
-}
-
-tds() {
- depends=
- install=
- _find_and_move '*_tds*'
-}
-
-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
-79e9634b5054bceb3b8dc246654bb243 400-bug-227.patch
-0ce3219e05f55af884a7dc6b99c2b276 asterisk.initd
-ed31d7ba37bcf8b0346dcf8593c395f0 asterisk.confd
-3e65172275684373e1a25c8a11224411 asterisk.logrotate"