Bug 255413

Summary: [NEW PORT] net/gmid a Gemini server
Product: Ports & Packages Reporter: Omar Polo <freebsd>
Component: Individual Port(s)Assignee: Neel Chauhan <nc>
Status: Closed FIXED    
Severity: Affects Only Me CC: nc
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
gmid port and {G,U}IDs bits
none
gmid port and {G,U}IDs bits [v2] none

Description Omar Polo 2021-04-26 10:02:22 UTC
Created attachment 224435 [details]
gmid port and {G,U}IDs bits

Hello,

Please find attached the port for gmid, a server for the Gemini protocol.  Apologies for any mistakes, I'm not familiar with the FreeBSD port infrastructure, but I read and followed the handbook :)

The diff includes also some bits for /usr/ports/{G,U}IDs: I'm registering the first free uid (287) for the user and group _gmid.

In particular the attached patch was generated with `svn diff' because I haven't found documentation on how to switch to the git tree (https://www.freebsd.org/ports/installing/ still mentions svn).

Note: I'm also the developer of gmid.  It probably sound a bit obnoxious to submit a port too, but since I have some friends that are trying to use gmid on freebsd, I thought it would be helpful to have a package available.  it would also be the first gemini server in the port tree :)

Thanks,

Omar Polo
Comment 1 Neel Chauhan freebsd_committer freebsd_triage 2021-04-27 17:14:50 UTC
The FreeBSD Ports tree has since converted to git a while back. The UID you used for gmid in your patch has already been taken by another port.

IMHO it's a good idea to rebase your patch on git.
Comment 2 Omar Polo 2021-04-27 18:05:57 UTC
Created attachment 224476 [details]
gmid port and {G,U}IDs bits [v2]
Comment 3 Omar Polo 2021-04-27 18:09:34 UTC
Hi,

I've just uploaded an updated diff generated from the git tree.  I'm sorry about the svn diff, I still had the svn tree in /usr/ports and https://www.freebsd.org/ports/installing/ still mentions subversion.  I've re-checked the handbook and it actually shows how to check out with git, I missed that, apologies.

Thanks,
Comment 4 commit-hook freebsd_committer freebsd_triage 2021-04-27 18:14:59 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4ed1dafde04789df5bb273299fb593af34ccd81b

commit 4ed1dafde04789df5bb273299fb593af34ccd81b
Author:     Neel Chauhan <nc@FreeBSD.org>
AuthorDate: 2021-04-27 18:09:20 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2021-04-27 18:11:49 +0000

    New port: net/gmid: Simple and secure Gemini server

    PR:             255413
    Submitted by:   Omar Polo <freebsd@omarpolo.com>

 GIDs                                  |  2 +-
 UIDs                                  |  2 +-
 net/gmid/Makefile (new)               | 33 +++++++++++++++++++++++++++
 net/gmid/distinfo (new)               |  3 +++
 net/gmid/files/gmid.conf.sample (new) | 15 +++++++++++++
 net/gmid/files/gmid.in (new)          | 42 +++++++++++++++++++++++++++++++++++
 net/gmid/pkg-descr (new)              |  6 +++++
 net/gmid/pkg-plist (new)              |  3 +++
 8 files changed, 104 insertions(+), 2 deletions(-)
Comment 5 Neel Chauhan freebsd_committer freebsd_triage 2021-04-27 18:15:17 UTC
Committed!

A few things to keep in mind for the future:

 * The $FreeBSD$ line is no longer needed, as FreeBSD now uses git, and the said line is for Subversion

 * It's a good idea to check your port via portlint and portfmt/portclippy.

I have re-formatted your port for you, but it's a good idea if you do it.
Comment 6 commit-hook freebsd_committer freebsd_triage 2021-04-27 18:19:01 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0c071bb9479d1615fde2cc65d42a90ba4e589d2a

commit 0c071bb9479d1615fde2cc65d42a90ba4e589d2a
Author:     Neel Chauhan <nc@FreeBSD.org>
AuthorDate: 2021-04-27 18:17:56 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2021-04-27 18:18:24 +0000

    net/gmid: Use pkgconfig

    This fixes build issues

    PR:     255413

 net/gmid/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 7 Omar Polo 2021-04-27 18:20:10 UTC
I'll keep it in mind for future submissions! :)

Thanks!