2017-01-30 23:37:24 +00:00
#
2020-01-19 13:34:32 +00:00
# Copyright (C) 2016 - 2020 Stijn Tintel <stijn@linux-ipv6.be>
2017-01-30 23:37:24 +00:00
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := domoticz
2023-11-28 23:07:26 +00:00
PKG_VERSION := 2023.2
PKG_RELEASE := 1
2017-01-30 23:37:24 +00:00
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
2022-03-31 20:07:58 +00:00
PKG_SOURCE_URL := https://codeload.github.com/domoticz/domoticz/tar.gz/$( PKG_VERSION) ?
2023-11-28 23:07:26 +00:00
PKG_HASH := 32bcf49df8c80c470352e63004a82d9601b90ccf406096099656250a4515ac28
2017-01-30 23:37:24 +00:00
2021-06-15 00:29:16 +00:00
PKG_MAINTAINER := David Woodhouse <dwmw2@infradead.org>
2017-01-30 23:37:24 +00:00
PKG_LICENSE := GPL-3.0
PKG_LICENSE_FILES := License.txt
2020-06-03 14:02:22 +00:00
PKG_BUILD_DEPENDS := python3 minizip cereal
2023-03-23 08:27:01 +00:00
PKG_BUILD_FLAGS := no-mips16 lto
2017-01-30 23:37:24 +00:00
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
2021-06-10 23:27:06 +00:00
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
2017-01-30 23:37:24 +00:00
d e f i n e P a c k a g e / d o m o t i c z
SECTION:= utils
CATEGORY:= Utilities
TITLE:= Open Source Home Automation System
URL:= http://domoticz.com/
USERID:= domoticz = 6144:domoticz= 6144
DEPENDS:= \
+boost \
+boost-date_time \
+boost-system \
+boost-thread \
2020-06-03 13:41:46 +00:00
+jsoncpp \
2017-01-30 23:37:24 +00:00
+libcurl \
2020-10-24 22:52:20 +00:00
+python3 \
2021-06-15 00:29:16 +00:00
+minizip \
2020-06-03 14:02:22 +00:00
+lua5.3 \
2021-06-15 00:29:16 +00:00
+libfmt \
2020-06-03 13:41:46 +00:00
+libmosquitto \
2017-01-30 23:37:24 +00:00
+libopenssl \
+libopenzwave \
+libsqlite3 \
+libstdcpp \
2019-11-18 23:17:26 +00:00
+telldus-core \
2017-01-30 23:37:24 +00:00
+zlib
e n d e f
d e f i n e P a c k a g e / d o m o t i c z / d e s c r i p t i o n
Domoticz is a Home Automation System that lets you monitor and configure various devices like: Lights, Switches, various sensors/meters like Temperature, Rain, Wind, UV, Electra, Gas, Water and much more. Notifications/Alerts can be sent to any mobile device.
e n d e f
CMAKE_OPTIONS += \
2019-06-05 07:54:54 +00:00
-DBUILD_SHARED_LIBS= yes \
2019-05-09 04:34:22 +00:00
-DBoost_NO_BOOST_CMAKE= yes \
2021-06-15 00:29:16 +00:00
-DGIT_SUBMODULE= no \
2017-01-30 23:37:24 +00:00
-DCMAKE_BUILD_TYPE= Release \
-DUSE_BUILTIN_MQTT= no \
-DUSE_BUILTIN_SQLITE= no \
2020-06-03 13:41:46 +00:00
-DUSE_BUILTIN_JSONCPP= no \
2020-06-03 14:02:22 +00:00
-DUSE_BUILTIN_MINIZIP= no \
2021-06-15 00:29:16 +00:00
-DUSE_BUILTIN_LIBFMT= no \
2020-06-03 14:02:22 +00:00
-DUSE_LUA_STATIC= no \
2017-01-30 23:37:24 +00:00
-DUSE_STATIC_BOOST= no \
-DUSE_STATIC_LIBSTDCXX= no \
-DUSE_STATIC_OPENZWAVE= no \
domoticz: update to 3.9571 and clean up FHS handling
Upstream has merged a simplified version of the FHS patch, with a few
changes...
Scripts are actually configuration. There are examples, but the point is
that you write your own.
So they should live in the data directory (e.g. /var/lib/domoticz) not
in /usr/share/domoticz. The only exception is the dzVents runtime.
So.... the upstream patch handles the dzVents runtime bit. Drop the part
of our patch which added -scripts, because it can just be based in the
userdata directory and we don't need to change that.
Ship the default scripts/ directory in /etc/domoticz/scripts, and on
startup make a *symlink* to it from /var/lib/domoticz/scripts.
Symlink from /etc/domoticz/scripts/dzVents{data,generated_scripts} to
temporary directories under /var/lib/domoticz/dzVents so that those
directories (which are written to by Domoticz) don't land on the root
file system. Anyone with a writeable file system who *wants* the data/
directory to be persistent, can change that. Just as they can change
the userdata config option to point to a real file system somewhere.
Also drop the renaming of the OpenZWave Config/ directory. It's purely
cosmetric so there's no need for us to carry that change. It can go
upstream first, if it really offends anyone.
Drop the patches which are now merged upstream, and turn off the newly
added USE_OPENSSL_STATIC. Add -noupdates to the command line.
Finally, gzip the static www files to save space. In the common case,
clients will use "Accept-Encodiong: gzip" and Domoticz will serve them
as-is. It can also decompress on the fly if it really has to, but now we
aren't asking it to *compress* on the fly, which is probably a losing
proposition on an OpenWRT box.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-05-13 14:52:50 +00:00
-DUSE_OPENSSL_STATIC= no \
2018-06-15 15:50:03 +00:00
-DUSE_PYTHON= yes \
domoticz: update to 3.9571 and clean up FHS handling
Upstream has merged a simplified version of the FHS patch, with a few
changes...
Scripts are actually configuration. There are examples, but the point is
that you write your own.
So they should live in the data directory (e.g. /var/lib/domoticz) not
in /usr/share/domoticz. The only exception is the dzVents runtime.
So.... the upstream patch handles the dzVents runtime bit. Drop the part
of our patch which added -scripts, because it can just be based in the
userdata directory and we don't need to change that.
Ship the default scripts/ directory in /etc/domoticz/scripts, and on
startup make a *symlink* to it from /var/lib/domoticz/scripts.
Symlink from /etc/domoticz/scripts/dzVents{data,generated_scripts} to
temporary directories under /var/lib/domoticz/dzVents so that those
directories (which are written to by Domoticz) don't land on the root
file system. Anyone with a writeable file system who *wants* the data/
directory to be persistent, can change that. Just as they can change
the userdata config option to point to a real file system somewhere.
Also drop the renaming of the OpenZWave Config/ directory. It's purely
cosmetric so there's no need for us to carry that change. It can go
upstream first, if it really offends anyone.
Drop the patches which are now merged upstream, and turn off the newly
added USE_OPENSSL_STATIC. Add -noupdates to the command line.
Finally, gzip the static www files to save space. In the common case,
clients will use "Accept-Encodiong: gzip" and Domoticz will serve them
as-is. It can also decompress on the fly if it really has to, but now we
aren't asking it to *compress* on the fly, which is probably a losing
proposition on an OpenWRT box.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-05-13 14:52:50 +00:00
-DWITH_LIBUSB= no
2017-01-30 23:37:24 +00:00
2023-03-23 08:27:01 +00:00
TARGET_CXXFLAGS += -DWITH_GPIO
2017-09-20 21:50:33 +00:00
2017-01-30 23:37:24 +00:00
d e f i n e B u i l d / P r e p a r e
$( call Build/Prepare/Default)
# Remove unwanted scripts
cd $( PKG_BUILD_DIR) /scripts && rm -rf \
buienradar_rain_example.pl \
2017-07-31 16:18:18 +00:00
_domoticz_main* \
2017-01-30 23:37:24 +00:00
download_update.sh \
domoticz: update to 3.9571 and clean up FHS handling
Upstream has merged a simplified version of the FHS patch, with a few
changes...
Scripts are actually configuration. There are examples, but the point is
that you write your own.
So they should live in the data directory (e.g. /var/lib/domoticz) not
in /usr/share/domoticz. The only exception is the dzVents runtime.
So.... the upstream patch handles the dzVents runtime bit. Drop the part
of our patch which added -scripts, because it can just be based in the
userdata directory and we don't need to change that.
Ship the default scripts/ directory in /etc/domoticz/scripts, and on
startup make a *symlink* to it from /var/lib/domoticz/scripts.
Symlink from /etc/domoticz/scripts/dzVents{data,generated_scripts} to
temporary directories under /var/lib/domoticz/dzVents so that those
directories (which are written to by Domoticz) don't land on the root
file system. Anyone with a writeable file system who *wants* the data/
directory to be persistent, can change that. Just as they can change
the userdata config option to point to a real file system somewhere.
Also drop the renaming of the OpenZWave Config/ directory. It's purely
cosmetric so there's no need for us to carry that change. It can go
upstream first, if it really offends anyone.
Drop the patches which are now merged upstream, and turn off the newly
added USE_OPENSSL_STATIC. Add -noupdates to the command line.
Finally, gzip the static www files to save space. In the common case,
clients will use "Accept-Encodiong: gzip" and Domoticz will serve them
as-is. It can also decompress on the fly if it really has to, but now we
aren't asking it to *compress* on the fly, which is probably a losing
proposition on an OpenWRT box.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-05-13 14:52:50 +00:00
dzVents/{ .gitignore,documentation,examples,generated_scripts,data} \
2017-07-31 16:18:18 +00:00
dzVents/runtime/{ integration-tests,misc/smoothing.xlsx,tests} \
2017-01-30 23:37:24 +00:00
logrotate/ \
2017-07-31 13:23:33 +00:00
lua_parsers/example* \
lua/*demo.lua \
2017-01-30 23:37:24 +00:00
python/ \
readme.txt \
restart_domoticz \
templates/All.Python \
domoticz: update to 3.9571 and clean up FHS handling
Upstream has merged a simplified version of the FHS patch, with a few
changes...
Scripts are actually configuration. There are examples, but the point is
that you write your own.
So they should live in the data directory (e.g. /var/lib/domoticz) not
in /usr/share/domoticz. The only exception is the dzVents runtime.
So.... the upstream patch handles the dzVents runtime bit. Drop the part
of our patch which added -scripts, because it can just be based in the
userdata directory and we don't need to change that.
Ship the default scripts/ directory in /etc/domoticz/scripts, and on
startup make a *symlink* to it from /var/lib/domoticz/scripts.
Symlink from /etc/domoticz/scripts/dzVents{data,generated_scripts} to
temporary directories under /var/lib/domoticz/dzVents so that those
directories (which are written to by Domoticz) don't land on the root
file system. Anyone with a writeable file system who *wants* the data/
directory to be persistent, can change that. Just as they can change
the userdata config option to point to a real file system somewhere.
Also drop the renaming of the OpenZWave Config/ directory. It's purely
cosmetric so there's no need for us to carry that change. It can go
upstream first, if it really offends anyone.
Drop the patches which are now merged upstream, and turn off the newly
added USE_OPENSSL_STATIC. Add -noupdates to the command line.
Finally, gzip the static www files to save space. In the common case,
clients will use "Accept-Encodiong: gzip" and Domoticz will serve them
as-is. It can also decompress on the fly if it really has to, but now we
aren't asking it to *compress* on the fly, which is probably a losing
proposition on an OpenWRT box.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-05-13 14:52:50 +00:00
update_domoticz \
domoticz.conf
2017-07-31 13:23:33 +00:00
# Remove *.md
cd $( PKG_BUILD_DIR) && $( FIND) -name '*.md' -delete
2017-01-30 23:37:24 +00:00
e n d e f
d e f i n e P a c k a g e / d o m o t i c z / i n s t a l l
2018-06-15 15:50:03 +00:00
$( INSTALL_DIR) $( 1) /etc/config $( 1) /etc/hotplug.d/tty $( 1) /etc/init.d $( 1) /etc/domoticz/plugins
2017-01-30 23:37:24 +00:00
$( INSTALL_BIN) ./files/domoticz.hotplug $( 1) /etc/hotplug.d/tty/domoticz
$( INSTALL_BIN) ./files/domoticz.init $( 1) /etc/init.d/domoticz
$( INSTALL_CONF) ./files/domoticz.config $( 1) /etc/config/domoticz
$( INSTALL_DIR) $( 1) /usr/share/domoticz $( 1) /usr/bin
domoticz: update to 3.9571 and clean up FHS handling
Upstream has merged a simplified version of the FHS patch, with a few
changes...
Scripts are actually configuration. There are examples, but the point is
that you write your own.
So they should live in the data directory (e.g. /var/lib/domoticz) not
in /usr/share/domoticz. The only exception is the dzVents runtime.
So.... the upstream patch handles the dzVents runtime bit. Drop the part
of our patch which added -scripts, because it can just be based in the
userdata directory and we don't need to change that.
Ship the default scripts/ directory in /etc/domoticz/scripts, and on
startup make a *symlink* to it from /var/lib/domoticz/scripts.
Symlink from /etc/domoticz/scripts/dzVents{data,generated_scripts} to
temporary directories under /var/lib/domoticz/dzVents so that those
directories (which are written to by Domoticz) don't land on the root
file system. Anyone with a writeable file system who *wants* the data/
directory to be persistent, can change that. Just as they can change
the userdata config option to point to a real file system somewhere.
Also drop the renaming of the OpenZWave Config/ directory. It's purely
cosmetric so there's no need for us to carry that change. It can go
upstream first, if it really offends anyone.
Drop the patches which are now merged upstream, and turn off the newly
added USE_OPENSSL_STATIC. Add -noupdates to the command line.
Finally, gzip the static www files to save space. In the common case,
clients will use "Accept-Encodiong: gzip" and Domoticz will serve them
as-is. It can also decompress on the fly if it really has to, but now we
aren't asking it to *compress* on the fly, which is probably a losing
proposition on an OpenWRT box.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-05-13 14:52:50 +00:00
$( CP) $( PKG_INSTALL_DIR) /usr/dzVents $( 1) /usr/share/domoticz/dzVents
$( CP) $( PKG_INSTALL_DIR) /usr/Config $( 1) /usr/share/domoticz/Config
$( CP) $( PKG_INSTALL_DIR) /usr/scripts $( 1) /etc/domoticz/scripts
ln -sf /var/lib/domoticz/dzVents/generated_scripts $( 1) /etc/domoticz/scripts/dzVents
ln -sf /var/lib/domoticz/dzVents/data $( 1) /etc/domoticz/scripts/dzVents
2017-01-30 23:37:24 +00:00
$( CP) $( PKG_INSTALL_DIR) /usr/www $( 1) /usr/share/domoticz/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/domoticz $( 1) /usr/bin/domoticz
domoticz: update to 3.9571 and clean up FHS handling
Upstream has merged a simplified version of the FHS patch, with a few
changes...
Scripts are actually configuration. There are examples, but the point is
that you write your own.
So they should live in the data directory (e.g. /var/lib/domoticz) not
in /usr/share/domoticz. The only exception is the dzVents runtime.
So.... the upstream patch handles the dzVents runtime bit. Drop the part
of our patch which added -scripts, because it can just be based in the
userdata directory and we don't need to change that.
Ship the default scripts/ directory in /etc/domoticz/scripts, and on
startup make a *symlink* to it from /var/lib/domoticz/scripts.
Symlink from /etc/domoticz/scripts/dzVents{data,generated_scripts} to
temporary directories under /var/lib/domoticz/dzVents so that those
directories (which are written to by Domoticz) don't land on the root
file system. Anyone with a writeable file system who *wants* the data/
directory to be persistent, can change that. Just as they can change
the userdata config option to point to a real file system somewhere.
Also drop the renaming of the OpenZWave Config/ directory. It's purely
cosmetric so there's no need for us to carry that change. It can go
upstream first, if it really offends anyone.
Drop the patches which are now merged upstream, and turn off the newly
added USE_OPENSSL_STATIC. Add -noupdates to the command line.
Finally, gzip the static www files to save space. In the common case,
clients will use "Accept-Encodiong: gzip" and Domoticz will serve them
as-is. It can also decompress on the fly if it really has to, but now we
aren't asking it to *compress* on the fly, which is probably a losing
proposition on an OpenWRT box.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-05-13 14:52:50 +00:00
# compress static web content
find $( 1) /usr/share/domoticz/www -name "*.css" -exec gzip -9 { } \;
find $( 1) /usr/share/domoticz/www -name "*.js" -exec gzip -9 { } \;
2018-06-15 15:50:03 +00:00
gzip -9 $( 1) /usr/share/domoticz/www/*.html
gzip -9 $( 1) /usr/share/domoticz/www/secpanel/*.html
find $( 1) /usr/share/domoticz/www/views -name "*.html" -exec sh -c 'grep -q "<\!--#embed" {} || gzip -9 {}' \;
2017-01-30 23:37:24 +00:00
e n d e f
d e f i n e P a c k a g e / d o m o t i c z / c o n f f i l e s
/ e t c / c o n f i g / d o m o t i c z
/ v a r / l i b / d o m o t i c z /
domoticz: update to 3.9571 and clean up FHS handling
Upstream has merged a simplified version of the FHS patch, with a few
changes...
Scripts are actually configuration. There are examples, but the point is
that you write your own.
So they should live in the data directory (e.g. /var/lib/domoticz) not
in /usr/share/domoticz. The only exception is the dzVents runtime.
So.... the upstream patch handles the dzVents runtime bit. Drop the part
of our patch which added -scripts, because it can just be based in the
userdata directory and we don't need to change that.
Ship the default scripts/ directory in /etc/domoticz/scripts, and on
startup make a *symlink* to it from /var/lib/domoticz/scripts.
Symlink from /etc/domoticz/scripts/dzVents{data,generated_scripts} to
temporary directories under /var/lib/domoticz/dzVents so that those
directories (which are written to by Domoticz) don't land on the root
file system. Anyone with a writeable file system who *wants* the data/
directory to be persistent, can change that. Just as they can change
the userdata config option to point to a real file system somewhere.
Also drop the renaming of the OpenZWave Config/ directory. It's purely
cosmetric so there's no need for us to carry that change. It can go
upstream first, if it really offends anyone.
Drop the patches which are now merged upstream, and turn off the newly
added USE_OPENSSL_STATIC. Add -noupdates to the command line.
Finally, gzip the static www files to save space. In the common case,
clients will use "Accept-Encodiong: gzip" and Domoticz will serve them
as-is. It can also decompress on the fly if it really has to, but now we
aren't asking it to *compress* on the fly, which is probably a losing
proposition on an OpenWRT box.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-05-13 14:52:50 +00:00
/ e t c / d o m o t i c z /
2017-01-30 23:37:24 +00:00
e n d e f
$( eval $ ( call BuildPackage ,domoticz ) )