No Description

Makefile 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.2
  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:=8433e71a256678d859ecc264132063c5
  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))