mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
10
package/net-tools/Config.in
Normal file
10
package/net-tools/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_NET_TOOLS
|
||||
bool "net-tools"
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
help
|
||||
A collection of programs that form the base set of the NET-3
|
||||
networking distribution for the Linux operating system.
|
||||
Includes: arp, hostname, ifconfig, netstat, rarp, route,
|
||||
plipconfig, slattach, mii-tool, iptunnel and ipmaddr.
|
||||
|
||||
http://sourceforge.net/projects/net-tools/
|
||||
2
package/net-tools/net-tools.hash
Normal file
2
package/net-tools/net-tools.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 f7cfe9e73825bac9ab1a6f99d1fc7f54bfd9d33a6f62ba58d28a566905c4e86c net-tools-479bb4a7e11a4084e2935c0a576388f92469225b.tar.gz
|
||||
46
package/net-tools/net-tools.mk
Normal file
46
package/net-tools/net-tools.mk
Normal file
@@ -0,0 +1,46 @@
|
||||
################################################################################
|
||||
#
|
||||
# net-tools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NET_TOOLS_VERSION = 479bb4a7e11a4084e2935c0a576388f92469225b
|
||||
NET_TOOLS_SITE = git://git.code.sf.net/p/net-tools/code
|
||||
NET_TOOLS_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
||||
NET_TOOLS_LICENSE = GPL-2.0+
|
||||
NET_TOOLS_LICENSE_FILES = COPYING
|
||||
|
||||
define NET_TOOLS_CONFIGURE_CMDS
|
||||
(cd $(@D); yes "" | ./configure.sh config.in )
|
||||
endef
|
||||
|
||||
# Enable I18N when appropiate
|
||||
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
||||
define NET_TOOLS_ENABLE_I18N
|
||||
$(SED) 's:I18N 0:I18N 1:' $(@D)/config.h
|
||||
endef
|
||||
endif
|
||||
|
||||
# Enable IPv6
|
||||
define NET_TOOLS_ENABLE_IPV6
|
||||
$(SED) 's:_AFINET6 0:_AFINET6 1:' $(@D)/config.h
|
||||
endef
|
||||
|
||||
NET_TOOLS_POST_CONFIGURE_HOOKS += NET_TOOLS_ENABLE_I18N NET_TOOLS_ENABLE_IPV6
|
||||
|
||||
define NET_TOOLS_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)" \
|
||||
$(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
# install renames conflicting binaries, update does not
|
||||
# ifconfig & route reside in /sbin for busybox, so ensure we don't end
|
||||
# up with two versions of those.
|
||||
define NET_TOOLS_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) update
|
||||
mv -f $(TARGET_DIR)/bin/ifconfig $(TARGET_DIR)/sbin/ifconfig
|
||||
mv -f $(TARGET_DIR)/bin/route $(TARGET_DIR)/sbin/route
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user