From f6aa24a4d4ba740bcc43081526ba5f3e117fe3b4 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 13 Aug 2007 15:32:15 +0000 Subject: [PATCH] Add mii-tool, the separated version SVN-Revision: 8406 --- net/mii-tool/Makefile | 44 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 net/mii-tool/Makefile diff --git a/net/mii-tool/Makefile b/net/mii-tool/Makefile new file mode 100644 index 000000000..fef1a6cbe --- /dev/null +++ b/net/mii-tool/Makefile @@ -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)) -- 2.30.2