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.

63 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.0.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:=f054201dd805ce005b89606a507b58a5717d383a4339c69dfdc02f0202935437
  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:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=mrmctl utility (macremapper kernel module)
  25. URL:=https://www.edgewaterwireless.com
  26. DEPENDS:= +kmod-macremapper
  27. endef
  28. define Package/mrmctl/description
  29. Command-line utility to manually manipulate the macremapper kernel module
  30. endef
  31. MAKE_PATH:=userland
  32. CONFIGURE_PATH:=userland
  33. CONFIGURE_ARGS += \
  34. --enable-shared
  35. TARGET_CFLAGS += -std=c89 -ffunction-sections -fdata-sections -flto
  36. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  42. endef
  43. define Package/mrmctl/install
  44. $(INSTALL_DIR) $(1)/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/bin/
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  48. endef
  49. $(eval $(call BuildPackage,mrmctl))