summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Weber <mlweber1@rockwellcollins.com>2013-09-19 15:17:52 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-09-19 19:02:28 (GMT)
commit21b61dead001125cfd63142dd9aa67016e8c7a45 (patch)
tree383a5dcd195bfd334115c8c2d2d91dd72725f280
parent8ced4129aef2dd7f40c920c6be2607334c1f60d9 (diff)
downloadbuildroot-21b61dead001125cfd63142dd9aa67016e8c7a45.tar.gz
buildroot-21b61dead001125cfd63142dd9aa67016e8c7a45.tar.bz2
iputils: new package
[Peter: fix _LICENSE_FILES] Signed-off-by: Matt Weber <mlweber1@rockwellcollins.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/iputils/Config.in8
-rw-r--r--package/iputils/iputils.mk53
3 files changed, 62 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 779e9da..ae0214c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -794,6 +794,7 @@ source "package/iproute2/Config.in"
source "package/ipsec-tools/Config.in"
source "package/ipset/Config.in"
source "package/iptables/Config.in"
+source "package/iputils/Config.in"
source "package/iw/Config.in"
source "package/kismet/Config.in"
source "package/knock/Config.in"
diff --git a/package/iputils/Config.in b/package/iputils/Config.in
new file mode 100644
index 0000000..0c77b5f
--- /dev/null
+++ b/package/iputils/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_IPUTILS
+ bool "iputils"
+ select BR2_OPENSSL if BR2_INET_IPV6
+ help
+ This package is set of small useful utilities for Linux networking.
+ It includes complete versions of ping, traceroute, etc.
+
+ http://sourceforge.net/projects/iputils/
diff --git a/package/iputils/iputils.mk b/package/iputils/iputils.mk
new file mode 100644
index 0000000..33665f6
--- /dev/null
+++ b/package/iputils/iputils.mk
@@ -0,0 +1,53 @@
+################################################################################
+#
+# iputils
+#
+################################################################################
+
+IPUTILS_VERSION = s20121011
+IPUTILS_SITE = http://www.skbuff.net/iputils/
+IPUTILS_SOURCE = iputils-$(IPUTILS_VERSION).tar.bz2
+IPUTILS_LICENSE = GPLv2+ BSD-3c
+# Only includes a license file for BSD
+IPUTILS_LICENSE_FILES = ninfod/COPYING
+
+# Build after busybox so target ends up with this package's full
+# versions of the applications instead of busybox applets.
+ifeq ($(BR2_PACKAGE_BUSYBOX),y)
+IPUTILS_DEPENDENCIES += busybox
+endif
+
+# Disabling CAP_SETPCAP (file capabilities)
+IPUTILS_MAKE_OPT = $(TARGET_CONFIGURE_OPTS) USE_CAP=no USE_SYSFS=no\
+ CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \
+ arping clockdiff ping rarpd rdisc tftpd tracepath
+
+ifeq ($(BR2_INET_IPV6),y)
+# To support md5 for ping6
+IPUTILS_DEPENDENCIES += openssl
+
+IPUTILS_MAKE_OPT += ping6 tracepath6 traceroute6
+
+define IPUTILS_IPV6_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 755 $(@D)/ping6 $(TARGET_DIR)/bin/ping6
+ $(INSTALL) -D -m 755 $(@D)/tracepath6 $(TARGET_DIR)/bin/tracepath6
+ $(INSTALL) -D -m 755 $(@D)/traceroute6 $(TARGET_DIR)/bin/traceroute6
+endef
+endif
+
+define IPUTILS_BUILD_CMDS
+ $(MAKE) -C $(@D) $(IPUTILS_MAKE_OPT)
+endef
+
+define IPUTILS_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 755 $(@D)/arping $(TARGET_DIR)/sbin/arping
+ $(INSTALL) -D -m 755 $(@D)/clockdiff $(TARGET_DIR)/bin/clockdiff
+ $(INSTALL) -D -m 755 $(@D)/ping $(TARGET_DIR)/bin/ping
+ $(INSTALL) -D -m 755 $(@D)/rarpd $(TARGET_DIR)/sbin/rarpd
+ $(INSTALL) -D -m 755 $(@D)/rdisc $(TARGET_DIR)/sbin/rdisc
+ $(INSTALL) -D -m 755 $(@D)/tftpd $(TARGET_DIR)/usr/sbin/in.tftpd
+ $(INSTALL) -D -m 755 $(@D)/tracepath $(TARGET_DIR)/bin/tracepath
+ $(IPUTILS_IPV6_INSTALL_TARGET_CMDS)
+endef
+
+$(eval $(generic-package))