import retawq

retawq is an interactive, multi-threaded web browser for text terminals.
It is written in C, fast, small, nicely configurable, and comfortable.
The low-level network communications are performed in a non-blocking
way, and you can keep open as many "virtual windows" as you want and
work simultaneously in two of them in a split-screen mode.

based on a port from Girish Venkatachalam

feedback and ok merdely@
This commit is contained in:
okan 2008-12-07 22:03:28 +00:00
parent 5164951487
commit f68cb727c2
8 changed files with 171 additions and 0 deletions

39
www/retawq/Makefile Normal file
View File

@ -0,0 +1,39 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/12/07 22:03:28 okan Exp $
COMMENT = interactive, multi-threaded text mode web browser
DISTNAME = retawq-0.2.6c
CATEGORIES = www
HOMEPAGE = http://retawq.sourceforge.net
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=retawq/}
MAINTAINER = Girish Venkatachalam <girish1729@gmail.com>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c pthread ncurses
CONFIGURE_STYLE = simple
CONFIGURE_ARGS = --enable-ipv6
NO_REGRESS = Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/docu/retawq.1 ${WRKSRC}/docu/example-config
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/retawq ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/docu/retawq.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/retawq
${INSTALL_DATA} ${WRKSRC}/docu/*html \
${PREFIX}/share/doc/retawq
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/retawq
${INSTALL_DATA} ${WRKSRC}/docu/example-config \
${PREFIX}/share/examples/retawq
.include <bsd.port.mk>

5
www/retawq/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (retawq-0.2.6c.tar.gz) = 7mAYi+pZdoC9OeQ1qMc/+Q==
RMD160 (retawq-0.2.6c.tar.gz) = L+d96sMIvyhX6PICsv5FmLhC488=
SHA1 (retawq-0.2.6c.tar.gz) = rJmXnpmuOz7bpUfdI9VMj1+zxvU=
SHA256 (retawq-0.2.6c.tar.gz) = pC6CSU8A4FTC3hsGW7yPtDnZPrafm5fMSGjnHkip6uA=
SIZE (retawq-0.2.6c.tar.gz) = 393321

View File

@ -0,0 +1,48 @@
$OpenBSD: patch-docu_example-config,v 1.1.1.1 2008/12/07 22:03:28 okan Exp $
--- docu/example-config.orig Sat Oct 18 15:01:06 2008
+++ docu/example-config Sat Oct 18 15:06:06 2008
@@ -13,11 +13,11 @@
# leave it out; retawq then applies a default behavior.
#
# Also note that some of these options only work if the respective compile-time
-# configuration options have been enabled (cf. retawq/docu/ctconfig.html), some
+# configuration options have been enabled (cf. ctconfig.html), some
# of which are disabled by default. You might get warning messages otherwise.
#
# All run-time configuration options are explained in the documentation file
-# retawq/docu/rtconfig.html.
+# rtconfig.html.
# Options Part I: User Interface
@@ -55,7 +55,7 @@ jumps:
h2 www.home-of-employer.com
0 local:~/nothing.html
3la local:/usr/three-letter-acronyms/
- help local:/usr/local/doc/retawq/index.html
+ help local:${PREFIX}/share/doc/retawq/index.html
# OR: an example with a URL _pattern_ for a search engine which allows to
# specify the search string within the URL (technobabble: the search engine
@@ -71,8 +71,8 @@ jumps:
# just a fictitious example.
# A keymap list for mapping some keys to command actions; for simplicity, the
-# following rules show some default mappings as documented in docu/key.html and
-# docu/keymap.html; this example shall just give an idea how this option could
+# following rules show some default mappings as documented in key.html and
+# keymap.html; this example shall just give an idea how this option could
# be used:
keymap command
Q quit
@@ -82,8 +82,8 @@ keymap command
cursor-left view-back
# A keymap list for mapping keys to line input mode actions; for simplicity,
-# the following rules show some default mappings as documented in docu/key.html
-# and docu/keymap.html; this example shall just give an idea how this option
+# the following rules show some default mappings as documented in key.html
+# and keymap.html; this example shall just give an idea how this option
# could be used:
keymap line-input
cursor-left to-left

View File

@ -0,0 +1,10 @@
$OpenBSD: patch-docu_retawq_1,v 1.1.1.1 2008/12/07 22:03:28 okan Exp $
--- docu/retawq.1.orig Sun Mar 19 02:21:22 2006
+++ docu/retawq.1 Sat Oct 18 15:06:54 2008
@@ -29,5 +29,5 @@ Seriously: this early release of retawq has several kn
Arne Thomassen <arne@arne-thomassen.de>
.SH SEE ALSO
Extensive documentation about retawq is available in HTML form by way of the file
-.I retawq/docu/index.html
+.I ${PREFIX}/share/doc/retawq/index.html
in the release package.

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-resource_c,v 1.1.1.1 2008/12/07 22:03:28 okan Exp $
--- resource.c.orig Mon Oct 6 09:43:22 2008
+++ resource.c Mon Oct 6 09:43:39 2008
@@ -9,6 +9,8 @@
#include "stuff.h"
#include "resource.h"
#include "parser.h"
+#include <netinet/in.h>
+#include <sys/socket.h>
#if CAN_HANDLE_SIGNALS
#include <signal.h>

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-stuff_h,v 1.1.1.1 2008/12/07 22:03:28 okan Exp $
--- stuff.h.orig Sun Mar 19 12:51:21 2006
+++ stuff.h Fri Nov 14 20:46:15 2008
@@ -133,6 +133,7 @@
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
+#include <inttypes.h>
#if STDC_HEADERS
#include <stdlib.h>
@@ -894,8 +895,8 @@ typedef signed short tMbsIndex;
/* CHECKME: use a sizeof() test with configure to avoid (_bogus_!) compiler
warnings on 64-bit machines! */
-#define MY_INT_TO_POINTER(x) ( (void*) ((int) (x)) )
-#define MY_POINTER_TO_INT(x) ((int) (x))
+#define MY_INT_TO_POINTER(x) ( (void*) ((uintptr_t) (x)) )
+#define MY_POINTER_TO_INT(x) ((uintptr_t) (x))
/* Suppress _bogus_ compiler warnings about uninitialized variables (in order
to make all "real" warnings more visible): */

5
www/retawq/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
retawq is an interactive, multi-threaded web browser for text terminals.
It is written in C, fast, small, nicely configurable, and comfortable.
The low-level network communications are performed in a non-blocking
way, and you can keep open as many "virtual windows" as you want and
work simultaneously in two of them in a split-screen mode.

30
www/retawq/pkg/PLIST Normal file
View File

@ -0,0 +1,30 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/12/07 22:03:28 okan Exp $
@bin bin/retawq
@man man/man1/retawq.1
share/doc/retawq/
share/doc/retawq/arg.html
share/doc/retawq/changes.html
share/doc/retawq/coding_style.html
share/doc/retawq/contrib.html
share/doc/retawq/credits.html
share/doc/retawq/ctconfig.html
share/doc/retawq/custom_conn.html
share/doc/retawq/feature.html
share/doc/retawq/index.html
share/doc/retawq/key.html
share/doc/retawq/keymap.html
share/doc/retawq/msg.html
share/doc/retawq/notion.html
share/doc/retawq/patent.html
share/doc/retawq/raq.html
share/doc/retawq/report.html
share/doc/retawq/rfc.html
share/doc/retawq/rtconfig.html
share/doc/retawq/runmode.html
share/doc/retawq/scheme.html
share/doc/retawq/session.html
share/doc/retawq/tls.html
share/doc/retawq/user_guide.html
share/doc/retawq/wk.html
share/examples/retawq/
share/examples/retawq/example-config