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.

68 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.29
  12. PKG_RELEASE:=3
  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:=4513328dd5ecfc17955e6884e938d652dbd33b82797893ae9ad768a247a0f63e
  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. define Package/knxd/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libeibclient.so* $(1)/usr/lib/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/knxd_args $(1)/usr/lib/
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibwrite-cgi $(1)/usr/bin/
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/knxd/eibread-cgi $(1)/usr/bin/
  47. $(INSTALL_DIR) $(1)/etc/init.d
  48. $(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
  49. $(INSTALL_DIR) $(1)/etc/config
  50. $(INSTALL_DATA) ./files/knxd.ini $(1)/etc/knxd.ini
  51. $(INSTALL_DATA) ./files/knxd.config $(1)/etc/config/knxd
  52. endef
  53. $(eval $(call BuildPackage,knxd))