traceroute: new package
authorSergio Prado <sergio.prado@e-labworks.com>
Sat, 16 Dec 2017 13:01:49 +0000 (11:01 -0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 16 Dec 2017 15:03:17 +0000 (16:03 +0100)
Tested on Beaglebone Black.

Build-tested with test-pkg.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
[Thomas:
 - remove file removal in install command
 - use DESTDIR and prefix instead of just prefix in install command.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
DEVELOPERS
package/Config.in
package/traceroute/Config.in [new file with mode: 0644]
package/traceroute/traceroute.hash [new file with mode: 0644]
package/traceroute/traceroute.mk [new file with mode: 0644]

index de600f5276d0e4d241acca4bd15aa6feff9ab123..af221bd8a3752e7c30a69c3f69a2bbc787a16164 100644 (file)
@@ -1547,6 +1547,7 @@ N:        Sergio Prado <sergio.prado@e-labworks.com>
 F:     package/libgdiplus/
 F:     package/mongodb/
 F:     package/stella/
+F:     package/traceroute/
 F:     package/tunctl/
 F:     package/ubus/
 
index a81408db68df1994f80ca475de10d7a88e8f86bc..4fa5762ef47627a965bc59af1e495c144dedff17 100644 (file)
@@ -1805,6 +1805,7 @@ endif
        source "package/tinyhttpd/Config.in"
        source "package/tn5250/Config.in"
        source "package/tor/Config.in"
+       source "package/traceroute/Config.in"
        source "package/transmission/Config.in"
        source "package/tunctl/Config.in"
        source "package/tvheadend/Config.in"
diff --git a/package/traceroute/Config.in b/package/traceroute/Config.in
new file mode 100644 (file)
index 0000000..42ae5a3
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_TRACEROUTE
+       bool "traceroute"
+       help
+         A new modern implementation of the traceroute(8) utility for
+         Linux systems. It tracks the route packets taken from an IP
+         network on their way to a given host.
+
+         http://traceroute.sourceforge.net/
diff --git a/package/traceroute/traceroute.hash b/package/traceroute/traceroute.hash
new file mode 100644 (file)
index 0000000..b952548
--- /dev/null
@@ -0,0 +1,6 @@
+# Locally computed:
+sha256 3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6  traceroute-2.1.0.tar.gz
+
+# Hash for license files:
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
+sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING.LIB
diff --git a/package/traceroute/traceroute.mk b/package/traceroute/traceroute.mk
new file mode 100644 (file)
index 0000000..5d185a2
--- /dev/null
@@ -0,0 +1,29 @@
+################################################################################
+#
+# traceroute
+#
+################################################################################
+
+TRACEROUTE_VERSION = 2.1.0
+TRACEROUTE_SOURCE = traceroute-$(TRACEROUTE_VERSION).tar.gz
+TRACEROUTE_SITE = http://downloads.sourceforge.net/traceroute/traceroute/traceroute-$(TRACEROUTE_VERSION)
+
+TRACEROUTE_LICENSE = GPL-2.0+, LGPL-2.1+
+TRACEROUTE_LICENSE_FILES = COPYING COPYING.LIB
+
+# Prefer full-featured traceroute over busybox's version
+ifeq ($(BR2_PACKAGE_BUSYBOX),y)
+TRACEROUTE_DEPENDENCIES += busybox
+endif
+
+define TRACEROUTE_BUILD_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
+               CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" -C $(@D)
+endef
+
+define TRACEROUTE_INSTALL_TARGET_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
+               DESTDIR=$(TARGET_DIR) prefix=/usr install -C $(@D)
+endef
+
+$(eval $(generic-package))