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.

70 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2008-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. ### Remarks
  8. ### 'python pascal ruby lua' need to be deleted in src/clients/Makefile.am
  9. include $(TOPDIR)/rules.mk
  10. PKG_NAME:=knxd
  11. PKG_VERSION:=0.14.38
  12. PKG_RELEASE:=2
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://codeload.github.com/knxd/knxd/tar.gz/$(PKG_VERSION)?
  15. PKG_HASH:=bb0343154ee1d0d91b1b342f04ee163739e906ac530b7490b5aec516bb485d59
  16. PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
  17. PKG_LICENSE:=GPL-2.0-or-later
  18. PKG_LICENSE_FILES:=LICENSE
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=1
  22. PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/knxd
  25. SECTION:=net
  26. CATEGORY:=Network
  27. TITLE:=EIB KNX daemon
  28. DEPENDS:=+libusb-1.0 +libev +libfmt
  29. endef
  30. define Package/knxd/description
  31. EIB KNX Daemon
  32. endef
  33. define Package/knxd/conffiles
  34. /etc/knxd.ini
  35. /etc/config/knxd
  36. endef
  37. CONFIGURE_ARGS+= \
  38. --disable-systemd
  39. TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lm)
  40. define Package/knxd/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libeibclient.so* $(1)/usr/lib/
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/knxd_args $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibwrite-cgi $(1)/usr/bin/
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibread-cgi $(1)/usr/bin/
  48. $(INSTALL_DIR) $(1)/etc/init.d
  49. $(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
  50. $(INSTALL_DIR) $(1)/etc/config
  51. $(INSTALL_DATA) ./files/knxd.ini $(1)/etc/knxd.ini
  52. $(INSTALL_DATA) ./files/knxd.config $(1)/etc/config/knxd
  53. endef
  54. $(eval $(call BuildPackage,knxd))