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.

57 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  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:=ethtool
  9. PKG_VERSION:=4.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=@KERNEL/software/network/ethtool
  14. PKG_MD5SUM:=37c77b02556255e4122c3636f75a8646
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_CONFIG_DEPENDS:=ETHTOOL_PRETTY_DUMP
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/ethtool
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=Display or change ethernet card settings
  26. URL:=http://www.kernel.org/pub/software/network/ethtool/
  27. endef
  28. define Package/ethtool/description
  29. ethtool is a small utility for examining and tuning your ethernet-based
  30. network interface
  31. endef
  32. define Package/ethtool/config
  33. source "$(SOURCE)/Config.in"
  34. endef
  35. ifeq ($(CONFIG_ETHTOOL_PRETTY_DUMP),y)
  36. CONFIGURE_ARGS += --enable-pretty-dump
  37. else
  38. CONFIGURE_ARGS += --disable-pretty-dump
  39. endif
  40. define Package/ethtool/install
  41. $(INSTALL_DIR) $(1)/usr/sbin
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ethtool $(1)/usr/sbin
  43. endef
  44. $(eval $(call BuildPackage,ethtool))