Created attachment 219409 [details] patch to add gsocket to net This is a request to add gsocket to the net category in ports tree. The gsocket code is maintained in GitHub and may be found https://github.com/hackerschoice/gsocket/. While I have done some various contributions in the past, this would be my first port, so please excuse any issues. Thanks for your help.
Created attachment 219412 [details] Proposed changes I've done few fixes to make it align with the ports tree better. Please check and test it. Thanks!
Created attachment 219413 [details] Proposed changes Fix pkg-plist
Ahhh Nice... thank you. I had seen similar, but was uncertain as to exactly how that worked. Thank you for these changes. It works for me.
A commit references this bug: Author: lwhsu Date: Sat Nov 7 08:06:19 UTC 2020 New revision: 554346 URL: https://svnweb.freebsd.org/changeset/ports/554346 Log: Add net/gsocket Allows two users behind NAT/Firewall to establish a TCP connection. PR: 250917 Submitted by: Andrew Reiter <arr@watson.org> Changes: head/net/Makefile head/net/gsocket/ head/net/gsocket/Makefile head/net/gsocket/distinfo head/net/gsocket/pkg-descr head/net/gsocket/pkg-plist
Thank you for the help
Any reason not use tarball? https://github.com/hackerschoice/gsocket/releases/download/v1.4.22/gsocket-1.4.22.tar.gz
(In reply to daniel.engberg.lists from comment #6) No reason in particular. Do you advocate for the tar ball for any specific reason?
Hi, It's recommended in Porter's Handbook (5.4.3), removes the need to run autoreconf and prevents against GitHub from protentially changing checksum of source tarball.
(In reply to daniel.engberg.lists from comment #8) Yes it's indeed preferred. Sorry that I didn't notice that when modifying the port. Andrew, do you want to update it?
(In reply to Li-Wen Hsu from comment #9) Ok, all that makes sense, Daniel. Sure I will give this a go. I won't get to this until Thursday or Friday, jfyi. Thanks, Best, Andrew
Created attachment 219602 [details] updated patch to use tarball as source Attaching patch that changes this port to use the release tar ball instead of github and branch. Thank you for pointing this out. Please let me know if there are any concerns or issues.
Just pinging to see if you had a chance to review the diff that changes this port to use the release tar ball instead of the GitHub method? Thank you for any help.
A commit references this bug: Author: lwhsu Date: Tue Nov 24 16:55:39 UTC 2020 New revision: 556177 URL: https://svnweb.freebsd.org/changeset/ports/556177 Log: net/gsocket: use release tar ball instead of github generated snapshot PR: 250917 Submitted by: Andrew Reiter <arr@watson.org> (maintainer) Changes: head/net/gsocket/Makefile head/net/gsocket/distinfo
(In reply to Andrew Reiter from comment #12) Sorry for the delay, committed with slight modifications.
(In reply to Li-Wen Hsu from comment #14) No worries at all. Thank you!