diff options
author | Daniel Prosser <dpross1100@msn.com> | 2019-02-02 13:06:00 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-02-02 13:06:35 +0700 |
commit | 456778929061018fc3863544e1fb1b455f59fd9b (patch) | |
tree | b1848cbbbe7b8244e0637090c03d3f7ec2293dd5 /system/ZoneMinder/ZoneMinder.SlackBuild | |
parent | 76efbc5d1256d97e8243874983a3d3ddee6012c1 (diff) |
system/ZoneMinder: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ZoneMinder/ZoneMinder.SlackBuild')
-rw-r--r-- | system/ZoneMinder/ZoneMinder.SlackBuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/system/ZoneMinder/ZoneMinder.SlackBuild b/system/ZoneMinder/ZoneMinder.SlackBuild index 1423b69fc443d..222d092dc5278 100644 --- a/system/ZoneMinder/ZoneMinder.SlackBuild +++ b/system/ZoneMinder/ZoneMinder.SlackBuild @@ -34,6 +34,7 @@ DOCGRP=${DOCGRP:-apache} DOCROOT=${DOCROOT:-"/srv/httpd/htdocs/zm"} CGIROOT=${CGIROOT:-"/srv/httpd/cgi-bin"} CACHEDIR=${CACHEDIR:-"/var/cache/ZoneMinder"} +CONTENTDIR=${CONTENTDIR:-"/var/lib/ZoneMinder"} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -80,6 +81,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Fails to encode mp4 videos without this patch +patch -p0 < $CWD/fix_video_file_format.patch + +# Applies upstream commits 4937a686 and 4da95369 +patch -p0 < $CWD/fix_zone_area_calc.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS -D__STDC_CONSTANT_MACROS" \ cd $TMP/$PRGNAM-$VERSION @@ -90,7 +97,8 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DZM_WEBDIR=$DOCROOT \ -DZM_CGIDIR=$CGIROOT \ -DZM_WEB_USER=$DOCOWN \ - -DZM_WEB_GROUP=$DOCGRP . + -DZM_WEB_GROUP=$DOCGRP \ + -DZM_CONTENTDIR=$CONTENTDIR . make make install DESTDIR=$PKG INSTALLDIRS=vendor INSTALLVENDORMAN3DIR=/usr/man/man3 @@ -128,7 +136,7 @@ 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/$CONTENTDIR/$DIR done # Install logrotate script |