[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#899058: ITP: domoticz -- Home automation system



Dear Federico,

I've had some success building domoticz on buster using your git
repository with some modifications (see attached patch):

- in order to use Z-Wave hardware, add libopenzwave1.5-dev as a
build-dependency, provide a dummy libopenzwave.pc file and set
PKG_CONFIG_PATH to find it. Ideally one would prefer the libopenzwave
package to provide this file.

- in order to have dzVents to work at all, change ExecStart path from
/usr/sbin to /usr/lib/domoticz.

- Change dependency from liblua5.2 (which does not seem to exist in the
archive?) to liblua5.2-1.

Further experiments not included in patch:

In order to get persistence working in dzVents, I actually had to copy
all of /usr/lib/domoticz/scripts to /var/lib/domoticz/scripts and add
-userdata /var/lib/domoticz/ to ExecStart. I think this removes the need
to change the executable path, but it would need some care to be done
properly in the package.

Strangely, this build of domoticz advertises itself as Version: 3.2112
in http://localhost:8080/#/About, not 3.8153. dzVents is outdated in it
and some of the scripts I've been running for months on a
community-provided build of 3.8153 on a Synology NAS don't work with
this version.

Kind regards, Thibaut.
diff --git a/debian/control b/debian/control
index 690e2f3..2ca483c 100644
--- a/debian/control
+++ b/debian/control
@@ -16,6 +16,7 @@ Build-Depends: cmake,
  libpthread-stubs0-dev,
  libsqlite3-dev,
  libtinyxml-dev,
+ libopenzwave1.5-dev,
  python3-dev
 Standards-Version: 4.1.4
 Homepage: https://www.domoticz.com/
@@ -28,7 +29,7 @@ Depends: ${shlibs:Depends},
  ${misc:Depends},
  adduser,
  libjsoncpp1,
- liblua5.2,
+ liblua5.2-0,
  libmosquittopp1,
  libtinyxml2.6.2v5
 Description: Home automation system
diff --git a/debian/domoticz.service b/debian/domoticz.service
index 139d9cf..f5f1a37 100644
--- a/debian/domoticz.service
+++ b/debian/domoticz.service
@@ -14,7 +14,7 @@ KillSignal=SIGTERM
 
 User=domoticz
 Group=domoticz
-ExecStart=/usr/sbin/domoticz \
+ExecStart=/usr/lib/domoticz/domoticz \
   -www ${HTTP_PORT} \
   -sslwww ${HTTPS_PORT} \
   -wwwroot /usr/lib/domoticz/www/ \
diff --git a/debian/libopenzwave.pc b/debian/libopenzwave.pc
new file mode 100644
index 0000000..4a0d75f
--- /dev/null
+++ b/debian/libopenzwave.pc
@@ -0,0 +1,5 @@
+Name: libopenzwave
+Version:
+Description:
+Libs: -lopenzwave
+Cflags:
diff --git a/debian/rules b/debian/rules
index 85bbca9..c539e02 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,8 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
 include /usr/share/dpkg/default.mk  # provides DEB_VERSION
 
+export PKG_CONFIG_PATH=$(CURDIR)/debian
+
 %:
 	dh $@
 

Reply to: