aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeswitch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-03-18 12:22:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-03-18 12:26:20 +0000
commit3c7b47f9857842cbcd4ec8ee72e62b4826057392 (patch)
tree456c152b31d6d907beac8638c86c05c96f676764 /main/freeswitch
parentb88d121b69ecbb8f28a272a6c330255d4d2434df (diff)
downloadaports-3c7b47f9857842cbcd4ec8ee72e62b4826057392.tar.bz2
aports-3c7b47f9857842cbcd4ec8ee72e62b4826057392.tar.xz
main/freeswitch: cleanup previous fix
Diffstat (limited to 'main/freeswitch')
-rw-r--r--main/freeswitch/APKBUILD6
-rwxr-xr-xmain/freeswitch/freeswitch.initd3
2 files changed, 7 insertions, 2 deletions
diff --git a/main/freeswitch/APKBUILD b/main/freeswitch/APKBUILD
index eff7c9d631..356725187f 100644
--- a/main/freeswitch/APKBUILD
+++ b/main/freeswitch/APKBUILD
@@ -10,6 +10,8 @@ url="http://www.freeswitch.org"
arch="all"
license="GPL"
depends=""
+pkgusers="freeswitch"
+pkggroups="freeswitch"
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
@@ -106,7 +108,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
+ chown -R freeswitch:freeswitch "$pkgdir"/var/*/freeswitch
}
@@ -175,4 +177,4 @@ md5sums="8c0609c00039513a1a81eda685845b37 freeswitch-5e4a514531de2a1d8040c3d306
769eaa127d4dbae687dc4aa961a8cc70 0002-mod_lua-alpine-module-search-path.patch
94516a9473e2283ab201f38cb2756741 modules.conf
c608cca8ad773acebf201f581438c7e7 freeswitch.confd
-51e0c45ae07a675f6008f95b1ab8f18e freeswitch.initd"
+06d70089ce96abc47a01bf69511a978a freeswitch.initd"
diff --git a/main/freeswitch/freeswitch.initd b/main/freeswitch/freeswitch.initd
index c6ff357c6a..ee07de5374 100755
--- a/main/freeswitch/freeswitch.initd
+++ b/main/freeswitch/freeswitch.initd
@@ -22,6 +22,9 @@ start() {
[ -n "${FREESWITCH_OPTS}" ] && \
OPTS="${OPTS} ${FREESWITCH_OPTS}"
+ checkpath -q -d \
+ -o ${FREESWITCH_USER:freeswitch}:${FREESWITCH_GROUP:-freeswitch}\
+ -m 0770 /var/run/freeswitch
ebegin "Starting Freeswitch"
limits
start-stop-daemon --start --quiet --exec /usr/bin/freeswitch \