-
Notifications
You must be signed in to change notification settings - Fork 1
/
snapcraft.yaml
70 lines (68 loc) · 2.29 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: domoticz
version: 3.4834
summary: Very light weight home automation system
description: |
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.
confinement: devmode
apps:
domoticz:
command: opt/domoticz/domoticz
-dbase $SNAP_DATA/domoticz.db
-log $SNAP_DATA/domoticz.log
-loglevel 1
-verbose 1
-syslog
daemon: simple
plugs: [network, network-bind]
parts:
# telldus-core:
# # http://developer.telldus.com/wiki/TellStickInstallationSource
# plugin: cmake
# source: http://download.telldus.se/TellStick/Software/telldus-core/telldus-core-2.1.2.tar.gz
# configflags:
# - -DCMAKE_INSTALL_PREFIX=/usr
# build-packages:
# - build-essential
# - libftdi-dev
# - libconfuse-dev
openzwave:
# https://github.com/OpenZWave/open-zwave/blob/master/INSTALL
plugin: make
source: https://github.com/OpenZWave/open-zwave.git
source-tag: "v1.4"
make-parameters:
- PREFIX=/usr
- instlibdir=/usr/lib/x86_64-linux-gnu/
build-packages:
- build-essential
- libudev-dev
- pkg-config
domoticz:
# https://www.domoticz.com/wiki/Linux
plugin: cmake
source: https://github.com/domoticz/domoticz.git
source-tag: "3.4834"
after: [ openzwave ]
configflags:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX=/opt/domoticz # workaround
- -DUSE_STATIC_OPENZWAVE=OFF
- -DUSE_PYTHON=yes
build-packages:
- build-essential
- libboost-thread-dev
- libboost-python-dev
- libcurl4-openssl-dev
- libssl-dev
- libusb-dev
- zlib1g-dev
- python-dev
stage-packages:
- libcurl4-openssl-dev
snap:
- -opt/domoticz/History.txt
- -opt/domoticz/License.txt
- -opt/domoticz/updatedomo