package/ipcalc: new package
PATCH 1/1 package/ipcalc: new package
ipcalc is an ancient and venerable tool for manipulating IP addresses, networks, & interfaces from shell scripts. There is a subtool in busybox, but it does not support everything the upstream tool [1] supports.
[1] https://gitlab.com/ipcalc/ipcalc
--- DEVELOPERS | 3 ++ package/Config.in | 1 + package/busybox/busybox.mk | 1 + ...not-fail-to-build-if-ronn-is-missing.patch | 49 +++++++++++++++++++ .../0002-Include-stdarg-for-va_list.patch | 29 +++++++++++ package/ipcalc/Config.in | 9 ++++ package/ipcalc/ipcalc.hash | 3 ++ package/ipcalc/ipcalc.mk | 17 +++++++ 8 files changed, 112 insertions(+) create mode 100644 package/ipcalc/0001-Do-not-fail-to-build-if-ronn-is-missing.patch create mode 100644 package/ipcalc/0002-Include-stdarg-for-va_list.patch create mode 100644 package/ipcalc/Config.in create mode 100644 package/ipcalc/ipcalc.hash create mode 100644 package/ipcalc/ipcalc.mk
DEVELOPERS +3 -0
@@ -731,6 +731,9 @@ F: package/tcllib/ N: Denis Bodor <[email protected]> F: package/libstrophe/ +N: Derrick Lyndon Pallas <[email protected]> +F: package/ipcalc/ + N: Dimitrios Siganos <[email protected]> F: package/wireless-regdb/
package/Config.in +1 -0
@@ -2108,6 +2108,7 @@ menu "Networking applications" source "package/igmpproxy/Config.in" source "package/inadyn/Config.in" source "package/iodine/Config.in" + source "package/ipcalc/Config.in" source "package/iperf/Config.in" source "package/iperf3/Config.in" source "package/iproute2/Config.in"
package/busybox/busybox.mk +1 -0
@@ -42,6 +42,7 @@ BUSYBOX_DEPENDENCIES = \ $(if $(BR2_PACKAGE_IFENSLAVE),ifenslave) \ $(if $(BR2_PACKAGE_IFPLUGD),ifplugd) \ $(if $(BR2_PACKAGE_IFUPDOWN),ifupdown) \ + $(if $(BR2_PACKAGE_IPCALC),ipcalc) \ $(if $(BR2_PACKAGE_IPROUTE2),iproute2) \ $(if $(BR2_PACKAGE_IPUTILS),iputils) \ $(if $(BR2_PACKAGE_KMOD),kmod) \
package/ipcalc/0001-Do-not-fail-to-build-if-ronn-is-missing.patch new file +49 -0
49 lines not on this page · raw message
package/ipcalc/0002-Include-stdarg-for-va_list.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 7795c02fb1e0f5fdbdf949007e52684c590235d4 Mon Sep 17 00:00:00 2001 +From: Derrick Lyndon Pallas <[email protected]> +Date: Wed, 14 Oct 2020 18:40:38 +0000 +Subject: [PATCH 2/2] Include stdarg for va_list + +While several function signatures use va_list, stdarg was never included. +This fixes that. + +Signed-off-by: Derrick Lyndon Pallas <[email protected]> +--- + ipcalc.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/ipcalc.h b/ipcalc.h +index 0e81320..a220dc5 100644 +--- a/ipcalc.h ++++ b/ipcalc.h +@@ -20,6 +20,8 @@ + #ifndef _IPCALC_H + #define _IPCALC_H + ++#include <stdarg.h> /* for va_list */ ++ + #if defined(USE_GEOIP) + void geo_ip_lookup(const char *ip, char **country, char **ccode, char **city, char **coord); + int geo_setup(void); +-- +2.28.0 +
package/ipcalc/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_IPCALC + bool "ipcalc" + help + A modern IPv4/IPv6 ipcalc tool, assisting in network calculations + in command line and as a tool for scripts. + + https://gitlab.com/ipcalc/ipcalc + + depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
package/ipcalc/ipcalc.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 d7aca371335ab3e35364bcfe34cd0229db005be8bebb9236608ec318cb3f7748 ipcalc-1.0.0.tar.bz2 +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
package/ipcalc/ipcalc.mk new file +17 -0
@@ -0,0 +1,17 @@ +################################################################################ +# +# ipcalc +# +################################################################################ + +IPCALC_VERSION = 1.0.0 +IPCALC_SITE = https://gitlab.com/ipcalc/ipcalc/-/archive/$(IPCALC_VERSION) +IPCALC_SOURCE = ipcalc-$(IPCALC_VERSION).tar.bz2 +IPCALC_LICENSE = GPL-2.0+ +IPCALC_LICENSE_FILES = COPYING + +IPCALC_CONF_OPTS = \ + -Duse_maxminddb=disabled \ + -Duse_geoip=disabled + +$(eval $(meson-package))
Signature · 1 line
2.28.0
PATCH 1/1 package/ipcalc: new package
Quoted 7 lines · Derrick Lyndon Pallas
ipcalc is an ancient and venerable tool for manipulating IP addresses, networks, & interfaces from shell scripts. There is a subtool in busybox, but it does not support everything the upstream tool [1] supports.
[1] https://gitlab.com/ipcalc/ipcalc
Signed-off-by Derrick Lyndon Pallas <[email protected]>
Just a note: I did run utils/test-pkg (at the suggestion of Thomas Petazzoni) and there were no failures. ~Derrick
Thomas Petazzoni
AppliedPATCH 1/1 package/ipcalc: new package
In reply to Derrick Lyndon PallasQuoted 7 lines · On Wed, 14 Oct 2020 19:06:14 +0000 Derrick Lyndon Pallas <[email protected]>…
ipcalc is an ancient and venerable tool for manipulating IP addresses, networks, & interfaces from shell scripts. There is a subtool in busybox, but it does not support everything the upstream tool [1] supports.
[1] https://gitlab.com/ipcalc/ipcalc
Signed-off-by Derrick Lyndon Pallas <[email protected]>
Quoted 15 lines
--- DEVELOPERS | 3 ++ package/Config.in | 1 + package/busybox/busybox.mk | 1 + ...not-fail-to-build-if-ronn-is-missing.patch | 49 +++++++++++++++++++ .../0002-Include-stdarg-for-va_list.patch | 29 +++++++++++ package/ipcalc/Config.in | 9 ++++ package/ipcalc/ipcalc.hash | 3 ++ package/ipcalc/ipcalc.mk | 17 +++++++ 8 files changed, 112 insertions(+) create mode 100644 package/ipcalc/0001-Do-not-fail-to-build-if-ronn-is-missing.patch create mode 100644 package/ipcalc/0002-Include-stdarg-for-va_list.patch create mode 100644 package/ipcalc/Config.in create mode 100644 package/ipcalc/ipcalc.hash create mode 100644 package/ipcalc/ipcalc.mk
Applied to master, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com