package/netcalc: new package
authorJoachim Wiberg <troglobit@gmail.com>
Fri, 18 Sep 2020 06:04:26 +0000 (08:04 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 19 Sep 2020 12:52:33 +0000 (14:52 +0200)
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.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Reviewed-by: Michael Nosthoff <buildroot@heine.tech>
Tested-by: Michael Nosthoff <buildroot@heine.tech>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/netcalc/Config.in [new file with mode: 0644]
package/netcalc/netcalc.hash [new file with mode: 0644]
package/netcalc/netcalc.mk [new file with mode: 0644]

index c5124f97ef9991b7393a7075c3c612e46c454ffd..506e675587ecbbbbbd09d8dd91f2629f9eae44cc 100644 (file)
@@ -1310,6 +1310,7 @@ N:        Joachim Wiberg <troglobit@gmail.com>
 F:     configs/globalscale_espressobin_defconfig
 F:     board/globalscale/espressobin/
 F:     package/mg/
+F:     package/netcalc/
 
 N:     Joao Pinto <jpinto@synopsys.com>
 F:     board/synopsys/vdk/
index 7783c26dc637de3ffe7a8597cc4cee03fb78d687..2f3025289132a9df8e2751f7d10004187d43ebdc 100644 (file)
@@ -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"
diff --git a/package/netcalc/Config.in b/package/netcalc/Config.in
new file mode 100644 (file)
index 0000000..897cb87
--- /dev/null
@@ -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/
diff --git a/package/netcalc/netcalc.hash b/package/netcalc/netcalc.hash
new file mode 100644 (file)
index 0000000..34d64b1
--- /dev/null
@@ -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
diff --git a/package/netcalc/netcalc.mk b/package/netcalc/netcalc.mk
new file mode 100644 (file)
index 0000000..7d96fc5
--- /dev/null
@@ -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))