I have the following so far:
There's a slight bug that I'm not worrying about at the moment:
Just extract the `api` folder from the tar archive and put it where it's expected. (if you know how to fix this, please share
)
The problem I need help with is with a Linuxism. I know very little about GoLang (and want to keep it that way). There appears to be a system call being made that doesn't exist on FreeBSD:
There doesn't seem to be any "prior art" in the form of patches from other ports. Or at least I just don't understand how to translate them to this specific case.
Code:
PORTNAME= teleport
DISTVERSIONPREFIX= v
DISTVERSION= 17.3.0
CATEGORIES= shells
PKGNAMEPREFIX= gravitational-
MASTER_SITES+= https://raw.githubusercontent.com/${GH_ACCOUNT}/${PORTNAME}/${DISTVERSIONFULL}/:gomod
DISTFILES= go.mod:gomod
MAINTAINER= ports@freebsd.org
COMMENT= The easiest, and most secure way to access and protect all of your infrastructure.
WWW= https://github.com/gravitational/teleport
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:1.23,modules
USE_GITHUB= yes
GH_ACCOUNT= gravitational
GO_MODULE= github.com/gravitational/${PORTNAME}/v17
GO_TARGET= ./tool/tsh
PLIST_SUB= ${SUB_LIST}
.include <bsd.port.mk>
There's a slight bug that I'm not worrying about at the moment:
Code:
go: github.com/gravitational/teleport/api@v0.0.0 (replaced by ./api): reading api/go.mod: open /usr/ports/distfiles/go/shells_teleport/gravitational-teleport-v17.3.0_GH0/api/go.mod: no such file or directory
Just extract the `api` folder from the tar archive and put it where it's expected. (if you know how to fix this, please share

The problem I need help with is with a Linuxism. I know very little about GoLang (and want to keep it that way). There appears to be a system call being made that doesn't exist on FreeBSD:
Code:
===> Building tsh from ./tool/tsh
github.com/gravitational/teleport/lib/utils
# github.com/gravitational/teleport/lib/utils
lib/utils/disk.go:127:20: undefined: syscall.S_IWGRP
lib/utils/disk.go:128:18: undefined: syscall.S_IXGRP
lib/utils/disk.go:136:18: undefined: syscall.S_IWOTH
lib/utils/disk.go:137:16: undefined: syscall.S_IXOTH
*** Error code 1
There doesn't seem to be any "prior art" in the form of patches from other ports. Or at least I just don't understand how to translate them to this specific case.