Commit 90050237 authored by Natanael Copa's avatar Natanael Copa

main/freeswitch: move sounds to /usr/share. subpkg for timezones

fixes #647
fixes #701
parent 08c7d9a7
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment