From 3f0b37fbee3ef00513a8008f5517b0946f9d2d2e Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Mon, 9 May 2011 23:33:28 +0200 Subject: [PATCH] [openwrt] include the mii-tool package --- mote/v2/openwrt/.config | 7 +- mote/v2/openwrt/package/mii-tool/.svn/entries | 65 +++++++++++++++++++ .../mii-tool/.svn/text-base/Makefile.svn-base | 41 ++++++++++++ mote/v2/openwrt/package/mii-tool/Makefile | 41 ++++++++++++ .../package/mii-tool/patches/.svn/entries | 62 ++++++++++++++++++ .../001-include_linux_sockios.patch.svn-base | 12 ++++ .../patches/001-include_linux_sockios.patch | 12 ++++ 7 files changed, 237 insertions(+), 3 deletions(-) create mode 100644 mote/v2/openwrt/package/mii-tool/.svn/entries create mode 100644 mote/v2/openwrt/package/mii-tool/.svn/text-base/Makefile.svn-base create mode 100644 mote/v2/openwrt/package/mii-tool/Makefile create mode 100644 mote/v2/openwrt/package/mii-tool/patches/.svn/entries create mode 100644 mote/v2/openwrt/package/mii-tool/patches/.svn/text-base/001-include_linux_sockios.patch.svn-base create mode 100644 mote/v2/openwrt/package/mii-tool/patches/001-include_linux_sockios.patch diff --git a/mote/v2/openwrt/.config b/mote/v2/openwrt/.config index 3379e30..c6db749 100644 --- a/mote/v2/openwrt/.config +++ b/mote/v2/openwrt/.config @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# OpenWrt version: Backfire (r26713) -# Mon Apr 18 15:01:59 2011 +# OpenWrt version: Backfire (r26799) +# Mon May 9 21:25:41 2011 # CONFIG_HAVE_DOT_CONFIG=y # CONFIG_TARGET_ppc40x is not set @@ -1109,6 +1109,7 @@ CONFIG_PACKAGE_ntpclient=y # CONFIG_PACKAGE_avahi-autoipd is not set CONFIG_PACKAGE_avahi-daemon=y CONFIG_PACKAGE_avahi-dnsconfd=y +# CONFIG_PACKAGE_chat is not set # CONFIG_PACKAGE_crda is not set # CONFIG_PACKAGE_ebtables is not set # CONFIG_PACKAGE_ebtables-utils is not set @@ -1134,8 +1135,8 @@ CONFIG_PACKAGE_iptables-mod-nat=y # CONFIG_PACKAGE_iptables-mod-ulog is not set # CONFIG_PACKAGE_iptables-utils is not set # CONFIG_PACKAGE_iw is not set +CONFIG_PACKAGE_mii-tool=y CONFIG_PACKAGE_ppp=y -# CONFIG_PACKAGE_chat is not set # CONFIG_PACKAGE_ppp-mod-pppoa is not set CONFIG_PACKAGE_ppp-mod-pppoe=y # CONFIG_PACKAGE_ppp-mod-radius is not set diff --git a/mote/v2/openwrt/package/mii-tool/.svn/entries b/mote/v2/openwrt/package/mii-tool/.svn/entries new file mode 100644 index 0000000..7471e06 --- /dev/null +++ b/mote/v2/openwrt/package/mii-tool/.svn/entries @@ -0,0 +1,65 @@ +10 + +dir +26865 +svn://svn.openwrt.org/openwrt/packages/net/mii-tool +svn://svn.openwrt.org/openwrt + + + +2010-02-18T05:57:08.274103Z +19702 +swalker + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +patches +dir + +Makefile +file + + + + +2010-07-24T17:59:57.653388Z +643a840ccdc4c9045554eb5f11b42f51 +2010-02-18T05:57:08.274103Z +19702 +swalker + + + + + + + + + + + + + + + + + + + + + +1141 + diff --git a/mote/v2/openwrt/package/mii-tool/.svn/text-base/Makefile.svn-base b/mote/v2/openwrt/package/mii-tool/.svn/text-base/Makefile.svn-base new file mode 100644 index 0000000..ca63fb3 --- /dev/null +++ b/mote/v2/openwrt/package/mii-tool/.svn/text-base/Makefile.svn-base @@ -0,0 +1,41 @@ +# +# Copyright (C) 2006-2010 OpenWrt.org +# +# 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 +PKG_VERSION:=1.9.1.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://downloads.openwrt.org/sources +PKG_MD5SUM:=f65dbeb1c2392acffd4c94138b1f2e52 + +include $(INCLUDE_DIR)/package.mk + +define Package/mii-tool + SECTION:=net + CATEGORY:=Network + TITLE:=configure media type using MII commands + URL:=http://freshmeat.net/projects/mii-tool/ +endef + +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 + +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)) diff --git a/mote/v2/openwrt/package/mii-tool/Makefile b/mote/v2/openwrt/package/mii-tool/Makefile new file mode 100644 index 0000000..ca63fb3 --- /dev/null +++ b/mote/v2/openwrt/package/mii-tool/Makefile @@ -0,0 +1,41 @@ +# +# Copyright (C) 2006-2010 OpenWrt.org +# +# 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 +PKG_VERSION:=1.9.1.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://downloads.openwrt.org/sources +PKG_MD5SUM:=f65dbeb1c2392acffd4c94138b1f2e52 + +include $(INCLUDE_DIR)/package.mk + +define Package/mii-tool + SECTION:=net + CATEGORY:=Network + TITLE:=configure media type using MII commands + URL:=http://freshmeat.net/projects/mii-tool/ +endef + +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 + +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)) diff --git a/mote/v2/openwrt/package/mii-tool/patches/.svn/entries b/mote/v2/openwrt/package/mii-tool/patches/.svn/entries new file mode 100644 index 0000000..bdc3ae1 --- /dev/null +++ b/mote/v2/openwrt/package/mii-tool/patches/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +26865 +svn://svn.openwrt.org/openwrt/packages/net/mii-tool/patches +svn://svn.openwrt.org/openwrt + + + +2008-04-21T17:58:56.460113Z +10902 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +001-include_linux_sockios.patch +file + + + + +2010-07-24T17:59:57.653388Z +b7e234d20c3696d9eac1199bc5da5c4a +2008-04-21T17:58:56.460113Z +10902 +juhosg + + + + + + + + + + + + + + + + + + + + + +377 + diff --git a/mote/v2/openwrt/package/mii-tool/patches/.svn/text-base/001-include_linux_sockios.patch.svn-base b/mote/v2/openwrt/package/mii-tool/patches/.svn/text-base/001-include_linux_sockios.patch.svn-base new file mode 100644 index 0000000..3f11bf8 --- /dev/null +++ b/mote/v2/openwrt/package/mii-tool/patches/.svn/text-base/001-include_linux_sockios.patch.svn-base @@ -0,0 +1,12 @@ +Index: mii-tool-1.9.1.1/mii-tool.c +=================================================================== +--- mii-tool-1.9.1.1.orig/mii-tool.c ++++ mii-tool-1.9.1.1/mii-tool.c +@@ -50,6 +50,7 @@ static char version[] = + #include + #include + #endif ++#include + #include "mii.h" + + #define MAX_ETH 8 /* Maximum # of interfaces */ diff --git a/mote/v2/openwrt/package/mii-tool/patches/001-include_linux_sockios.patch b/mote/v2/openwrt/package/mii-tool/patches/001-include_linux_sockios.patch new file mode 100644 index 0000000..3f11bf8 --- /dev/null +++ b/mote/v2/openwrt/package/mii-tool/patches/001-include_linux_sockios.patch @@ -0,0 +1,12 @@ +Index: mii-tool-1.9.1.1/mii-tool.c +=================================================================== +--- mii-tool-1.9.1.1.orig/mii-tool.c ++++ mii-tool-1.9.1.1/mii-tool.c +@@ -50,6 +50,7 @@ static char version[] = + #include + #include + #endif ++#include + #include "mii.h" + + #define MAX_ETH 8 /* Maximum # of interfaces */