system/ZoneMinder: Updated for version 1.32.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
9d02f58404
commit
29c2d77b0f
|
@ -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/
|
||||
|
|
|
@ -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 \
|
||||
|
@ -115,11 +119,16 @@ 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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Reference in New Issue