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.4 KiB

  1. #
  2. # Copyright (C) 2008-2015 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.32
  10. PKG_RELEASE:=7
  11. PKG_MD5SUM:=7ecc1208f59bceb05068c752b2250b63
  12. PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
  13. PKG_LICENSE:=GPL-2.0+
  14. PKG_SOURCE_URL:=@SF/linknx
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. PKG_BUILD_DEPENDS:=argp-standalone
  17. PKG_FORTIFY_SOURCE:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/linknx
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=KNX home automation platform
  23. URL:=http://sourceforge.net/projects/linknx/
  24. DEPENDS:=+pthsem +lua +luac +libstdcpp +libcurl +libesmtp
  25. endef
  26. CONFIGURE_ARGS+= \
  27. --verbose \
  28. --without-pth-test \
  29. --without-log4cpp \
  30. --with-lua \
  31. --with-libcurl \
  32. --without-mysql
  33. EXTRA_LDFLAGS+= \
  34. -fno-builtin
  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))