2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_SOURCE_URL
:=@KERNEL
/software
/network
/ethtool
17 PKG_HASH
:=c46b1eb417c78793dddb3247b89eb8f50f6e398e12ee4670b092b3570728c585
20 PKG_LICENSE_FILES
:=COPYING
26 PKG_CONFIG_DEPENDS
:=ETHTOOL_PRETTY_DUMP
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/ethtool
33 TITLE
:=Display or change ethernet card settings
34 URL
:=http
://www.kernel.org
/pub
/software
/network
/ethtool
/
37 define Package
/ethtool
/description
38 ethtool is a small utility for examining and tuning your ethernet-based
42 define Package
/ethtool
/config
43 config ETHTOOL_PRETTY_DUMP
44 depends on PACKAGE_ethtool
45 bool
"Enable pretty printing"
48 ifeq ($(CONFIG_ETHTOOL_PRETTY_DUMP
),y
)
49 CONFIGURE_ARGS
+= --enable-pretty-dump
51 CONFIGURE_ARGS
+= --disable-pretty-dump
54 define Package
/ethtool
/install
55 $(INSTALL_DIR
) $(1)/usr
/sbin
56 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ethtool
$(1)/usr
/sbin
59 $(eval
$(call BuildPackage
,ethtool
))