Merge pull request #3244 from tsl0922/ttyd
[feed/packages.git] / net / mii-tool / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 # Copyright (C) 2016 Stijn Segers
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mii-tool
12 PKG_VERSION=2016-07-10-$(PKG_SOURCE_VERSION)
13 PKG_RELEASE:=1
14 PKG_LICENSE:=GPL-2.0
15 PKG_MAINTAINER:=Stijn Segers <borromini.reg@protonmail.com>
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_URL:=git://git.code.sf.net/p/net-tools/code
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=115f1af2494ded1fcd21c8419d5e289bc4df380f
20 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/mii-tool
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=configure media type using MII commands
28 URL:=http://net-tools.sourceforge.net/
29 endef
30
31 define Package/mii-tool/description
32 The mii-tool command allows you to set or autodetect the media type
33 or mii chipset-based ethernet devices. It traditionally had been
34 distributed in the net-tools package. This is a single distribution
35 optimized for embedded systems and fully automated cross/-sysroot-builds
36 endef
37
38 define Build/Configure
39 # Failed configure.sh leaves stub config.h around.
40 rm -f $(PKG_BUILD_DIR)/config.h
41 (cd $(PKG_BUILD_DIR) && yes $$$$'\n' | ./configure.sh config.in )
42 endef
43
44 define Build/Compile
45 $(call Build/Compile/Default,mii-tool)
46 endef
47
48 define Package/mii-tool/install
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mii-tool $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,mii-tool))