On Sun, Dec 08, 2024 at 07:17:40PM +0000, Stuart Henderson wrote:
> On 2024/12/08 19:05, Caspar Schutijser wrote:
> > Hi,
> > 
> > On Sat, Dec 07, 2024 at 07:29:15AM +0000, Stepan Zolotuev wrote:
> > > Hi ports@,
> > > 
> > > Updated this port to latest release to fix the client software not
> > > working in my region. Now it works perfectly fine.
> > > 
> > > Maintainer CC'd.
> > > Diff is simple yet very large, so gzipped and attached.
> > 
> > I had a similar diff (I adjusted the sed invocation in the
> > post-extract target since the format string changed again) that
> > I was testing but I did not commit it yet. I committed the update now.
> > Thanks for your diff.
> 
> Perhaps worth doing this?
> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/net/snowflake_proxy/Makefile,v
> diff -u -p -r1.18 Makefile
> --- Makefile  8 Dec 2024 18:03:23 -0000       1.18
> +++ Makefile  8 Dec 2024 19:16:05 -0000
> @@ -23,7 +23,7 @@ ALL_TARGET= ./proxy/ ./client/ ./server/
>  
>  # done as a sed instead of patch because the path includes the version number
>  post-extract:
> -     sed -i 's/Relayed ↓ %v %v (%.2f %v%s), ↑ %v %v/Relayed IN %v %v (%.2f 
> %v%s), OUT %v %v/' \
> +     sed -i -e 's/↓/IN/' -e 's/↑/OUT/' \
>           ${WRKSRC}/common/event/interface.go
>  
>  post-install:

Good idea, I like it. Certainly more future-proof.

OK caspar@ if you want to commit it.

Reply via email to