domoticz: update to 3.9571 and clean up FHS handling
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 13 May 2018 14:52:50 +0000 (15:52 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 4 Jun 2018 10:11:24 +0000 (11:11 +0100)
commita98239c4938fec644bda4531a401b33032e34ac5
treeaf9361b1cf36a7701290f479fae569b67b9be181
parentacb6cf153c42dec12d1684386dabb6ba1d1b7db4
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>
utils/domoticz/Makefile
utils/domoticz/files/domoticz.init
utils/domoticz/patches/001-Make-compatible-with-boost-1.66.patch [deleted file]
utils/domoticz/patches/900_fix-build.patch [deleted file]
utils/domoticz/patches/901_no-udev.patch [deleted file]
utils/domoticz/patches/902_disable-libusb.patch [deleted file]
utils/domoticz/patches/903_fhs.patch [deleted file]