aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2016-02-15 23:09:02 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2016-02-15 23:10:31 +0200
commit75d1087a105511b738fd27017ec2243445e41f13 (patch)
tree61ee329d2819bfed8196de2fcbe1e74f1c8cafc7 /main
parentb266d25864efdc91d640f925cd67c49c26bf0f7f (diff)
downloadaports-75d1087a105511b738fd27017ec2243445e41f13.tar.bz2
aports-75d1087a105511b738fd27017ec2243445e41f13.tar.xz
main/zoneminder: log directory permissions
Diffstat (limited to 'main')
-rw-r--r--main/zoneminder/APKBUILD10
-rw-r--r--main/zoneminder/zoneminder.initd5
2 files changed, 7 insertions, 8 deletions
diff --git a/main/zoneminder/APKBUILD b/main/zoneminder/APKBUILD
index f6ad2cf66f..b74f0c8ee0 100644
--- a/main/zoneminder/APKBUILD
+++ b/main/zoneminder/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=zoneminder
pkgver=1.29.0
-pkgrel=2
+pkgrel=3
pkgdesc="Video camera surveillance system"
url="http://www.zoneminder.com/"
arch="x86_64"
@@ -69,7 +69,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
+ install -g wheel -m 2750 -d "$pkgdir"/var/log/$pkgname
# create symlinks from webapps to default http location
mkdir -p "$pkgdir"/var/www/localhost/htdocs \
@@ -85,14 +85,14 @@ package() {
}
md5sums="b4de8dd3fd86fc72e929e116e926d901 zoneminder-1.29.0.tar.gz
-30934b0cb9d4ed19b982f75ac865d5ac zoneminder.initd
+ab1fe4fb2392b82acf18ca8412fb927f zoneminder.initd
b95482fefbf22e8a89fb061805d05f03 musl-fix.patch
24359849eef7c5293f63136e704fdca4 zm-additional.sql"
sha256sums="34e1f0d4b616e320e557f8e3fbe278d3ab70f30f6278cc153b44f2193c85ddbd zoneminder-1.29.0.tar.gz
-5e3b1ae959f7a0f005c0357adfbcd0c764a4047d9bfd202119b4f5809846427e zoneminder.initd
+887174a6d1489bdcfbadf760758b14ef4e184dfcae728e15cb0e697e61e1c42f zoneminder.initd
829551a83e62ff84fcba7a0f88105a0b6d15d89a66e1e98dc50098c30c48672f musl-fix.patch
dea3a1b493bc7d7dbe9c431f565b9e916fb8a8bd29fcd74947b14592ef7f4494 zm-additional.sql"
sha512sums="71a397df83c92de3b977832bb0a11791a3a756e7219e0cf3dc6c5c30fa0dd488ea00a925433669bf4e79873df980a852f2c805d1b7c9c8a06b6c39b9a16a2fda zoneminder-1.29.0.tar.gz
-6cc8fd5aa30665b5b816216f8ff3cca1ea028f7959ee659eb8d9264b2f3cdcabd06e9a7d62a97b366c10e79779332d2cc386e291860d9b73b1619365d47eb918 zoneminder.initd
+fa993a86c21697467c8f63ce584531f8e2c3da977b65e6557161b4b91807b1c78b14fb64f6f54c50fddcb51b54bae6dff45776f5a69bfcc635a5c2927a292b57 zoneminder.initd
b2c4e31fd0a31f034be3029eab4f2943e07e95e64bb2d8eb38d93b790059d694a9a007e98b0f9b4c47ecfe91296bc21a3795b8a4aaf5b2a83071251456e533da musl-fix.patch
0bb99af417441e2c12cb3b8c00ecb8d76bdc343d39092a222841ae0bd684eeba1783a8bccf5630dae56f64992f8a09ec16e0cbc7069665e1ee3b62dd3f96c3a9 zm-additional.sql"
diff --git a/main/zoneminder/zoneminder.initd b/main/zoneminder/zoneminder.initd
index d2e251ee88..1a34a89148 100644
--- a/main/zoneminder/zoneminder.initd
+++ b/main/zoneminder/zoneminder.initd
@@ -59,8 +59,7 @@ perms() {
ebegin "Setting correct permssion, this could take a while"
RECURSIVE="-R"
fi
- chown $RECURSIVE $ZM_WEB_USER:$ZM_WEB_GROUP \
- /var/lib/zoneminder/* \
- /var/log/zoneminder
+ chown $RECURSIVE $ZM_WEB_USER:$ZM_WEB_GROUP /var/lib/zoneminder/*
+ chown $RECURSIVE $ZM_WEB_USER:wheel /var/log/zoneminder
}