Add devel/gcli: CLI utility to interact with various Git forges

GCLI is a simple and portable CLI tool for interacting with GitHub,
GitLab, and Gitea from the command line.

This tool was written because the official GitHub CLI tool only supports
GitHub.  The author 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.

PR:		267224
This commit is contained in:
Robert Clausecker 2022-10-20 10:50:32 +00:00 committed by Li-Wen Hsu
parent bfff400638
commit 65240f34c0
No known key found for this signature in database
GPG Key ID: 82B261B14D3BC7AF
5 changed files with 50 additions and 0 deletions

View File

@ -709,6 +709,7 @@
SUBDIR += gcc-msp430-ti-toolchain
SUBDIR += gccmakedep
SUBDIR += gcem
SUBDIR += gcli
SUBDIR += gconf2
SUBDIR += gconfmm26
SUBDIR += gdb

20
devel/gcli/Makefile Normal file
View File

@ -0,0 +1,20 @@
PORTNAME= gcli
DISTVERSION= 0.9.9-beta
CATEGORIES= devel net
MASTER_SITES= https://herrhotzenplotz.de/gcli/releases/gcli-${DISTVERSION}/
MAINTAINER= fuz@fuz.su
COMMENT= CLI utility to interact with various Git forges
WWW= https://gitlab.com/herrhotzenplotz/gcli
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libcurl.so:ftp/curl
USES= pkgconfig tar:xz
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gcli
.include <bsd.port.mk>

3
devel/gcli/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1666108576
SHA256 (gcli-0.9.9-beta.tar.xz) = cf1f270def42b0d794b3a7395f9a0ab09b16458ec7edd1ad44009f1519eee679
SIZE (gcli-0.9.9-beta.tar.xz) = 122936

13
devel/gcli/pkg-descr Normal file
View File

@ -0,0 +1,13 @@
GCLI is a simple and portable CLI tool for interacting with GitHub,
GitLab, and Gitea from the command line.
This tool was written because the official GitHub CLI tool only supports
GitHub. The author 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.

13
devel/gcli/pkg-plist Normal file
View File

@ -0,0 +1,13 @@
bin/gcli
man/man1/gcli-comment.1.gz
man/man1/gcli-forks.1.gz
man/man1/gcli-gists.1.gz
man/man1/gcli-issues.1.gz
man/man1/gcli-labels.1.gz
man/man1/gcli-pipelines.1.gz
man/man1/gcli-pulls.1.gz
man/man1/gcli-releases.1.gz
man/man1/gcli-repos.1.gz
man/man1/gcli-snippets.1.gz
man/man1/gcli-status.1.gz
man/man1/gcli.1.gz