2 # Copyright (C) 2006-2010 OpenWrt.org
3 # Copyright (C) 2016 Stijn Segers
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE_DATE
:=2018-11-03
13 PKG_SOURCE_VERSION
:=0eebece8c964e3cfa8a018f42b2e7e751a7009a0
17 PKG_SOURCE_URL
:=https
://git.code.sf.net
/p
/net-tools
/code
18 PKG_MIRROR_HASH
:=9d978b9f8ccae4af623a299155c62d9b3d31213182c785f925bf8704d48a04c9
20 PKG_MAINTAINER
:=Stijn Segers
<borromini.reg@protonmail.com
>
21 PKG_LICENSE
:=GPL-2.0
-or-later
22 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/mii-tool
29 TITLE
:=configure media type using MII commands
30 URL
:=http
://net-tools.sourceforge.net
/
33 define Package
/mii-tool
/description
34 The mii-tool command allows you to set or autodetect the media type
35 or mii chipset-based ethernet devices. It traditionally had been
36 distributed in the net-tools package. This is a single distribution
37 optimized for embedded systems and fully automated cross
/-sysroot-builds
40 define Package
/net-tools-route
43 TITLE
:=net-tools
- route utility
44 URL
:=http
://net-tools.sourceforge.net
/
46 ALTERNATIVES
:=300:/sbin
/route
:/usr
/libexec
/net-tools-route
49 define Package
/net-tools-route
/description
50 Replace busybox version of the route command with the full net-tools
51 version. This is normally not needed
as busybox is smaller and provides
52 sufficient functionality
, but some users may want or need the full
53 functionality of the net-tools variant
(e.g. AF_X25
).
56 define Build
/Configure
57 # Failed configure.sh leaves stub config.h around.
58 rm -f
$(PKG_BUILD_DIR
)/config.h
59 ( cd
$(PKG_BUILD_DIR
); yes
$$$$'\n' | .
/configure.sh config.in
)
62 define Package
/mii-tool
/install
63 $(INSTALL_DIR
) $(1)/usr
/sbin
64 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mii-tool
$(1)/usr
/sbin
/
67 define Package
/net-tools-route
/install
68 $(INSTALL_DIR
) $(1)/usr
/libexec
69 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/route
$(1)/usr
/libexec
/net-tools-route
72 $(eval
$(call BuildPackage
,mii-tool
))
73 $(eval
$(call BuildPackage
,net-tools-route
))