You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.8 KiB

  1. #
  2. # Copyright (C) 2016 - 2017 Stijn Tintel <stijn@linux-ipv6.be>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=domoticz
  9. PKG_VERSION_MAJOR:=3
  10. PKG_VERSION_PATCH:=5877
  11. PKG_VERSION:=$(PKG_VERSION_MAJOR).$(PKG_VERSION_PATCH)
  12. PKG_RELEASE:=1
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/domoticz/domoticz/archive/$(PKG_VERSION)/$(PKG_SOURCE)
  15. PKG_HASH:=fb88edbe428851a7a337a85faa93f6da00713b3ad086ff6957031dc9b3b58bba
  16. PKG_LICENSE:=GPL-3.0
  17. PKG_LICENSE_FILES:=License.txt
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_USE_MIPS16:=0
  20. CMAKE_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/cmake.mk
  23. define Package/domoticz
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. TITLE:=Open Source Home Automation System
  27. URL:=http://domoticz.com/
  28. MAINTAINER:=Stijn Tintel <stijn@linux-ipv6.be>
  29. USERID:=domoticz=6144:domoticz=6144
  30. DEPENDS:= \
  31. +boost \
  32. +boost-date_time \
  33. +boost-system \
  34. +boost-thread \
  35. +libcurl \
  36. +libmosquittopp \
  37. +libopenssl \
  38. +libopenzwave \
  39. +libsqlite3 \
  40. +libstdcpp \
  41. +zlib
  42. endef
  43. define Package/domoticz/description
  44. 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.
  45. endef
  46. CMAKE_OPTIONS += \
  47. -DCMAKE_BUILD_TYPE=Release \
  48. -DUSE_BUILTIN_MQTT=no \
  49. -DUSE_BUILTIN_SQLITE=no \
  50. -DUSE_STATIC_BOOST=no \
  51. -DUSE_STATIC_LIBSTDCXX=no \
  52. -DUSE_STATIC_OPENZWAVE=no \
  53. -DUSE_PYTHON=no
  54. define Build/Prepare
  55. $(call Build/Prepare/Default)
  56. # Fix APPVERSION to suppress update popup
  57. sed -i 's/#define APPVERSION.*/#define APPVERSION $(PKG_VERSION_PATCH)/' \
  58. $(PKG_BUILD_DIR)/appversion.default
  59. # Remove unwanted scripts
  60. cd $(PKG_BUILD_DIR)/scripts && rm -rf \
  61. buienradar_rain_example.pl \
  62. _domoticz_main.bat \
  63. download_update.sh \
  64. logrotate/ \
  65. python/ \
  66. readme.txt \
  67. restart_domoticz \
  68. templates/All.Python \
  69. update_domoticz
  70. endef
  71. define Package/domoticz/install
  72. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/hotplug.d/tty $(1)/etc/init.d
  73. $(INSTALL_BIN) ./files/domoticz.hotplug $(1)/etc/hotplug.d/tty/domoticz
  74. $(INSTALL_BIN) ./files/domoticz.init $(1)/etc/init.d/domoticz
  75. $(INSTALL_CONF) ./files/domoticz.config $(1)/etc/config/domoticz
  76. $(INSTALL_DIR) $(1)/usr/share/domoticz $(1)/usr/bin
  77. $(CP) $(PKG_INSTALL_DIR)/usr/Config $(1)/usr/share/domoticz/openzwave
  78. $(CP) $(PKG_INSTALL_DIR)/usr/scripts $(1)/usr/share/domoticz/
  79. $(CP) $(PKG_INSTALL_DIR)/usr/www $(1)/usr/share/domoticz/
  80. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/domoticz $(1)/usr/bin/domoticz
  81. endef
  82. define Package/domoticz/conffiles
  83. /etc/config/domoticz
  84. /var/lib/domoticz/
  85. endef
  86. $(eval $(call BuildPackage,domoticz))