2020-10-05 23:05:58 +02:00
#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
# dependencies used by the app
#python3-dev required as per https://www.domoticz.com/forum/viewtopic.php?f=65&t=16116&p=119747
2022-04-24 23:58:20 +02:00
#mosquitto and mosquitto-clients are required for mqtt
2020-10-05 23:05:58 +02:00
#other dependencies are from standard install script... seems quite useles...
pkg_dependencies = "libudev-dev python3-dev"
2022-04-24 23:58:20 +02:00
extra_pkg_dependencies = "mosquitto mosquitto-clients"
2020-10-05 23:05:58 +02:00
2022-05-22 19:15:23 +02:00
default_mqtt_port = 1883
default_mqtt_websocket_port = 8083
2020-11-07 10:22:36 +01:00
#ALL FOLLOWING LINE FROM THE upstream bash installation script
2020-10-05 23:05:58 +02:00
DEBIAN_ID = $( grep -oP '(?<=^ID=).+' /etc/*-release | tr -d '"' )
DEBIAN_VERSION = $( grep -oP '(?<=^VERSION_ID=).+' /etc/*-release | tr -d '"' )
if test ${ DEBIAN_VERSION } -lt 10
then
add_dep = "libcurl3"
else
add_dep = "libcurl4 libusb-0.1-4"
fi ;
pkg_dependencies = " $pkg_dependencies $add_dep "
lowercase( ) {
echo " $1 " | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"
}
2022-04-24 23:58:20 +02:00
os = ` lowercase \` uname -s\` `
mach = ` uname -m`
if [ ${ mach } = "armv6l" ]
2020-10-05 23:05:58 +02:00
then
2022-04-24 23:58:20 +02:00
mach = "armv7l"
2020-10-05 23:05:58 +02:00
fi
2022-04-24 23:58:20 +02:00
sha256 = $( wget -qO- https://releases.domoticz.com/releases/release/domoticz_${ os } _${ mach } .tgz.sha256sum | sed 's/ update.tgz//' | sed 's/ domoticz_linux_x86_64.tgz//' )
2020-10-05 23:05:58 +02:00
#=================================================
# PERSONAL HELPERS
#=================================================
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================