Add mii-tool, the separated version
authorFlorian Fainelli <florian@openwrt.org>
Mon, 13 Aug 2007 15:32:15 +0000 (15:32 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 13 Aug 2007 15:32:15 +0000 (15:32 +0000)
SVN-Revision: 8406

net/mii-tool/Makefile [new file with mode: 0644]

diff --git a/net/mii-tool/Makefile b/net/mii-tool/Makefile
new file mode 100644 (file)
index 0000000..fef1a6c
--- /dev/null
@@ -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))