FreeBSD Bugzilla – Attachment 256883 Details for
Bug 284244
[NEW PORT] www/Vgmi: Gemini client written in C with Vim-like keybindings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[RFC PATCH] [NEW PORT] www/Vgmi: Gemini client written in C with Vim-like keybindings
0001-NEW-PORT-www-Vgmi-Gemini-client-written-in-C-with-Vi.patch (text/plain), 4.70 KB, created by
Älven
on 2025-01-21 18:15:08 UTC
(
hide
)
Description:
[RFC PATCH] [NEW PORT] www/Vgmi: Gemini client written in C with Vim-like keybindings
Filename:
MIME Type:
Creator:
Älven
Created:
2025-01-21 18:15:08 UTC
Size:
4.70 KB
patch
obsolete
>From f4ee34be75ceca2a5d57df2b9ca22d4609efc77f Mon Sep 17 00:00:00 2001 >From: Ãlven <alster@vinterdalen.se> >Date: Tue, 21 Jan 2025 18:44:36 +0400 >Subject: [RFC PATCH] [NEW PORT] www/Vgmi: Gemini client written in C with Vim-like keybindings > >--- > www/Makefile | 1 + > www/Vgmi/Makefile | 23 +++++++++++++++++++++++ > www/Vgmi/distinfo | 3 +++ > www/Vgmi/files/patch-Makefile | 31 +++++++++++++++++++++++++++++++ > www/Vgmi/pkg-descr | 24 ++++++++++++++++++++++++ > 5 files changed, 82 insertions(+) > create mode 100644 www/Vgmi/Makefile > create mode 100644 www/Vgmi/distinfo > create mode 100644 www/Vgmi/files/patch-Makefile > create mode 100644 www/Vgmi/pkg-descr > >diff --git a/www/Makefile b/www/Makefile >index 6c36e369bff1..84285a876b07 100644 >--- a/www/Makefile >+++ b/www/Makefile >@@ -21,6 +21,7 @@ > SUBDIR += R-cran-shinyjs > SUBDIR += R-cran-webshot > SUBDIR += UniversalFeedCreator >+ SUBDIR += Vgmi > SUBDIR += adguardhome > SUBDIR += adjuster > SUBDIR += alef-webfont >diff --git a/www/Vgmi/Makefile b/www/Vgmi/Makefile >new file mode 100644 >index 000000000000..2970949c20e5 >--- /dev/null >+++ b/www/Vgmi/Makefile >@@ -0,0 +1,23 @@ >+PORTNAME= Vgmi >+DISTVERSIONPREFIX= v >+DISTVERSION= 2.1 >+CATEGORIES= www >+ >+MAINTAINER= alster@vinterdalen.se >+COMMENT= Gemini client written in C with Vim-like keybindings >+WWW= https://rmf-dev.com/en/vgmi.html \ >+ https://github.com/RealMelkor/Vgmi/ >+ >+LICENSE= ISCL >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+LIB_DEPENDS= libtls.so:security/libressl >+ >+USE_GITHUB= yes >+GH_ACCOUNT= RealMelkor >+ >+ALL_TARGET= vgmi >+ >+PLIST_FILES= bin/vgmi >+ >+.include <bsd.port.mk> >diff --git a/www/Vgmi/distinfo b/www/Vgmi/distinfo >new file mode 100644 >index 000000000000..9b6821b2ce82 >--- /dev/null >+++ b/www/Vgmi/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1737470091 >+SHA256 (RealMelkor-Vgmi-v2.1_GH0.tar.gz) = a34bbebb0454cbd04211131a56bbbbd323e1a4b054139b02781872c768cfb0e9 >+SIZE (RealMelkor-Vgmi-v2.1_GH0.tar.gz) = 290466 >diff --git a/www/Vgmi/files/patch-Makefile b/www/Vgmi/files/patch-Makefile >new file mode 100644 >index 000000000000..8fced893fae2 >--- /dev/null >+++ b/www/Vgmi/files/patch-Makefile >@@ -0,0 +1,31 @@ >+--- Makefile.orig 2024-10-24 18:21:09 UTC >++++ Makefile >+@@ -1,10 +1,10 @@ >+-SHELL = /bin/sh >++SHELL ?= /bin/sh >+ >+-PREFIX = /usr/local >+-CC = cc >++PREFIX ?= /usr/local >++CC ?= cc >+ CFLAGS = -O2 -Wall -Wpedantic -Wextra -I/usr/local/include -I./include >+ LDFLAGS = -s -L./lib -L/usr/local/lib -ltls -lssl -lcrypto -lpthread -lm >+-FLAGS = >++FLAGS ?= >+ HEADERS != (ls src/*.h) >+ SRC != (ls src/*.c) >+ OBJ = ${SRC:.c=.o} >+@@ -24,11 +24,10 @@ install: >+ ${CC} -O2 -c -o stb_image/stb_image.o -I./include stb_image/stb_image.c >+ >+ install: >+- cp vgmi ${PREFIX}/bin/ >+- chmod 755 ${PREFIX}/bin/vgmi >++ install -s vgmi ${DESTDIR}${PREFIX}/bin/ >+ >+ uninstall: >+- rm ${PREFIX}/bin/vgmi >++ rm ${DESTDIR}${PREFIX}/bin/vgmi >+ >+ clean: >+ rm -f vgmi >diff --git a/www/Vgmi/pkg-descr b/www/Vgmi/pkg-descr >new file mode 100644 >index 000000000000..81bfb63d7e93 >--- /dev/null >+++ b/www/Vgmi/pkg-descr >@@ -0,0 +1,24 @@ >+Vgmi is a gemini client with Vim-like keybindings written in C. >+ >+* Gemini is a new application-layer internet communication protocol introduced >+in 2019. The general purpose of a Gemini client is to send requests to Gemini >+capsules, usually listening on TCP port 1965, and rendering the server response, >+usally in gemtext. The Gemini protocol requires all communication to use TLS(a >+cryptographic protocol). >+* One of the goals of Vgmi was to allow navigating the geminispace using Vim >+keybindings. For example, pressing 'j' will scroll down and pressing 'k' will >+scroll up, pressing 'gt' will go to the next tab while pressing 'gT' will go to >+the previous. Those inputs can be repeated by preceding them with a number, >+typing '10j' will scroll down of 10 lines. >+* Vgmi can render images in the terminal by using the square unicode character >+to emulate a column of two pixels by setting the foreground and background >+colors. It is possible to emulate a screen of rather large pixels by covering >+the whole terminal with this unicode character with different colors. The color >+for a square is determined by first finding the average pixel color value >+covered by the square and then finding the closest color among the 256 standard >+Xterm colors that matches the average. >+* To reduce the damage that a vulnerability could do, Vgmi uses sandboxing - a >+concept of reducing the privileges and access of a program. When sandboxed, Vgmi >+no longer has access to the whole filesystem but only to the files necessary for >+the program to work. Sandboxing is also used to prevent Vgmi from using system >+calls that are not necessary for the expected behavior of the program. >-- >2.48.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 284244
:
256881
| 256883