Update ethtool to version 6 (#3620)
[openwrt/svn-archive/archive.git] / net / ethtool / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ethtool
12 PKG_VERSION:=6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/gkernel
17 PKG_MD5SUM:=3b721ec27f17ebf320ba8c505cf66d9c
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ethtool
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=Display or change ethernet card settings
25 URL:=http://sourceforge.net/projects/gkernel/
26 endef
27
28 define Package/ethtool/description
29 ethtool is used for querying settings of an ethernet device and changing them.
30 endef
31
32 # uses GNU configure
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
37 all install
38 endef
39
40 define Package/ethtool/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ethtool $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,ethtool))