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.

60 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2008-2016 OpenWrt.org
  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:=linknx
  9. PKG_VERSION:=0.0.1.38
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-${PKG_VERSION}.tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/linknx/linknx/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=00c53776c2e871295459ede922402d8ad0208367d2364781fdb92ddafad94d3d
  14. PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/linknx
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=KNX home automation platform
  25. URL:=https://github.com/linknx/linknx
  26. DEPENDS:=+pthsem +lua +luac +libcurl +libesmtp +libstdcpp $(ICONV_DEPENDS)
  27. endef
  28. CONFIGURE_ARGS+= \
  29. --verbose \
  30. --without-pth-test \
  31. --without-log4cpp \
  32. --with-lua \
  33. --with-libcurl \
  34. --without-mysql
  35. define Package/linknx/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/linknx $(1)/usr/bin/
  38. $(INSTALL_DIR) $(1)/etc/init.d
  39. $(INSTALL_BIN) ./files/linknx.init $(1)/etc/init.d/linknx
  40. $(INSTALL_DIR) $(1)/etc/config
  41. $(INSTALL_DATA) ./files/linknx.config $(1)/etc/config/linknx
  42. $(INSTALL_DATA) ./files/linknx.xml.dist $(1)/etc/linknx.xml.dist
  43. $(INSTALL_DIR) $(1)/tmp/linknx/persist
  44. endef
  45. define Package/linknx/conffiles
  46. /etc/config/linknx
  47. /etc/linknx.xml.dist
  48. endef
  49. $(eval $(call BuildPackage,linknx))