Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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:=6.3
  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:=d9425f0a3df138734001fccc4175fe178c025f938460ac25c4ebc39960168822
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:kernel:ethtool
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  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. VARIANT:=tiny
  28. CONFLICTS:=ethtool-full
  29. endef
  30. define Package/ethtool-full
  31. $(Package/ethtool)
  32. TITLE += (full)
  33. VARIANT:=full
  34. PROVIDES:=ethtool
  35. DEPENDS:=+libmnl
  36. CONFLICTS:=
  37. endef
  38. define Package/ethtool/description
  39. ethtool is a small utility for examining and tuning your ethernet-based
  40. network interface
  41. endef
  42. Package/ethtool-full/description:=$(Package/ethtool/description)
  43. ifeq ($(BUILD_VARIANT),full)
  44. CONFIGURE_ARGS += --enable-netlink --enable-pretty-dump
  45. else
  46. CONFIGURE_ARGS += --disable-netlink --disable-pretty-dump
  47. endif
  48. define Package/ethtool/install
  49. $(INSTALL_DIR) $(1)/usr/sbin
  50. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ethtool $(1)/usr/sbin
  51. endef
  52. Package/ethtool-full/install=$(Package/ethtool/install)
  53. $(eval $(call BuildPackage,ethtool))
  54. $(eval $(call BuildPackage,ethtool-full))