<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <b class="gmail_sendername" dir="auto">Keto</b> <span dir="auto"><<a href="mailto:therealketo@gmail.com">therealketo@gmail.com</a>></span><br>Date: Wed, Feb 14, 2024 at 10:16 PM<br>Subject: Re: Port retirement / replacement?<br>To: Austin Ziegler <<a href="mailto:halostatue@gmail.com">halostatue@gmail.com</a>><br></div><br><br><div dir="ltr"><div><div>Austin,<br><br></div>The best way to retire an existing port for a modern iteration is to use the obsolete PortGroup [1]. The best example out there is the ports exa [2] and eza [3], but in short: follow up with creating a new port for the new iteration of an existing port, then add the obsolete PortGroup to the existing port, and point the repalced_by field to the name of the new port that deprecates the existing port.<br><br></div><div>Hope this helps,<br></div>Keto<br><br>[1] <a href="https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/obsolete-1.0.tcl" target="_blank">https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/obsolete-1.0.tcl</a><br>[2] <a href="https://github.com/macports/macports-ports/blob/master/sysutils/exa/Portfile" target="_blank">https://github.com/macports/macports-ports/blob/master/sysutils/exa/Portfile</a><br>[3] <a href="https://github.com/macports/macports-ports/blob/master/sysutils/eza/Portfile" target="_blank">https://github.com/macports/macports-ports/blob/master/sysutils/eza/Portfile</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 14, 2024 at 10:04 PM Austin Ziegler <<a href="mailto:halostatue@gmail.com" target="_blank">halostatue@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">There is a port net/cidr, which is based on code last updated in 2001. The homepage and master_sites all appear to be unreachable (I found the core code at <a href="https://web.archive.org/web/20020805173333/http://geeksoul.com/robert/cidr/current/cidr.c" target="_blank">https://web.archive.org/web/20020805173333/http://geeksoul.com/robert/cidr/current/cidr.c</a>, but that is the only code responding). There is no maintainer, and the only checksum is md5. I haven't quite figured out whether there are other places this code can be found (other than perhaps `sudo port fetch`)…but I am not sure it is worth preserving in MacPorts, because it only deals with IPv4 CIDR manipulation.<div><br></div><div>There are more modern CLIs, like <a href="https://github.com/bschaatsbergen/cidr" target="_blank">https://github.com/bschaatsbergen/cidr</a>, written in Go, that know how to deal with both IPv4 and IPv6 and do more besides.</div><div><br></div><div>What's the process for retiring a port like this one or replacing the implementation with something more modern? If I were to want to introduce the cidr CLI in go, I would probably make a `net/go-cidr` port, and I know that if we were to just drop it in it would need a new epoch (because the versions are radically different).</div><div><br></div><div>-a<div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Austin Ziegler • <a href="mailto:halostatue@gmail.com" target="_blank">halostatue@gmail.com</a> • <a href="mailto:austin@halostatue.ca" target="_blank">austin@halostatue.ca</a><br><a href="http://www.halostatue.ca/" target="_blank">http://www.halostatue.ca/</a> • <a href="http://twitter.com/halostatue" target="_blank">http://twitter.com/halostatue</a></div></div></div></div>
</blockquote></div>
</div></div>