Add mii-tool, the separated version

git-svn-id: svn://svn.openwrt.org/openwrt/packages@8406 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2007-08-13 15:32:15 +00:00
parent f8133c0b11
commit 7a0d5163b4

44
net/mii-tool/Makefile Normal file
View File

@ -0,0 +1,44 @@
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: $
include $(TOPDIR)/rules.mk
PKG_NAME:=mii-tool
PKG_VERSION:=1.9.1.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://freshmeat.net/redir/mii-tool/59072/url_bz2/
PKG_MD5SUM:=f65dbeb1c2392acffd4c94138b1f2e52
PKG_CAT:=bzcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/mii-tool
SECTION:=net
CATEGORY:=Network
TITLE:=configure media type using MII commands
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
URL:=http://freshmeat.net/redir/mii-tool/
endef
MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE -I. -idirafter ./include/"
define Package/mii-tool/install
$(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_BUILD_DIR)/mii-tool $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,mii-tool))