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.

51 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. # Copyright (C) 2016 Stijn Segers
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=mii-tool
  10. PKG_SOURCE_DATE:=2016-10-06
  11. PKG_SOURCE_VERSION:=115f1af2494ded1fcd21c8419d5e289bc4df380f
  12. PKG_RELEASE:=3
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://git.code.sf.net/p/net-tools/code
  15. PKG_MIRROR_HASH:=43d9d042ffe2db784256de5df8e77d688f0808f2b890351a21b902c798fa6310
  16. PKG_MAINTAINER:=Stijn Segers <borromini.reg@protonmail.com>
  17. PKG_LICENSE:=GPL-2.0-or-later
  18. PKG_LICENSE_FILES:=COPYING
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/mii-tool
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=configure media type using MII commands
  24. URL:=http://net-tools.sourceforge.net/
  25. endef
  26. define Package/mii-tool/description
  27. The mii-tool command allows you to set or autodetect the media type
  28. or mii chipset-based ethernet devices. It traditionally had been
  29. distributed in the net-tools package. This is a single distribution
  30. optimized for embedded systems and fully automated cross/-sysroot-builds
  31. endef
  32. define Build/Configure
  33. # Failed configure.sh leaves stub config.h around.
  34. rm -f $(PKG_BUILD_DIR)/config.h
  35. ( cd $(PKG_BUILD_DIR); yes $$$$'\n' | ./configure.sh config.in )
  36. endef
  37. define Package/mii-tool/install
  38. $(INSTALL_DIR) $(1)/usr/sbin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mii-tool $(1)/usr/sbin/
  40. endef
  41. $(eval $(call BuildPackage,mii-tool))