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.

64 lines
1.6 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:=mrmctl
  9. PKG_VERSION:=1.1.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=macremapper-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/ewsi/macremapper/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=f9580427803123d13d50f3422623a37212034a5d72a485f9c04904f19509e4bb
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/macremapper-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Carey Sonsino <careys@edgewaterwireless.com>
  16. PKG_LICENSE:=Apache-2.0
  17. PKG_LICENSE_FILES:=userland/COPYING
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/mrmctl
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=Routing and Redirection
  25. TITLE:=Dual-Channel WiFi macremapper utility
  26. URL:=https://www.edgewaterwireless.com
  27. DEPENDS:= +kmod-macremapper
  28. endef
  29. define Package/mrmctl/description
  30. Command-line utility to manually manipulate the macremapper kernel module
  31. endef
  32. MAKE_PATH:=userland
  33. CONFIGURE_PATH:=userland
  34. CONFIGURE_ARGS += \
  35. --enable-shared
  36. TARGET_CFLAGS += -std=c89 -ffunction-sections -fdata-sections -flto
  37. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  43. endef
  44. define Package/mrmctl/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. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  49. endef
  50. $(eval $(call BuildPackage,mrmctl))