Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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:=5.2
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=@KERNEL/software/network/ethtool
  14. PKG_HASH:=665fd70841860d6cb974387e3ab97e0dde7745f95cb3ef35b98ef9aace137805
  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:=CONFIG_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. config ETHTOOL_PRETTY_DUMP
  34. depends on PACKAGE_ethtool
  35. bool "Enable pretty printing"
  36. endef
  37. ifeq ($(CONFIG_ETHTOOL_PRETTY_DUMP),y)
  38. CONFIGURE_ARGS += --enable-pretty-dump
  39. else
  40. CONFIGURE_ARGS += --disable-pretty-dump
  41. endif
  42. define Package/ethtool/install
  43. $(INSTALL_DIR) $(1)/usr/sbin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ethtool $(1)/usr/sbin
  45. endef
  46. $(eval $(call BuildPackage,ethtool))