aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeswitch
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2012-03-17 19:04:24 +0000
committerJeff Bilyk <jbilyk@gmail.com>2012-03-17 19:04:24 +0000
commit73e89b8b0b2e88fef78d5cfb8e9ee5a46c90ebe2 (patch)
treec5a3568b8cb780cb071eef2c1339ad5a660e37d3 /main/freeswitch
parentf12d1fd4f67201554b6ae550d8800e6b979ef6f8 (diff)
downloadaports-73e89b8b0b2e88fef78d5cfb8e9ee5a46c90ebe2.tar.bz2
aports-73e89b8b0b2e88fef78d5cfb8e9ee5a46c90ebe2.tar.xz
main/freeswitch: move permissions changes from post-install script to package()
fixes #1053
Diffstat (limited to 'main/freeswitch')
-rw-r--r--main/freeswitch/APKBUILD5
-rwxr-xr-xmain/freeswitch/freeswitch.post-install5
2 files changed, 3 insertions, 7 deletions
diff --git a/main/freeswitch/APKBUILD b/main/freeswitch/APKBUILD
index 2d426c7fe6..eff7c9d631 100644
--- a/main/freeswitch/APKBUILD
+++ b/main/freeswitch/APKBUILD
@@ -4,7 +4,7 @@ pkgname=freeswitch
_snapshot=20120312
pkgver=1.0.7_p${_snapshot}
_commit=5e4a514531de2a1d8040c3d306a9e8de426de566
-pkgrel=0
+pkgrel=1
pkgdesc="A communications platform written in C from the ground up"
url="http://www.freeswitch.org"
arch="all"
@@ -14,7 +14,7 @@ makedepends="curl-dev unixodbc-dev zlib-dev openssl-dev ncurses-dev
autoconf automake libtool libpri-dev bash net-snmp-dev postgresql-dev
libiconv-dev subversion flac-dev libogg-dev libvorbis-dev
jpeg-dev sngtc_client-dev"
-install="$pkgname.pre-install $pkgname.post-install $pkgname.pre-upgrade"
+install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-dev $pkgname-flite $pkgname-timezones
$pkgname-sample-config:conf $pkgname-freetdm $pkgname-sangoma"
#hmm, saveas doesn't work with https...
@@ -106,6 +106,7 @@ package(){
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
+ chown -R freeswitch:freeswitch /var/*/freeswitch
}
diff --git a/main/freeswitch/freeswitch.post-install b/main/freeswitch/freeswitch.post-install
deleted file mode 100755
index fef23caef1..0000000000
--- a/main/freeswitch/freeswitch.post-install
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-chown -R freeswitch:freeswitch /var/*/freeswitch
-
-exit 0