2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/gkernel
17 PKG_MD5SUM:=b4e71f7fa2629250677eefcb338442c5
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/ethtool
28 TITLE:=Display or change ethernet card settings
30 ethtool is used for querying settings of an ethernet device and changing them.
31 URL:=http://sourceforge.net/projects/gkernel/
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 DESTDIR="$(PKG_INSTALL_DIR)" \
42 define Package/ethtool/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ethtool $(1)/usr/sbin/
47 $(eval $(call BuildPackage,ethtool))