Skip to contentSkip to conversation

package/netcalc: new package

PATCH New Joachim Wiberg 3 participants 3 messages Sep 18, 2020 – Sep 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/netcalc: new package

netcalc is a slimmed down clone of sipcalc, using the popular output format of ipcalc (perl). It is written in C and only depends on a POSIX compliant C library. Both IPv4 and IPv6 are supported.

---
 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/netcalc/Config.in    |  8 ++++++++
 package/netcalc/netcalc.hash |  5 +++++
 package/netcalc/netcalc.mk   | 13 +++++++++++++
 5 files changed, 28 insertions(+)
 create mode 100644 package/netcalc/Config.in
 create mode 100644 package/netcalc/netcalc.hash
 create mode 100644 package/netcalc/netcalc.mk
DEVELOPERS +1 -0
index c5124f97ef..506e675587 100644
@@ -1310,6 +1310,7 @@ N:	Joachim Wiberg <[email protected]>
 F:	configs/globalscale_espressobin_defconfig
 F:	board/globalscale/espressobin/
 F:	package/mg/
+F:	package/netcalc/
 
 N:	Joao Pinto <[email protected]>
 F:	board/synopsys/vdk/
package/Config.in +1 -0
index 7783c26dc6..2f30252891 100644
@@ -2151,6 +2151,7 @@ menu "Networking applications"
 	source "package/ndisc6/Config.in"
 	source "package/net-tools/Config.in"
 	source "package/netatalk/Config.in"
+	source "package/netcalc/Config.in"
 	source "package/netcat/Config.in"
 	source "package/netcat-openbsd/Config.in"
 	source "package/netplug/Config.in"
package/netcalc/Config.in new file +8 -0
new file mode 100644
index 0000000000..897cb872c5
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_NETCALC
+	bool "netcalc"
+	help
+	  netcalc (40 kiB) is a slimmed down version of sipcalc
+	  using the popular output format of ipcalc.  Both IPv4
+	  and IPv6 are supported.
+
+	  https://github.com/troglobit/netcalc/
package/netcalc/netcalc.hash new file +5 -0
new file mode 100644
index 0000000000..34d64b1679
@@ -0,0 +1,5 @@
+# From https://github.com/troglobit/netcalc/releases/tag/v2.1.6
+md5 c8660b61370c76d866247fe65966a35b  netcalc-2.1.6.tar.gz
+# Locally computed:
+sha256 cff41782fcf63d7d4ce6d35f95ed302127f6ddf6fc0ca03a8188af95a7c3243b  netcalc-2.1.6.tar.gz
+sha256 745538f8d515d37af6f03442df982a8b211b129e8dc10d0195e33c4b42f8fe5f  LICENSE
package/netcalc/netcalc.mk new file +13 -0
new file mode 100644
index 0000000000..7d96fc53cf
@@ -0,0 +1,13 @@
+################################################################################
+#
+# netcalc
+#
+################################################################################
+
+NETCALC_VERSION = 2.1.6
+NETCALC_SITE = https://github.com/troglobit/netcalc/releases/download/v$(NETCALC_VERSION)
+NETCALC_LICENSE = BSD-3-Clause
+NETCALC_LICENSE_FILES = LICENSE
+NETCALC_CONF_OPTS = --disable-ipcalc-symlink
+
+$(eval $(autotools-package))
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 package/netcalc: new package

Hi,

Quoted 5 lines · Joachim Wiberg

netcalc is a slimmed down clone of sipcalc, using the popular output format of ipcalc (perl). It is written in C and only depends on a POSIX compliant C library. Both IPv4 and IPv6 are supported.

Looks good to me.

compiled with gcc 9.2.1 for and run on arm A15

Regards,

Michael

#2 lore raw

PATCH 1/1 package/netcalc: new package

In reply to Joachim Wiberg
Quoted 5 lines · On Fri, 18 Sep 2020 08:04:26 +0200 Joachim Wiberg <[email protected]> wrote:

netcalc is a slimmed down clone of sipcalc, using the popular output format of ipcalc (perl). It is written in C and only depends on a POSIX compliant C library. Both IPv4 and IPv6 are supported.

Quoted 10 lines
---
 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/netcalc/Config.in    |  8 ++++++++
 package/netcalc/netcalc.hash |  5 +++++
 package/netcalc/netcalc.mk   | 13 +++++++++++++
 5 files changed, 28 insertions(+)
 create mode 100644 package/netcalc/Config.in
 create mode 100644 package/netcalc/netcalc.hash
 create mode 100644 package/netcalc/netcalc.mk

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com