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.

42 lines
981 B

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=mdio-tools
  3. PKG_RELEASE:=1
  4. PKG_SOURCE_URL:=https://github.com/wkz/mdio-tools
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_VERSION:=1.0.0
  7. PKG_MIRROR_HASH:=e8050610965d7e2c83f4abdff76da7b57d0ed656bbbaff56c757c20d13806932
  8. PKG_FIXUP:=autoreconf
  9. PKG_LICENSE:=GPL-2.0-only
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_MAINTAINER:=Damien Mascord <tusker@tusker.org>
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/mdio-tools
  14. SECTION:=net
  15. CATEGORY:=Utilities
  16. TITLE:=mdio-tools Linux MDIO register access
  17. URL:=https://github.com/wkz/mdio-tools.git
  18. DEPENDS:=+libmnl
  19. endef
  20. define Package/mdio-tools/description
  21. mdio-tools Linux MDIO register access
  22. endef
  23. define Package/mdio-tools/install
  24. $(INSTALL_DIR) $(1)/usr/bin
  25. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mdio/mdio $(1)/usr/bin/
  26. endef
  27. define Build/Prepare
  28. $(call Build/Prepare/Default)
  29. $(SED) 's/m4_esyscmd_s(.*)/$(PKG_VERSION)/' $(PKG_BUILD_DIR)/configure.ac
  30. endef
  31. $(eval $(call BuildPackage,mdio-tools))