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.

72 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2019 EWSI
  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:=dcwapd
  9. PKG_VERSION:=1.1.0
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/ewsi/$(PKG_NAME)/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=58e52bf4e7526b2f26319740549dbcc6f6ab505f587815ee8731e40f7fecb625
  14. PKG_MAINTAINER:=Carey Sonsino <careys@edgewaterwireless.com>
  15. PKG_LICENSE:=Apache-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/dcwapd
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=Routing and Redirection
  25. TITLE:=Dual-Channel WiFi AP daemon
  26. URL:=https://www.edgewaterwireless.com
  27. DEPENDS:=+libstdcpp +kmod-macremapper +libdcwsocket +libdcwproto +mrmctl +libuci
  28. endef
  29. define Package/dcwapd/description
  30. Implementation of the Dual-Channel WiFi AP daemon
  31. endef
  32. CONFIGURE_ARGS += \
  33. --enable-platform=linuxjsonstatic \
  34. --enable-shared
  35. TARGET_CXXFLAGS += -std=c++11 -DRAPIDJSON_HAS_CXX11_RVALUE_REFS=0 -ffunction-sections -fdata-sections -flto
  36. TARGET_LDFLAGS += -ldcwproto -ldcwsocket -lmrmfilterparser -luci -Wl,--gc-sections,--as-needed
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  40. endef
  41. define Package/dcwapd/conffiles
  42. /etc/config/dcwapd
  43. endef
  44. define Package/dcwapd/install
  45. $(INSTALL_DIR) $(1)/bin
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/bin/
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. # Note: $(INSTALL_BIN) does not keep symlinks, so use $(CP)
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  50. # UCI config file
  51. $(INSTALL_DIR) $(1)/etc/config
  52. $(INSTALL_DATA) ./files/dcwapd.uci $(1)/etc/config/dcwapd
  53. # Init script
  54. $(INSTALL_DIR) $(1)/etc/init.d
  55. $(INSTALL_BIN) ./files/dcwapd.init $(1)/etc/init.d/dcwapd
  56. endef
  57. $(eval $(call BuildPackage,dcwapd))