Bug 261851

Summary: [NEW PORT] www/kineto An HTTP to Gemini proxy
Product: Ports & Packages Reporter: Corey Hinshaw <corey>
Component: Individual Port(s)Assignee: Neel Chauhan <nc>
Status: Closed FIXED    
Severity: Affects Only Me CC: lwhsu, nc
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://git.sr.ht/~sircmpwn/kineto
Attachments:
Description Flags
kineto.patch
none
kineto-2.patch
none
kineto-3.patch none

Description Corey Hinshaw 2022-02-10 02:43:30 UTC
Created attachment 231699 [details]
kineto.patch

Adds new port for kineto, an HTTP to Gemini proxy server written in Go.

Homepage: https://git.sr.ht/~sircmpwn/kineto

Fetching the go modules is based on the approach in mail/aerc, but let me know if there are better ways to handle go modules from different sources.
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2022-02-10 06:57:01 UTC
This doesn't build in the poudriere: https://gist.github.com/c025af799b0af116ffeee7e67241b851

It looks like we need to use GO_MODULE or set *_DEPENDS as needed. This project is hosted in git.sr.ht so I am not familiar with the correct way before reading more in Mk/Uses/go.mk.
Comment 2 Corey Hinshaw 2022-02-10 15:18:06 UTC
Created attachment 231717 [details]
kineto-2.patch

Attaching a patch with an improved approach. Now relies on the targets provided by go.mk. Only differs from the standard targets in the portions that fetch from sr.ht.
Comment 3 Corey Hinshaw 2022-02-10 17:06:58 UTC
Created attachment 231726 [details]
kineto-3.patch

One additional update to the patch to improve formatting of the rc.d script.
Comment 4 Neel Chauhan freebsd_committer freebsd_triage 2022-02-15 18:18:06 UTC
Committed!
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-02-15 18:18:25 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=03949a77485f49fea02fd036622f91d1c1004671

commit 03949a77485f49fea02fd036622f91d1c1004671
Author:     Corey Hinshaw <corey@electrickite.org>
AuthorDate: 2022-02-10 17:03:46 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-02-15 18:17:47 +0000

    www/kineto: Add port

    PR:     261851

 www/kineto/Makefile (new)        | 40 +++++++++++++++++++++++++++++
 www/kineto/distinfo (new)        | 11 ++++++++
 www/kineto/files/kineto.in (new) | 55 ++++++++++++++++++++++++++++++++++++++++
 www/kineto/pkg-descr (new)       |  3 +++
 4 files changed, 109 insertions(+)