Created attachment 206536 [details]
The shar file
The package subnetcalc has been missing in the FreeBSD ports. Therefore, I have created a port.
SubNetCalc is an IPv4/IPv6 subnet address calculator. For given IPv4 or IPv6 address and netmask or prefix length, it calculates network address, broadcast address, maximum number of hosts and host address range. The output is colourized for better readability (e.g. network part, host part). Also, it prints the addresses in binary format for better understandability. Furthermore, it can identify the address type (e.g. multicast, unique local, site local, etc.) and extract additional information from the address (e.g. type, scope, interface ID, etc.). Finally, it can generate IPv6 unique local prefixes.
Homepage of subnetcalc: https://www.uni-due.de/~be0001/subnetcalc/
Fix: The shar file subnetcalc-2.4.14.shar is attached.
This did exist at one point, but was removed from the tree. Can you please do a diff against this version of the tree: https://svnweb.freebsd.org/ports/head/net/subnetcalc/?pathrev=493048
And attach a diff.
This was my analysis, however if I am incorrect, let us have a dialog about this.
Created attachment 206622 [details]
patch based off of r493048 of port
Attached is a patch based of of r493048 of port. Please review.
The patch looks fine. Thank you!
A commit references this bug:
Date: Mon Aug 19 19:22:26 UTC 2019
New revision: 509302
- revive net/subnetcalc
- update to 2.4.14
- no geoip support, and lack of replacement
- maintainer plans to implement libmaxminddb
PR: 239854 (based on)
Submitted by: email@example.com (maintainer)
Thanks for your contribution!