Skip to content

Commit

Permalink
dietpi-software: enable Domoticz to test libssl dep of binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaIng committed Jan 31, 2025
1 parent 9ea98e2 commit a8e38d6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -1538,9 +1538,6 @@ Available commands:
aSOFTWARE_CATX[$software_id]=17
aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/home_automation/#domoticz'
# - RISC-V: https://github.com/domoticz/domoticz/releases, https://www.domoticz.com/downloads/
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,11]=0
# - Bookworm/Trixie ARM: https://github.com/domoticz/domoticz/issues/5233#issuecomment-1904906172
(( $G_HW_ARCH < 10 && $G_DISTRO > 6 )) && aSOFTWARE_AVAIL_G_DISTRO[$software_id,$G_DISTRO]=0
#------------------
software_id=27
aSOFTWARE_NAME[$software_id]='TasmoAdmin'
Expand Down Expand Up @@ -11439,12 +11436,13 @@ _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')
#(( $G_DISTRO == 8 )) && aDEPS+=('libcurl3t64-gnutls') || 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 a8e38d6

Please sign in to comment.