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.

61 lines
1.6 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:=2
  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)/uclibc++.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. define Package/linknx
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=KNX home automation platform
  26. URL:=https://github.com/linknx/linknx
  27. DEPENDS:=+pthsem +lua +luac +libcurl +libesmtp $(CXX_DEPENDS) $(ICONV_DEPENDS)
  28. endef
  29. CONFIGURE_ARGS+= \
  30. --verbose \
  31. --without-pth-test \
  32. --without-log4cpp \
  33. --with-lua \
  34. --with-libcurl \
  35. --without-mysql
  36. define Package/linknx/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/linknx $(1)/usr/bin/
  39. $(INSTALL_DIR) $(1)/etc/init.d
  40. $(INSTALL_BIN) ./files/linknx.init $(1)/etc/init.d/linknx
  41. $(INSTALL_DIR) $(1)/etc/config
  42. $(INSTALL_DATA) ./files/linknx.config $(1)/etc/config/linknx
  43. $(INSTALL_DATA) ./files/linknx.xml.dist $(1)/etc/linknx.xml.dist
  44. $(INSTALL_DIR) $(1)/tmp/linknx/persist
  45. endef
  46. define Package/linknx/conffiles
  47. /etc/config/linknx
  48. /etc/linknx.xml.dist
  49. endef
  50. $(eval $(call BuildPackage,linknx))