1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-14 11:23:57 +02:00
openwrt-packages/net/mii-tool/Makefile
Matthias Kesler 19a8f81018 Change links from git://github.com to https://github.com
I got into troubles to be behind a proxy and my build then fails
because it cannot connect to git://github.com urls

To avoid such problems for others I think it is useful to replace
them for the whole repo. This changes make it work for me again.

Signed-off-by: Matthias Kesler <krombel@krombel.de>
2018-08-01 23:07:52 +02:00

54 lines
1.5 KiB
Makefile

#
# Copyright (C) 2006-2010 OpenWrt.org
# Copyright (C) 2016 Stijn Segers
#
# 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=2016-10-06-$(PKG_SOURCE_VERSION)
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://git.code.sf.net/p/net-tools/code
PKG_SOURCE_VERSION:=115f1af2494ded1fcd21c8419d5e289bc4df380f
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Stijn Segers <borromini.reg@protonmail.com>
include $(INCLUDE_DIR)/package.mk
define Package/mii-tool
SECTION:=net
CATEGORY:=Network
TITLE:=configure media type using MII commands
URL:=http://net-tools.sourceforge.net/
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
define Build/Configure
# Failed configure.sh leaves stub config.h around.
rm -f $(PKG_BUILD_DIR)/config.h
( cd $(PKG_BUILD_DIR); yes $$$$'\n' | ./configure.sh config.in )
endef
define Package/mii-tool/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mii-tool $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,mii-tool))