aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/freeswitch/APKBUILD23
1 files changed, 18 insertions, 5 deletions
diff --git a/main/freeswitch/APKBUILD b/main/freeswitch/APKBUILD
index 5016faea47..a4a1cc0c6b 100644
--- a/main/freeswitch/APKBUILD
+++ b/main/freeswitch/APKBUILD
@@ -4,7 +4,7 @@ pkgname=freeswitch
pkgver=1.0.7_p20110602
_ver=${pkgver%_p*}
_snapshot=${pkgver#*_p}
-pkgrel=5
+pkgrel=6
pkgdesc="A communications platform written in C from the ground up"
url="http://www.freeswitch.org"
arch="all"
@@ -15,8 +15,8 @@ makedepends="curl-dev unixodbc-dev zlib-dev openssl-dev ncurses-dev
libiconv-dev subversion flac-dev libogg-dev libvorbis-dev
jpeg-dev"
install="$pkgname.pre-install $pkgname.post-install $pkgname.pre-upgrade"
-subpackages="$pkgname-dev $pkgname-flite $pkgname-sample-config:conf
- $pkgname-freetdm $pkgname-sangoma"
+subpackages="$pkgname-dev $pkgname-flite $pkgname-timezones
+ $pkgname-sample-config:conf $pkgname-freetdm $pkgname-sangoma"
source="saveas-http://latest.freeswitch.org/freeswitch-$_ver.tar.gz/freeswitch-$pkgver.tar.gz
freeswitch-mod_shout-textrels.patch
0001-mod_sofia-update-mod_sofia_globals.guess_ip-on-addre.patch
@@ -46,7 +46,9 @@ build() {
# by specifying it here we save our selves from some CPU cycles
export lt_cv_sys_max_cmd_len=8192
- sed -i -e 's#^dbdir="${prefix}/db"#dbdir="/var/lib/freeswitch"#' configure.in || return 1
+ sed -i -e 's#^dbdir="${prefix}/db"#dbdir="/var/lib/freeswitch"#' \
+ -e 's#^soundsdir=.*#soundsdir="${prefix}/share/freeswitch/sounds"#' \
+ configure.in || return 1
./bootstrap.sh
cp -f "$srcdir/modules.conf" modules.conf || return 1
@@ -79,7 +81,7 @@ package(){
mkdir -p "$pkgdir"/var/run/freeswitch
mkdir -p "$pkgdir"/var/lib/freeswitch
mkdir -p "$pkgdir"/var/log
- mkdir -p "$pkgdir"/usr/share/freeswitch
+ mkdir -p "$pkgdir"/usr/share/freeswitch/sounds
mv "$pkgdir"/usr/db "$pkgdir"/var/lib/freeswitch/
mv "$pkgdir"/usr/grammar "$pkgdir"/var/lib/freeswitch/
mv "$pkgdir"/usr/htdocs "$pkgdir"/usr/share/freeswitch/
@@ -127,9 +129,20 @@ sangoma() {
_mv_mod mod_sangoma_codec
}
+timezones() {
+ pkgdesc="Freeswitch timezone configuration"
+ arch="noarch"
+ install=
+ replaces="freeswitch-sample-config"
+ mkdir -p "$subpkgdir"/etc/freeswitch/autoload_configs
+ mv "$pkgdir"/etc/freeswitch/autoload_configs/timezones.conf.xml \
+ "$subpkgdir"/etc/freeswitch/autoload_configs
+}
+
conf() {
pkgdesc="Freeswitch sample configureation"
arch="noarch"
+ depends="freeswitch-timezones"
install=
mkdir -p "$subpkgdir"/etc/freeswitch
# move all configs except freeswitch.xml