Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gcli port #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions devel/gcli/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
COMMENT = portable and secure CLI utility to interact with Git forges

V = 1.0.3.1
DISTNAME = gcli-${V}
CATEGORIES = devel net
HOMEPAGE = https://gitlab.com/herrhotzenplotz/gcli

MAINTAINER = Moritz Buhl <mbuhl@openbsd.org>

# BSD 2-clause
PERMIT_PACKAGE = Yes

MASTER_SITES = https://herrhotzenplotz.de/gcli/releases/gcli-${V}/

WANTLIB = c curl nghttp3 ngtcp2_crypto_openssl ngtcp2 ssl crypto \
nghttp2 z pthread

LIB_DEPENDS = net/curl \
net/ngtcp2 \
www/nghttp2 \
www/nghttp3

AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.16
AUTORECONF = ./autogen.sh
CONFIGURE_STYLE = autoreconf

.include <bsd.port.mk>
2 changes: 2 additions & 0 deletions devel/gcli/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SHA256 (gcli-1.0.3.1.tar.gz) = etj6kIBGaMLuWFS/M3WtTZdUERjxFcNFKnp2C2MTe5M=
SIZE (gcli-1.0.3.1.tar.gz) = 203409
15 changes: 15 additions & 0 deletions devel/gcli/pkg/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Simple and portable CLI tool for interacting with GitHub, GitLab
and Gitea from the command line.

Why?

The official GitHub CLI tool only supports GitHub. I wanted a simple
unified tool for various git forges such as GitHub and GitLab because
every forge does things differently yet all build on Git and
purposefully break with its philosophy.

Also, the official tool from Github is written in Go, which does
manual DNS resolution which is a massive security vulnerability for
people using Tor as it leaks your IP to the DNS server. This program
builds upon libcurl, which obeys the operating system's DNS resolution
mechanisms and thus also works with Tor.
15 changes: 15 additions & 0 deletions devel/gcli/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@bin bin/gcli
@man man/man1/gcli-api.1
@man man/man1/gcli-comment.1
@man man/man1/gcli-forks.1
@man man/man1/gcli-gists.1
@man man/man1/gcli-issues.1
@man man/man1/gcli-labels.1
@man man/man1/gcli-milestones.1
@man man/man1/gcli-pipelines.1
@man man/man1/gcli-pulls.1
@man man/man1/gcli-releases.1
@man man/man1/gcli-repos.1
@man man/man1/gcli-snippets.1
@man man/man1/gcli-status.1
@man man/man1/gcli.1