aboutsummaryrefslogtreecommitdiff
path: root/system/ZoneMinder
diff options
context:
space:
mode:
authorGeno Bob <GenoBob@gmail.com>2018-12-09 08:06:23 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-09 08:06:23 +0700
commit29c2d77b0f110c3583b1ad1f857cc2d28cd6c636 (patch)
tree1f95df67c888d5a2d37f551fefac3f619dc1518d /system/ZoneMinder
parent9d02f584043e83cf269d2c7757bac80991b98cd1 (diff)
system/ZoneMinder: Updated for version 1.32.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ZoneMinder')
-rw-r--r--system/ZoneMinder/README.SLACKWARE12
-rw-r--r--system/ZoneMinder/ZoneMinder.SlackBuild17
-rw-r--r--system/ZoneMinder/ZoneMinder.info16
-rw-r--r--system/ZoneMinder/slack-desc2
4 files changed, 31 insertions, 16 deletions
diff --git a/system/ZoneMinder/README.SLACKWARE b/system/ZoneMinder/README.SLACKWARE
index 0c3c7990430f3..da415dc694932 100644
--- a/system/ZoneMinder/README.SLACKWARE
+++ b/system/ZoneMinder/README.SLACKWARE
@@ -14,7 +14,7 @@ CONFIGURATION
# mysql -u root -p
source /usr/share/ZoneMinder/db/zm_create.sql
use mysql;
-grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
+grant select,insert,update,delete,create,alter,lock tables on zm.* to 'zmuser'@localhost identified by 'zmpass';
quit;
Reload the mysql server with "mysqladmin reload -u root -p".
@@ -22,7 +22,9 @@ Reload the mysql server with "mysqladmin reload -u root -p".
2) Apache configuration:
Uncomment mod_php at the end of /etc/httpd/httpd.conf.
Add this line to httpd.conf:
- Include /etc/zm/zm_apache.conf
+ Include /etc/httpd/extra/zm.conf
+ LoadModule cgi_module lib64/httpd/modules/mod_cgi.so
+ LoadModule rewrite_module lib64/httpd/modules/mod_rewrite.so
# You may need to chmod +x /etc/rc.d/rc.httpd first
Restart apache with "/etc/rc.d/rc.httpd restart".
@@ -40,9 +42,13 @@ if [ -x /etc/rc.d/rc.zm ]; then
/etc/rc.d/rc.zm stop
fi
+Set your timezone in /etc/php.ini.
+Ex:
+date.timezone = "US/Central"
+
Database upgrade files are provided in /usr/share/ZoneMinder/db.
-See http://www.zoneminder.com/wiki/index.php/Documentation#Logging for info
+See http://www.ZoneMinder.com/wiki/index.php/Documentation#Logging for info
on how to counter the massive amount of syslog spam that ZoneMinder generates.
The ZoneMinder web interface shall be available at http://hostname/zm/
diff --git a/system/ZoneMinder/ZoneMinder.SlackBuild b/system/ZoneMinder/ZoneMinder.SlackBuild
index 9fd598d71ec07..1423b69fc443d 100644
--- a/system/ZoneMinder/ZoneMinder.SlackBuild
+++ b/system/ZoneMinder/ZoneMinder.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ZoneMinder
-# Copyright 2014 Gene Baxter <GenoBob@gmail.com>
+# Copyright 2018 Gene Baxter <GenoBob@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,16 +23,17 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ZoneMinder
-VERSION=${VERSION:-1.31.1}
+VERSION=${VERSION:-1.32.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-CAMBOZOLA_VERSION=${CAMBOZOLA_VERSION:-0.935} # Java streaming client
+CAMBOZOLA_VERSION=${CAMBOZOLA_VERSION:-0.936} # Java streaming client
JSCALENDAR_VERSION=${JSCALENDAR_VERSION:-1.0} # Calendar plugin (use 1.0 here)
DOCOWN=${DOCOWN:-apache}
DOCGRP=${DOCGRP:-apache}
DOCROOT=${DOCROOT:-"/srv/httpd/htdocs/zm"}
CGIROOT=${CGIROOT:-"/srv/httpd/cgi-bin"}
+CACHEDIR=${CACHEDIR:-"/var/cache/ZoneMinder"}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -69,6 +70,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
+#git submodule update --init --recursive
tar xvf $CWD/cambozola-$CAMBOZOLA_VERSION.tar.gz
unzip $CWD/jscalendar-$JSCALENDAR_VERSION.zip
chown -R root:root .
@@ -83,6 +85,8 @@ CXXFLAGS="$SLKCFLAGS -D__STDC_CONSTANT_MACROS" \
cd $TMP/$PRGNAM-$VERSION
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_LIBRARY_PATH=/usr/lib${LIBDIRSUFFIX} \
+ -DCMAKE_CACHEDIR=$CACHEDIR \
+ -DZM_CACHEDIR=$CACHEDIR \
-DZM_WEBDIR=$DOCROOT \
-DZM_CGIDIR=$CGIROOT \
-DZM_WEB_USER=$DOCOWN \
@@ -116,10 +120,15 @@ find $PKG -name perllocal.pod \
find $PKG/usr -depth -type d -empty -delete || true
mkdir -p $PKG/var/{log,lock/subsys}
+mkdir -p $PKG/var/{log,lock/subsys}
install -d -o $DOCOWN -g $DOCGRP $PKG/var/log/zm
+install -d -o $DOCOWN -g $DOCGRP $PKG/var/tmp/zm
+install -d -o $DOCOWN -g $DOCGRP $PKG/var/run/zm
+mkdir -p $PKG$CACHEDIR
+install -d -o $DOCOWN -g $DOCGRP $PKG$CACHEDIR
for DIR in events images sound; do
- install -d -o $DOCOWN -g $DOCGRP $PKG/var/lib/zoneminder/$DIR
+ install -d -o $DOCOWN -g $DOCGRP $PKG/var/lib/ZoneMinder/$DIR
done
# Install logrotate script
diff --git a/system/ZoneMinder/ZoneMinder.info b/system/ZoneMinder/ZoneMinder.info
index c35e8d6cf74f4..2bae7ed3f6784 100644
--- a/system/ZoneMinder/ZoneMinder.info
+++ b/system/ZoneMinder/ZoneMinder.info
@@ -1,14 +1,14 @@
PRGNAM="ZoneMinder"
-VERSION="1.31.1"
-HOMEPAGE="https://www.zoneminder.com"
-DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/ZoneMinder-1.31.1.tar.gz \
- http://www.andywilcock.com/code/cambozola/cambozola-0.935.tar.gz \
+VERSION="1.32.2"
+HOMEPAGE="https://www.ZoneMinder.com"
+DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/ZoneMinder-1.32.2.tar.gz \
+ http://www.andywilcock.com/code/cambozola/cambozola-0.936.tar.gz \
https://downloads.sourceforge.net/jscalendar/jscalendar-1.0.zip"
-MD5SUM="c4fb54ec542fed09e03e0d5830106c39 \
- 6c48fd994685d4d72668850eeb613e24 \
+MD5SUM="fc986fcb7601d3fe463a2970ead67cf7 \
+ c4896a99702af61eead945ed58b5667b \
10f2160fe68294013efcd1473cd36f72"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="perl-Date-Manip perl-Sys-Mmap perl-LWP-Protocol-https SDL2"
-MAINTAINER="Gene Baxter"
+REQUIRES="perl-Sys-MemInfo perl-Date-Manip perl-Sys-Mmap perl-LWP-Protocol-https SDL2 perl-JSON-MaybeXS perl-Number-Bites-Human perl-TimeDate perl-Sys-CPU"
+MAINTAINER="Geno Bob"
EMAIL="GenoBob@gmail.com"
diff --git a/system/ZoneMinder/slack-desc b/system/ZoneMinder/slack-desc
index d121339c73c94..2047dea54872b 100644
--- a/system/ZoneMinder/slack-desc
+++ b/system/ZoneMinder/slack-desc
@@ -16,4 +16,4 @@ ZoneMinder: protocols. It can also be integrated into a home automation system
ZoneMinder: via X.10 or other protocols. This build includes cambozola and
ZoneMinder: jscalendar.
ZoneMinder:
-ZoneMinder: Homepage: https://www.zoneminder.com/
+ZoneMinder: Homepage: https://www.ZoneMinder.com/