aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeswitch/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2010-05-08 10:52:54 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2010-05-08 10:52:54 +0000
commitd11f31e81a96681f8b74c6bb8d6dfe43a62f1147 (patch)
tree5584de5036910e0896327d4514d72cf8cc445924 /main/freeswitch/APKBUILD
parent9f050562e98e9355710fa2aa173dae037793fb37 (diff)
downloadaports-d11f31e81a96681f8b74c6bb8d6dfe43a62f1147.tar.bz2
aports-d11f31e81a96681f8b74c6bb8d6dfe43a62f1147.tar.xz
main/freeswitch: changed locations to partially support FHS
Diffstat (limited to 'main/freeswitch/APKBUILD')
-rw-r--r--main/freeswitch/APKBUILD40
1 files changed, 19 insertions, 21 deletions
diff --git a/main/freeswitch/APKBUILD b/main/freeswitch/APKBUILD
index 8280a8489f..27081c2e5c 100644
--- a/main/freeswitch/APKBUILD
+++ b/main/freeswitch/APKBUILD
@@ -1,15 +1,15 @@
# Contributor: Michael Mason <ms13sp@gmail.com>
pkgname=freeswitch
pkgver=1.0.6
-pkgrel=4
+pkgrel=5
pkgdesc="A communications platform written in C from the ground up"
url="http://www.freeswitch.org"
license="GPL"
depends=""
makedepends="curl-dev unixodbc-dev zlib-dev openssl-dev
autoconf automake libtool"
-install=
-subpackages="$pkgname-dev"
+install="$pkgname.pre-install $pkgname.post-install"
+subpackages="$pkgname-dev $pkgname-sounds $pkgname-moh"
source="http://files.freeswitch.org/freeswitch-$pkgver.tar.gz
modules.conf
freeswitch.confd
@@ -29,28 +29,26 @@ build() {
./configure --prefix=/usr \
--sysconfdir=/etc/freeswitch \
--with-modinstdir=/usr/lib/freeswitch \
+ --with-rundir=/var/run/freeswitch \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- # check how/when parallel builds are fixed here:
- # http://jira.freeswitch.org/browse/FSBUILD-6
-
- # build the libs and prerequisites in parallel first
- make libs/apr/libapr-1.la \
- libs/apr-util/libaprutil-1.la \
- libs/speex/libspeex/libspeexdsp.la \
- libs/sqlite/libsqlite3.la \
- libs/pcre/libpcre.la \
- libs/srtp/libsrtp.la \
- src/include/switch_version.h
-
- # then the rest should build in parallel too
- make || return 1
+ make all || return 1
}
package(){
cd "$srcdir/$pkgname-$pkgver"
make -j1 DESTDIR="$pkgdir" install
- mkdir "$pkgdir"/var/run/freeswitch
+ # we need to do some moving/cleanup to allow some... kind of FHS
+ mkdir -p "$pkgdir"/var/run/freeswitch
+ mkdir -p "$pkgdir"/var/lib/freeswitch
+ mkdir -p "$pkgdir"/var/log
+ mkdir -p "$pkgdir"/usr/share/freeswitch
+ mv "$pkgdir"/usr/db "$pkgdir"/var/lib/freeswitch/
+ mv "$pkgdir"/usr/grammar "$pkgdir"/var/lib/freeswitch/
+ mv "$pkgdir"/usr/htdocs "$pkgdir"/usr/share/freeswitch/
+ mv "$pkgdir"/usr/recordings "$pkgdir"/var/lib/freeswitch/
+ mv "$pkgdir"/usr/scripts "$pkgdir"/usr/share/freeswitch/
+ mv "$pkgdir"/usr/log "$pkgdir"/var/log/freeswitch
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
@@ -58,6 +56,6 @@ package(){
md5sums="388effee587887a81fe7f411b7350590 freeswitch-1.0.6.tar.gz
c05f2356be159e99b3845f5260a33599 modules.conf
c608cca8ad773acebf201f581438c7e7 freeswitch.confd
-dd3a6535c54fc6ed8399d6bb57d88369 freeswitch.initd
-697f8069eb8eaa158fa6c063d0e5fed7 freeswitch.post-install
-661e2dff4022522b95c875f2f88aa66a freeswitch.pre-install"
+a15f739b6f4f2c1685ab9f8831d30ca6 freeswitch.initd
+107c52398ff88275006b8223ee0b4907 freeswitch.post-install
+25945ad43b7dd988f37bf6f2603e22be freeswitch.pre-install"