2007-08-13 15:32:15 +00:00
|
|
|
#
|
2010-02-18 05:57:08 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2007-08-13 15:32:15 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mii-tool
|
2014-04-30 22:26:12 +00:00
|
|
|
PKG_VERSION:=2014-02-18
|
2007-08-13 15:32:15 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2014-04-30 22:26:12 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=git://git.code.sf.net/p/net-tools/code
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=68a4d784daaf5fb3449808e434e8cbb9625988e6
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-08-13 15:32:15 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mii-tool
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=configure media type using MII commands
|
2010-02-18 05:57:08 +00:00
|
|
|
URL:=http://freshmeat.net/projects/mii-tool/
|
2007-08-13 15:32:15 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/mii-tool/description
|
|
|
|
The mii-tool command allows you to set or autodetect the media type
|
|
|
|
or mii chipset-based ethernet devices. It traditionally had been
|
|
|
|
distributed in the net-tools package. This is a single distribution
|
|
|
|
optimized for embedded systems and fully automated cross/-sysroot-builds
|
|
|
|
endef
|
|
|
|
|
2014-04-30 22:26:12 +00:00
|
|
|
define Build/Configure
|
|
|
|
# Failed configure.sh leaves stub config.h around.
|
|
|
|
rm -f $(PKG_BUILD_DIR)/config.h
|
|
|
|
(cd $(PKG_BUILD_DIR) && yes $$$$'\n' | ./configure.sh config.in )
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/Default,mii-tool)
|
|
|
|
endef
|
2007-08-13 15:32:15 +00:00
|
|
|
|
2010-02-18 05:57:08 +00:00
|
|
|
define Package/mii-tool/install
|
2007-08-13 15:32:15 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/mii-tool $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mii-tool))
|