Skip to content
Snippets Groups Projects
Commit 56ec02d5 authored by Natanael Copa's avatar Natanael Copa
Browse files

extra/asterisk: added depend() to init.d script

This is needed to make sure asterisk is started after network.
Funny things like missing .ctl files might happen otherwise.

This hsould fix #38
parent 31109f21
No related branches found
No related tags found
No related merge requests found
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
# Maintainer: Timo Teras <timo.teras@iki.fi> # Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=asterisk pkgname=asterisk
pkgver=1.6.0.9 pkgver=1.6.0.9
pkgrel=2 pkgrel=3
pkgdesc="Asterisk: A Module Open Source PBX System" pkgdesc="Asterisk: A Module Open Source PBX System"
url="http://www.asterisk.org/" url="http://www.asterisk.org/"
license="GPL" 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 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" freetds-dev"
install="$pkgname.pre-install $pkgname.post-install" install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-odbc subpackages="$pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-odbc
...@@ -67,19 +67,19 @@ _find_and_move() { ...@@ -67,19 +67,19 @@ _find_and_move() {
} }
pgsql() { pgsql() {
depends="uclibc asterisk libpq zlib" depends=
install= install=
_find_and_move '*_pgsql*' _find_and_move '*_pgsql*'
} }
odbc() { odbc() {
depends="uclibc asterisk unixodbc" depends=
install= install=
_find_and_move '*odbc*' _find_and_move '*odbc*'
} }
tds() { tds() {
depends="uclibc asterisk freetds" depends=
install= install=
_find_and_move '*_tds*' _find_and_move '*_tds*'
} }
...@@ -91,5 +91,5 @@ b00c9d98ce2ad445501248a197c6e436 100-uclibc-daemon.patch ...@@ -91,5 +91,5 @@ b00c9d98ce2ad445501248a197c6e436 100-uclibc-daemon.patch
5008f51c737ec91f5047519bc9f25b85 103-rundir.patch 5008f51c737ec91f5047519bc9f25b85 103-rundir.patch
b4a97cb1ec3cc3f71a10ce8c067ab430 asterisk.pre-install b4a97cb1ec3cc3f71a10ce8c067ab430 asterisk.pre-install
62ecffc90b6714b85f377d1fac73c58b asterisk.post-install 62ecffc90b6714b85f377d1fac73c58b asterisk.post-install
9748fc0fb3cf43b18a68584bdc20cb6c asterisk.initd c618b7fdf4a9edf4cde6d8ccd1e32ee6 asterisk.initd
ed31d7ba37bcf8b0346dcf8593c395f0 asterisk.confd" ed31d7ba37bcf8b0346dcf8593c395f0 asterisk.confd"
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
opts="${opts} forcestop reload" opts="${opts} forcestop reload"
depend() {
need net
use nscd dns zaptel mysql postgresql slapd capi
}
is_running() { is_running() {
if [ -z "$(pidof asterisk)" ]; then if [ -z "$(pidof asterisk)" ]; then
return 1 return 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment