diff --git a/extra/asterisk/APKBUILD b/extra/asterisk/APKBUILD index 2e0f680c92e5c05339084b38c70d461907b31411..bdc8dd5fed22f08167598575a3c29ddd57a90c09 100644 --- a/extra/asterisk/APKBUILD +++ b/extra/asterisk/APKBUILD @@ -2,13 +2,13 @@ # Maintainer: Timo Teras <timo.teras@iki.fi> pkgname=asterisk pkgver=1.6.0.9 -pkgrel=2 +pkgrel=3 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 libpri freetds" +depends="dahdi-linux" makedepends="autoconf automake libtool ncurses-dev popt-dev newt-dev zlib-dev - postgresql-dev unixodbc-dev dahdi-tools-dev libpri-dev g++ tar + postgresql-dev unixodbc-dev dahdi-tools-dev libpri-dev tar freetds-dev" install="$pkgname.pre-install $pkgname.post-install" subpackages="$pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-odbc @@ -67,19 +67,19 @@ _find_and_move() { } pgsql() { - depends="uclibc asterisk libpq zlib" + depends= install= _find_and_move '*_pgsql*' } odbc() { - depends="uclibc asterisk unixodbc" + depends= install= _find_and_move '*odbc*' } tds() { - depends="uclibc asterisk freetds" + depends= install= _find_and_move '*_tds*' } @@ -91,5 +91,5 @@ b00c9d98ce2ad445501248a197c6e436 100-uclibc-daemon.patch 5008f51c737ec91f5047519bc9f25b85 103-rundir.patch b4a97cb1ec3cc3f71a10ce8c067ab430 asterisk.pre-install 62ecffc90b6714b85f377d1fac73c58b asterisk.post-install -9748fc0fb3cf43b18a68584bdc20cb6c asterisk.initd +c618b7fdf4a9edf4cde6d8ccd1e32ee6 asterisk.initd ed31d7ba37bcf8b0346dcf8593c395f0 asterisk.confd" diff --git a/extra/asterisk/asterisk.initd b/extra/asterisk/asterisk.initd index cd5ee0054050de1ad245f9888bda344bf8b76e51..864a96b3cf6dedf7d1f74db2ba6f75c0bbfc004b 100644 --- a/extra/asterisk/asterisk.initd +++ b/extra/asterisk/asterisk.initd @@ -2,6 +2,11 @@ opts="${opts} forcestop reload" +depend() { + need net + use nscd dns zaptel mysql postgresql slapd capi +} + is_running() { if [ -z "$(pidof asterisk)" ]; then return 1