2 # Copyright (C) 2016 - 2017 Stijn Tintel <stijn@linux-ipv6.be>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_VERSION_PATCH
:=8153
13 PKG_VERSION
:=$(PKG_VERSION_MAJOR
).
$(PKG_VERSION_PATCH
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=https
://github.com
/domoticz
/domoticz
/archive
/$(PKG_VERSION
)/$(PKG_SOURCE
)
18 PKG_HASH
:=5ea8f37f2ef900e9bd17b1b5375e75bfdec4f09001e3e2e0b647a260989d014c
21 PKG_LICENSE_FILES
:=License.txt
28 include $(INCLUDE_DIR
)/package.mk
29 include $(INCLUDE_DIR
)/cmake.mk
31 define Package
/domoticz
34 TITLE
:=Open Source Home Automation System
35 URL
:=http
://domoticz.com
/
36 MAINTAINER
:=Stijn Tintel
<stijn@linux-ipv6.be
>
37 USERID
:=domoticz
=6144:domoticz
=6144
52 define Package
/domoticz
/description
53 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.
57 -DCMAKE_BUILD_TYPE
=Release \
58 -DUSE_BUILTIN_MQTT
=no \
59 -DUSE_BUILTIN_SQLITE
=no \
60 -DUSE_STATIC_BOOST
=no \
61 -DUSE_STATIC_LIBSTDCXX
=no \
62 -DUSE_STATIC_OPENZWAVE
=no \
66 $(call Build
/Prepare
/Default
)
67 # Fix APPVERSION to suppress update popup
68 sed
-i
's/#define APPVERSION.*/#define APPVERSION $(PKG_VERSION_PATCH)/' \
69 $(PKG_BUILD_DIR
)/appversion.default
70 # Remove unwanted scripts
71 cd
$(PKG_BUILD_DIR
)/scripts
&& rm -rf \
72 buienradar_rain_example.pl \
75 dzVents
/{documentation
,examples
,runtime
/{integration-tests
,tests
}} \
77 lua_parsers
/example
* \
82 templates
/All.Python \
85 cd
$(PKG_BUILD_DIR
) && $(FIND
) -name
'*.md' -delete
88 define Package
/domoticz
/install
89 $(INSTALL_DIR
) $(1)/etc
/config
$(1)/etc
/hotplug.d
/tty
$(1)/etc
/init.d
90 $(INSTALL_BIN
) .
/files
/domoticz.hotplug
$(1)/etc
/hotplug.d
/tty
/domoticz
91 $(INSTALL_BIN
) .
/files
/domoticz.init
$(1)/etc
/init.d
/domoticz
92 $(INSTALL_CONF
) .
/files
/domoticz.config
$(1)/etc
/config
/domoticz
93 $(INSTALL_DIR
) $(1)/usr
/share
/domoticz
$(1)/usr
/bin
94 $(CP
) $(PKG_INSTALL_DIR
)/usr
/Config
$(1)/usr
/share
/domoticz
/openzwave
95 $(CP
) $(PKG_INSTALL_DIR
)/usr
/scripts
$(1)/usr
/share
/domoticz
/
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/www
$(1)/usr
/share
/domoticz
/
97 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/domoticz
$(1)/usr
/bin
/domoticz
100 define Package
/domoticz
/conffiles
105 $(eval
$(call BuildPackage
,domoticz
))