forked from ZoneMinder/zoneminder
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into h265web.js
- Loading branch information
Showing
106 changed files
with
3,372 additions
and
1,596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- | ||
-- Update Monitors table to have WallClockTimestamps | ||
-- | ||
|
||
SELECT 'Checking for WallClockTImestamps in Monitors'; | ||
SET @s = (SELECT IF( | ||
(SELECT COUNT(*) | ||
FROM INFORMATION_SCHEMA.COLUMNS | ||
WHERE table_name = 'Monitors' | ||
AND table_schema = DATABASE() | ||
AND column_name = 'WallClockTimestamps' | ||
) > 0, | ||
"SELECT 'Column WallClockTimestamps already exists on Monitors'", | ||
"ALTER TABLE Monitors ADD `WallClockTimestamps` TINYINT NOT NULL DEFAULT '0' AFTER `EncoderParameters`" | ||
)); | ||
|
||
PREPARE stmt FROM @s; | ||
EXECUTE stmt; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
SET @s = (SELECT IF( | ||
(SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE() | ||
AND table_name = 'Filters' | ||
AND column_name = 'EmailServer' | ||
) > 0, | ||
"SELECT 'Column EmailServer already exists in Filters'", | ||
"ALTER TABLE `Filters` ADD `EmailServer` TEXT AFTER `EmailBody`" | ||
)); | ||
|
||
PREPARE stmt FROM @s; | ||
EXECUTE stmt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
%global ceb_version 1.0-zm | ||
|
||
# RtspServer is configured as a git submodule | ||
%global rtspserver_commit eab32851421ffe54fec0229c3efc44c642bc8d46 | ||
%global rtspserver_commit 055d81fe1293429e496b19104a9ed3360755a440 | ||
|
||
%global sslcert %{_sysconfdir}/pki/tls/certs/localhost.crt | ||
%global sslkey %{_sysconfdir}/pki/tls/private/localhost.key | ||
|
@@ -18,8 +18,8 @@ | |
%global zmtargetdistro %{?rhel:el%{rhel}}%{!?rhel:fc%{fedora}} | ||
|
||
Name: zoneminder | ||
Version: 1.37.60 | ||
Release: 2%{?dist} | ||
Version: 1.36.34 | ||
Release: 1%{?dist} | ||
Summary: A camera monitoring and analysis tool | ||
Group: System Environment/Daemons | ||
# jQuery is under the MIT license: https://jquery.org/license/ | ||
|
@@ -40,7 +40,7 @@ Source3: https://github.com/ZoneMinder/RtspServer/archive/%{rtspserver_commit}.t | |
|
||
%{?rhel:BuildRequires: epel-rpm-macros} | ||
BuildRequires: systemd-devel | ||
BuildRequires: mariadb-connector-c-devel | ||
BuildRequires: mariadb-devel | ||
BuildRequires: perl-podlators | ||
BuildRequires: polkit-devel | ||
BuildRequires: cmake | ||
|
@@ -75,7 +75,6 @@ BuildRequires: libv4l-devel | |
BuildRequires: desktop-file-utils | ||
BuildRequires: gzip | ||
BuildRequires: zlib-devel | ||
BuildRequires: gsoap-devel | ||
|
||
# ZoneMinder looks for and records the location of the ffmpeg binary during build | ||
BuildRequires: ffmpeg | ||
|
@@ -106,6 +105,7 @@ Requires: php-gd | |
Requires: php-intl | ||
Requires: php-process | ||
Requires: php-json | ||
Requires: cambozola | ||
Requires: php-pecl-apcu | ||
Requires: net-tools | ||
Requires: psmisc | ||
|
@@ -125,7 +125,6 @@ Requires: perl(LWP::Protocol::https) | |
Requires: perl(Module::Load::Conditional) | ||
Requires: ca-certificates | ||
Requires: zip | ||
Requires: gsoap | ||
%{?systemd_requires} | ||
|
||
Requires(post): %{_bindir}/gpasswd | ||
|
@@ -197,6 +196,7 @@ rm -rf ./dep/RtspServer | |
mv -f RtspServer-%{rtspserver_commit} ./dep/RtspServer | ||
|
||
# Change the following default values | ||
./utils/zmeditconfigdata.sh ZM_OPT_CAMBOZOLA yes | ||
./utils/zmeditconfigdata.sh ZM_OPT_CONTROL yes | ||
./utils/zmeditconfigdata.sh ZM_CHECK_FOR_UPDATES no | ||
|
||
|
@@ -208,7 +208,8 @@ mv -f RtspServer-%{rtspserver_commit} ./dep/RtspServer | |
%cmake \ | ||
-DZM_WEB_USER="%{zmuid_final}" \ | ||
-DZM_WEB_GROUP="%{zmgid_final}" \ | ||
-DZM_TARGET_DISTRO="%{zmtargetdistro}" | ||
-DZM_TARGET_DISTRO="%{zmtargetdistro}" \ | ||
. | ||
|
||
%cmake_build | ||
|
||
|
@@ -223,8 +224,6 @@ desktop-file-install \ | |
|
||
# Remove unwanted files and folders | ||
find %{buildroot} \( -name .htaccess -or -name .editorconfig -or -name .packlist -or -name .git -or -name .gitignore -or -name .gitattributes -or -name .travis.yml \) -type f -delete > /dev/null 2>&1 || : | ||
rm -rf %{buildroot}/usr/include | ||
rm -rf %{buildroot}/usr/cmake | ||
|
||
# Recursively change shebang in all relevant scripts and set execute permission | ||
find %{buildroot}%{_datadir}/zoneminder/www/api \( -name cake -or -name cake.php \) -type f -exec sed -i 's\^#!/usr/bin/env bash$\#!%{_buildshell}\' {} \; -exec %{__chmod} 755 {} \; | ||
|
@@ -337,8 +336,7 @@ ln -sf %{_sysconfdir}/zm/www/zoneminder.nginx.conf %{_sysconfdir}/zm/www/zonemin | |
%config(noreplace) %{_sysconfdir}/logrotate.d/zoneminder | ||
|
||
%{_unitdir}/zoneminder.service | ||
%{_datadir}/polkit-1/actions/com.zoneminder.* | ||
%{_datadir}/polkit-1/rules.d/com.zoneminder.arp-scan.rules | ||
%{_datadir}/polkit-1/actions/com.zoneminder.systemctl.policy | ||
%{_bindir}/zmsystemctl.pl | ||
|
||
%{_bindir}/zmaudit.pl | ||
|
@@ -360,7 +358,6 @@ ln -sf %{_sysconfdir}/zm/www/zoneminder.nginx.conf %{_sysconfdir}/zm/www/zonemin | |
%{_bindir}/zmonvif-trigger.pl | ||
%{_bindir}/zmstats.pl | ||
%{_bindir}/zmrecover.pl | ||
%{_bindir}/zmeventtool.pl | ||
%{_bindir}/zm_rtsp_server | ||
|
||
%{perl_vendorlib}/ZoneMinder* | ||
|
@@ -417,6 +414,10 @@ ln -sf %{_sysconfdir}/zm/www/zoneminder.nginx.conf %{_sysconfdir}/zm/www/zonemin | |
%dir %attr(755,nginx,nginx) %{_localstatedir}/log/zoneminder | ||
|
||
%changelog | ||
* Fri Aug 16 2024 Andrew Bauer <[email protected]> - 1.36.34-1 | ||
- 1.36.34 release | ||
- remove el7 support | ||
|
||
* Sun Nov 12 2023 Jonathan Bennett <[email protected]> - 1.37.47 | ||
- Specify folders to remove before packaging | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.