summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTroy Will2015-08-07 15:48:54 -0700
committerTroy Will2015-08-07 15:48:54 -0700
commitbadd28193679ba301cc590f61e7836a74b150414 (patch)
tree744b4520f6a649281be162af857476c79e5747b7
parentccffd3a1102db12543c1805bde5db265c0ecb751 (diff)
downloadaur-badd28193679ba301cc590f61e7836a74b150414.tar.gz
Change run dir to /run/zoneminder
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
-rw-r--r--zoneminder-tmpfile.conf1
-rw-r--r--zoneminder.install4
4 files changed, 14 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3721b833e05..5ef28bba5f9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = zoneminder-git
pkgdesc = Capture, analyse, record and monitor video security cameras
pkgver = 1.28.100
- pkgrel = 1
+ pkgrel = 4
url = https://github.com/ZoneMinder/ZoneMinder/releases
install = zoneminder.install
arch = i686
@@ -44,9 +44,11 @@ pkgbase = zoneminder-git
source = git://github.com/zoneminder/zoneminder.git
source = httpd-zoneminder.conf
source = zoneminder.service
+ source = zoneminder-tmpfile.conf
sha256sums = SKIP
sha256sums = c2ca71ec57e53da040de61ff212ac063574e5ddfb4c333b70be060d5ec26c62c
sha256sums = 7eb2f26246e240e23502da44854d5ed14485aa11bc448ad73e9b57fee13f00a3
+ sha256sums = cc8af737c3c07750fc71317c81999376e4bbb39da883780164a8747b3d7c95a7
pkgname = zoneminder-git
diff --git a/PKGBUILD b/PKGBUILD
index 08be99f6ff4..1376f4a37b4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@
_pkgname=zoneminder
pkgname=zoneminder-git
pkgver=1.28.100
-pkgrel=1
+pkgrel=4
pkgdesc='Capture, analyse, record and monitor video security cameras'
arch=( i686 x86_64 mips64el arm armv7h )
backup=( etc/zm.conf )
@@ -42,11 +42,13 @@ source=(
git://github.com/$_pkgname/$_pkgname.git
httpd-zoneminder.conf
zoneminder.service
+ zoneminder-tmpfile.conf
)
# Because the source is not static, skip Git checksum:
sha256sums=('SKIP'
'c2ca71ec57e53da040de61ff212ac063574e5ddfb4c333b70be060d5ec26c62c'
'7eb2f26246e240e23502da44854d5ed14485aa11bc448ad73e9b57fee13f00a3'
+ 'cc8af737c3c07750fc71317c81999376e4bbb39da883780164a8747b3d7c95a7'
)
pkgver() {
@@ -67,7 +69,7 @@ build() {
-DZM_WEB_USER=http \
-DZM_CONTENTDIR=/var/cache/zoneminder \
-DZM_LOGDIR=/var/log/zoneminder \
- -DZM_RUNDIR=/srv/zoneminder \
+ -DZM_RUNDIR=/run/zoneminder \
-DZM_TMPDIR=/srv/zoneminder/tmp \
-DZM_SOCKDIR=/srv/zoneminder/socks .
@@ -129,4 +131,6 @@ package() {
mkdir -p $pkgdir/usr/share/doc/$_pkgname
# install -D -m 644 $srcdir/README $pkgdir/usr/share/doc/$_pkgname
+ install -Dm644 ../zoneminder-tmpfile.conf "$pkgdir"/usr/lib/tmpfiles.d/zoneminder.conf
+
}
diff --git a/zoneminder-tmpfile.conf b/zoneminder-tmpfile.conf
new file mode 100644
index 00000000000..84362b52b26
--- /dev/null
+++ b/zoneminder-tmpfile.conf
@@ -0,0 +1 @@
+d /run/zoneminder 0755 http http -
diff --git a/zoneminder.install b/zoneminder.install
index edc233de602..acfd9346351 100644
--- a/zoneminder.install
+++ b/zoneminder.install
@@ -1,4 +1,7 @@
post_install() {
+
+ systemd-tmpfiles --create zoneminder.conf
+
# edit /etc/php.ini for Zoneminder
sed -e '
# Enable these libraries by removing the leading comment character
@@ -67,6 +70,7 @@ post_install() {
and:
"Include /etc/httpd/conf/extra/php5_module.conf"
"Include /etc/httpd/conf/extra/httpd-zoneminder.conf"
+
EOF
}