Bug 239854 - New port: net/subnetcalc -- IPv4/IPv6 Subnet Calculator
Summary: New port: net/subnetcalc -- IPv4/IPv6 Subnet Calculator
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jason Helfman
URL: https://www.uni-due.de/~be0001/subnet...
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-14 13:39 UTC by Thomas Dreibholz
Modified: 2019-08-19 21:22 UTC (History)
2 users (show)

See Also:
jgh: maintainer-feedback?


Attachments
The shar file (2.11 KB, text/plain)
2019-08-14 13:39 UTC, Thomas Dreibholz
no flags Details
patch based off of r493048 of port (1.31 KB, patch)
2019-08-16 18:10 UTC, Jason Helfman
jgh: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Dreibholz 2019-08-14 13:39:30 UTC
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.
Comment 1 Jason Helfman freebsd_committer freebsd_triage 2019-08-15 17:48:55 UTC
Hi,

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.

Thanks!
-jgh
Comment 2 Jason Helfman freebsd_committer freebsd_triage 2019-08-16 18:10:59 UTC
Created attachment 206622 [details]
patch based off of r493048 of port

Attached is a patch based of of r493048 of port. Please review.
Comment 3 Thomas Dreibholz 2019-08-19 19:00:40 UTC
The patch looks fine. Thank you!
Comment 4 commit-hook freebsd_committer freebsd_triage 2019-08-19 19:22:58 UTC
A commit references this bug:

Author: jgh
Date: Mon Aug 19 19:22:26 UTC 2019
New revision: 509302
URL: https://svnweb.freebsd.org/changeset/ports/509302

Log:
  - 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:	dreibh@iem.uni-due.de (maintainer)

Changes:
  head/MOVED
  head/net/Makefile
  head/net/subnetcalc/
  head/net/subnetcalc/Makefile
  head/net/subnetcalc/distinfo
Comment 5 Jason Helfman freebsd_committer freebsd_triage 2019-08-19 21:22:58 UTC
Thanks for your contribution!