summaryrefslogtreecommitdiff
path: root/www/gopherus/files
diff options
context:
space:
mode:
Diffstat (limited to 'www/gopherus/files')
-rw-r--r--www/gopherus/files/Makefile8
-rw-r--r--www/gopherus/files/patch-net_net-bsd.c10
-rw-r--r--www/gopherus/files/patch-ui_ui-curse.c20
3 files changed, 38 insertions, 0 deletions
diff --git a/www/gopherus/files/Makefile b/www/gopherus/files/Makefile
new file mode 100644
index 000000000000..d13b4e67fa20
--- /dev/null
+++ b/www/gopherus/files/Makefile
@@ -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>
diff --git a/www/gopherus/files/patch-net_net-bsd.c b/www/gopherus/files/patch-net_net-bsd.c
new file mode 100644
index 000000000000..11d84e2be65d
--- /dev/null
+++ b/www/gopherus/files/patch-net_net-bsd.c
@@ -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)
diff --git a/www/gopherus/files/patch-ui_ui-curse.c b/www/gopherus/files/patch-ui_ui-curse.c
new file mode 100644
index 000000000000..655d3935d3f3
--- /dev/null
+++ b/www/gopherus/files/patch-ui_ui-curse.c
@@ -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 */