366c37fc0194aa4241a5b2191c4ba6897af2fb34
[openwrt/svn-archive/archive.git] / net / mii-tool / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mii-tool
11 PKG_VERSION:=1.9.1.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://freshmeat.net/redir/mii-tool/59072/url_bz2/
16 PKG_MD5SUM:=f65dbeb1c2392acffd4c94138b1f2e52
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/mii-tool
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=configure media type using MII commands
24 URL:=http://freshmeat.net/redir/mii-tool/
25 endef
26
27 define Package/mii-tool/description
28 The mii-tool command allows you to set or autodetect the media type
29 or mii chipset-based ethernet devices. It traditionally had been
30 distributed in the net-tools package. This is a single distribution
31 optimized for embedded systems and fully automated cross/-sysroot-builds
32 endef
33
34 MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE -I. -idirafter ./include/"
35
36 define Package/mii-tool/install
37 $(INSTALL_DIR) $(1)/usr/sbin
38 $(CP) $(PKG_BUILD_DIR)/mii-tool $(1)/usr/sbin/
39 endef
40
41 $(eval $(call BuildPackage,mii-tool))