Skip to content

Commit

Permalink
dietpi-software: Domoticz: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaIng committed Jan 31, 2025
1 parent 9ea98e2 commit 92a94a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -11439,12 +11439,14 @@ _EOF_
if To_Install 140 domoticz # Domoticz
then
# APT deps: https://install.domoticz.com/, https://github.com/MichaIng/DietPi/issues/6404
aDEPS=('libusb-0.1-4' 'libcurl3-gnutls')
aDEPS=('libusb-0.1-4')
# - Since Trixie, curl moved to the GnuTLS flavour of libcurl.
(( $G_DISTRO < 8 )) && aDEPS+=('libcurl3-gnutls')

# x86_64 builds provided via GitHub differ from those provided via domoticz.com and were compiled against libssl3. Hence download those for Bookworm/Trixie systems, else the ones from domoticz.com, compiled against libssl1.1. Currently, there are no builds for ARM and libssl3.
if (( $G_HW_ARCH == 10 && $G_DISTRO > 6 ))
then
local fallback_url="https://github.com/domoticz/domoticz/releases/download/2024.1/domoticz_linux_2024.1_${G_HW_ARCH_NAME/armv6l/armv7l}.tgz"
local fallback_url="https://github.com/domoticz/domoticz/releases/download/2024.7/domoticz_linux_2024.7_${G_HW_ARCH_NAME/armv6l/armv7l}.tgz"
Download_Install "$(curl -sSfL 'https://api.github.com/repos/domoticz/domoticz/releases/latest' | mawk -F\" "/^ *\"browser_download_url\": \".*\/domoticz_linux_[^\"\/]*_${G_HW_ARCH_NAME/armv6l/armv7l}.tgz\"$/{print \$4}")" ./domoticz
else
Download_Install "https://releases.domoticz.com/release/domoticz_linux_${G_HW_ARCH_NAME/armv6l/armv7l}.tgz" ./domoticz
Expand Down

0 comments on commit 92a94a3

Please sign in to comment.