aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/zoneminder/APKBUILD5
-rw-r--r--main/zoneminder/zoneminder.initd16
2 files changed, 8 insertions, 13 deletions
diff --git a/main/zoneminder/APKBUILD b/main/zoneminder/APKBUILD
index 51667c12e6..d615d582e8 100644
--- a/main/zoneminder/APKBUILD
+++ b/main/zoneminder/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=zoneminder
pkgver=1.27.0
-pkgrel=8
+pkgrel=9
pkgdesc="Video camera surveillance system"
url="http://www.zoneminder.com/"
arch="all"
@@ -67,8 +67,7 @@ package() {
ln -sf /var/lib/zoneminder/$dir \
"$pkgdir"/usr/share/webapps/zoneminder/htdocs/$dir || return 1
done
- install -m 755 -d "$pkgdir"/var/log/$pkgname \
- "$pkgdir"/var/run/$pkgname
+ install -m 755 -d "$pkgdir"/var/log/$pkgname
# create symlinks from webapps to default http location
mkdir -p "$pkgdir"/var/www/localhost/htdocs \
diff --git a/main/zoneminder/zoneminder.initd b/main/zoneminder/zoneminder.initd
index bfb32318dc..0cecd48010 100644
--- a/main/zoneminder/zoneminder.initd
+++ b/main/zoneminder/zoneminder.initd
@@ -5,7 +5,7 @@
name=zoneminder
command=/usr/bin/zmpkg.pl
-extra_commands="setup perms"
+extra_commands="setup"
depend() {
after mysql
@@ -16,7 +16,7 @@ start() {
if status > /dev/null; then
ewarn "$name already started"
else
- mkrundir
+ prepare
$command start
fi
eend $?
@@ -46,15 +46,11 @@ setup() {
eend $?
}
-perms() {
- . /etc/zm.conf
- ebegin "Setting correct permissions"
- chown -R $ZM_WEB_USER:$ZM_WEB_GROUP \
- /var/*/zoneminder
-}
-
-mkrundir() {
+prepare() {
. /etc/zm.conf
install -d -o $ZM_WEB_USER -g $ZM_WEB_GROUP \
/var/run/zoneminder
+ chown $ZM_WEB_USER:$ZM_WEB_GROUP \
+ /var/lib/zoneminder/* \
+ /var/log/zoneminder
}