svn commit: r534737 - in head/www: . gopherus gopherus/files
Tobias Kortkamp
tobik at FreeBSD.org
Sat May 9 12:20:59 UTC 2020
Author: tobik
Date: Sat May 9 12:20:57 2020
New Revision: 534737
URL: https://svnweb.freebsd.org/changeset/ports/534737
Log:
New port: www/gopherus
Gopherus is a free, multiplatform, console-mode gopher client that
provides a classic text interface to the gopherspace.
WWW: http://gopherus.sourceforge.net/
Added:
head/www/gopherus/
head/www/gopherus/Makefile (contents, props changed)
head/www/gopherus/distinfo (contents, props changed)
head/www/gopherus/files/
head/www/gopherus/files/Makefile (contents, props changed)
head/www/gopherus/files/patch-net_net-bsd.c (contents, props changed)
head/www/gopherus/files/patch-ui_ui-curse.c (contents, props changed)
head/www/gopherus/pkg-descr (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Sat May 9 12:06:26 2020 (r534736)
+++ head/www/Makefile Sat May 9 12:20:57 2020 (r534737)
@@ -199,6 +199,7 @@
SUBDIR += googlebook_dl
SUBDIR += googler
SUBDIR += goose
+ SUBDIR += gopherus
SUBDIR += gotty
SUBDIR += gpx2map
SUBDIR += grafana
Added: head/www/gopherus/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/gopherus/Makefile Sat May 9 12:20:57 2020 (r534737)
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+PORTNAME= gopherus
+DISTVERSION= 1.2.1
+CATEGORIES= www
+MASTER_SITES= SF/gopherus/v${DISTVERSION}
+
+MAINTAINER= tobik at FreeBSD.org
+COMMENT= Classic text interface to the gopherspace
+
+LICENSE= BSD2CLAUSE
+
+USES= ncurses tar:xz uidfix
+MAKEFILE= ${FILESDIR}/Makefile
+CFLAGS+= -I${NCURSESINC}
+LDFLAGS+= -L${NCURSESLIB} -l${NCURSES_IMPL}
+
+PLIST_FILES= bin/gopherus
+
+.include <bsd.port.mk>
Added: head/www/gopherus/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/gopherus/distinfo Sat May 9 12:20:57 2020 (r534737)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1589023983
+SHA256 (gopherus-1.2.1.tar.xz) = 510f71591ae2f40c55bfff47f3c215c75d85acf45184e752a381df6a6c64787b
+SIZE (gopherus-1.2.1.tar.xz) = 1377952
Added: head/www/gopherus/files/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/gopherus/files/Makefile Sat May 9 12:20:57 2020 (r534737)
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+PROG= gopherus
+SRCS= gopherus.c dnscache.c fs/fs-lin.c history.c net/net-bsd.c parseurl.c readflin.c startpg.c ui/ui-curse.c wordwrap.c
+MAN=
+BINDIR= ${PREFIX}/bin
+
+.include <bsd.prog.mk>
Added: head/www/gopherus/files/patch-net_net-bsd.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/gopherus/files/patch-net_net-bsd.c Sat May 9 12:20:57 2020 (r534737)
@@ -0,0 +1,10 @@
+--- net/net-bsd.c.orig 2020-05-09 11:36:10 UTC
++++ net/net-bsd.c
+@@ -20,6 +20,7 @@
+ #include <sys/socket.h> /* socket() */
+ #include <sys/select.h> /* select(), fd_set() */
+ #include <arpa/inet.h>
++ #include <netinet/in.h>
+ #include <netdb.h>
+ #include <unistd.h> /* close() */
+ #define CLOSESOCK(x) close(x)
Added: head/www/gopherus/files/patch-ui_ui-curse.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/gopherus/files/patch-ui_ui-curse.c Sat May 9 12:20:57 2020 (r534737)
@@ -0,0 +1,20 @@
+--- ui/ui-curse.c.orig 2020-01-22 17:13:40 UTC
++++ ui/ui-curse.c
+@@ -10,7 +10,7 @@
+ #define _XOPEN_SOURCE_EXTENDED
+
+ #include <locale.h>
+-#include <ncursesw/curses.h>
++#include <curses.h>
+ #include <stdio.h> /* this one contains the NULL definition */
+ #include <string.h>
+
+@@ -149,7 +149,7 @@ int ui_getkey(void) {
+ case KEY_RIGHT: return(0x14D);
+ case KEY_UP: return(0x148);
+ case KEY_DOWN: return(0x150);
+- case KEY_BACKSPACE: return(8);
++ case KEY_BACKSPACE: case 127: return(8);
+ case KEY_ENTER: return(13);
+ case KEY_PPAGE: return(0x149); /* PAGEUP */
+ case KEY_NPAGE: return(0x151); /* PGDOWN */
Added: head/www/gopherus/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/gopherus/pkg-descr Sat May 9 12:20:57 2020 (r534737)
@@ -0,0 +1,4 @@
+Gopherus is a free, multiplatform, console-mode gopher client that
+provides a classic text interface to the gopherspace.
+
+WWW: http://gopherus.sourceforge.net/
More information about the svn-ports-all
mailing list