summaryrefslogtreecommitdiff
path: root/system/ZoneMinder/ZoneMinder.SlackBuild
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/ZoneMinder.SlackBuild
parent9d02f584043e83cf269d2c7757bac80991b98cd1 (diff)
downloadslackbuilds-29c2d77b0f110c3583b1ad1f857cc2d28cd6c636.tar.gz
system/ZoneMinder: Updated for version 1.32.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ZoneMinder/ZoneMinder.SlackBuild')
-rw-r--r--system/ZoneMinder/ZoneMinder.SlackBuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/system/ZoneMinder/ZoneMinder.SlackBuild b/system/ZoneMinder/ZoneMinder.SlackBuild
index 9fd598d71e..1423b69fc4 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