[packages/domoticz] disable auto updates

atler atler at pld-linux.org
Sat Apr 10 16:59:33 CEST 2021


commit e7e8ea248392389403fc20b89bfe3e315e6053af
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Apr 10 16:58:46 2021 +0200

    disable auto updates

 domoticz-no_updates.patch | 20 ++++++++++++++++++++
 domoticz.spec             |  2 ++
 2 files changed, 22 insertions(+)
---
diff --git a/domoticz.spec b/domoticz.spec
index 773e6ab..e8c9151 100644
--- a/domoticz.spec
+++ b/domoticz.spec
@@ -19,6 +19,7 @@ Patch3:		no-git.patch
 Patch4:		boost-1.73.patch
 Patch5:		%{name}-gpio.patch
 Patch6:		python3.9.patch
+Patch7:		%{name}-no_updates.patch
 BuildRequires:	boost-devel >= 1.66.0
 BuildRequires:	cereal-devel
 BuildRequires:	cmake >= 3.16.0
@@ -65,6 +66,7 @@ and much more. Notifications/Alerts can be sent to any mobile device
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 APPVERSION="%{version}"
 echo "#define APPVERSION ${APPVERSION##*.}" > appversion.h
diff --git a/domoticz-no_updates.patch b/domoticz-no_updates.patch
new file mode 100644
index 0000000..17e0bed
--- /dev/null
+++ b/domoticz-no_updates.patch
@@ -0,0 +1,20 @@
+--- domoticz-2020.2/main/domoticz.cpp.orig	2020-04-26 15:49:25.000000000 +0200
++++ domoticz-2020.2/main/domoticz.cpp	2021-04-10 16:50:37.189198278 +0200
+@@ -152,7 +152,7 @@
+ bool g_bRunAsDaemon = false;
+ bool g_bDontCacheWWW = false;
+ http::server::_eWebCompressionMode g_wwwCompressMode = http::server::WWW_USE_GZIP;
+-bool g_bUseUpdater = true;
++bool g_bUseUpdater = false;
+ http::server::server_settings webserver_settings;
+ #ifdef WWW_ENABLE_SSL
+ http::server::ssl_server_settings secure_webserver_settings;
+@@ -649,7 +649,7 @@
+ 			sleep_seconds(DelaySeconds);
+ 		}
+ 		else if (szFlag == "updates") {
+-			g_bUseUpdater = GetConfigBool(sLine);
++			//g_bUseUpdater = GetConfigBool(sLine);
+ 		}
+ 		else if (szFlag == "php_cgi_path") {
+ 			webserver_settings.php_cgi_path = sLine;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/domoticz.git/commitdiff/e7e8ea248392389403fc20b89bfe3e315e6053af



More information about the pld-cvs-commit mailing list