Import w3m-m17n 0.19, based off w3m 0.2.1.
w3m is a pager/text-based WWW browser. This is the multilingualization (m17n) version. It used to be a flavor of www/w3m but the different versions keep diverging.
This commit is contained in:
parent
c89bfe43d9
commit
f4079dd34b
61
www/w3m-m17n/Makefile
Normal file
61
www/w3m-m17n/Makefile
Normal file
@ -0,0 +1,61 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/11/17 02:46:02 naddy Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= i386 sparc m68k
|
||||
|
||||
COMMENT= "multi-script text-based web browser/pager"
|
||||
COMMENT-japanese= "Japanese multi-script text-based web browser/pager"
|
||||
|
||||
DISTNAME= w3m-m17n-0.19
|
||||
CATEGORIES= www
|
||||
NEED_VERSION= 1.498
|
||||
HOMEPAGE= http://www2u.biglobe.ne.jp/~hsaka/w3m/index.html#m17n
|
||||
|
||||
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://www2u.biglobe.ne.jp/~hsaka/w3m/patch/
|
||||
|
||||
FLAVORS= japanese
|
||||
FLAVOR?=
|
||||
|
||||
CONFIGURE_STYLE= simple
|
||||
CONFIGURE_ARGS= -nonstop -prefix="${PREFIX}" -cflags="${CFLAGS}" \
|
||||
-model=monster -charset=UTF-8
|
||||
CONFIGURE_ENV= use_nntp=y use_ssl_verify=y \
|
||||
dmail=mail ded=vi dbrowser=lynx dcc="${CC}" \
|
||||
dtermlib="${TERMLIB}" def_helpdir="${PREFIX}/share/w3m-m17n" \
|
||||
def_libdir="${PREFIX}/libexec/w3m-m17n" \
|
||||
MIME_TYPES="/var/www/conf/mime.types"
|
||||
NO_REGRESS= Yes
|
||||
|
||||
DOCS= FAQ.html HISTORY MANUAL.html \
|
||||
README README.dict README.func README.m17n STORY.html \
|
||||
keymap.default keymap.lynx menu.default menu.submenu
|
||||
|
||||
.if ${FLAVOR:L:Mjapanese}
|
||||
|
||||
FULLPKGNAME= ja-${PKGNAME}
|
||||
CATEGORIES+= japanese
|
||||
CONFIGURE_ARGS+= -lang=ja
|
||||
CONFIGURE_ARGS+= -code=n
|
||||
DOCS+= README.SSL README.cookie README.keymap \
|
||||
README.mailcap README.menu
|
||||
DOCSRC= ${WRKSRC}/doc-jp
|
||||
|
||||
.else
|
||||
|
||||
CONFIGURE_ARGS+= -lang=en
|
||||
DOCSRC= ${WRKSRC}/doc
|
||||
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/w3m-m17n
|
||||
${INSTALL_MAN} ${DOCSRC}/w3m.1 ${PREFIX}/man/man1/w3m-m17n.1
|
||||
cd ${DOCSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/w3m-m17n
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/w3m-m17n/distinfo
Normal file
3
www/w3m-m17n/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (w3m-m17n-0.19.tar.gz) = 96243978524a7b8fba6cbb413026eeff
|
||||
RMD160 (w3m-m17n-0.19.tar.gz) = 49edaf9f712166fb013e93f30bbb491d8c9a3d91
|
||||
SHA1 (w3m-m17n-0.19.tar.gz) = 50d4f73440a1ea9886294421e6fee8e1480e583f
|
20
www/w3m-m17n/patches/patch-configure
Normal file
20
www/w3m-m17n/patches/patch-configure
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2001/11/17 02:46:02 naddy Exp $
|
||||
--- configure.orig Sat Nov 17 02:55:46 2001
|
||||
+++ configure Sat Nov 17 02:56:34 2001
|
||||
@@ -1043,7 +1043,7 @@ echo "dldflags='$ldflags'" >> config.par
|
||||
echo "Checking machine dependency."
|
||||
|
||||
###### mime.types
|
||||
-MIME_TYPES=""
|
||||
+if [ -z "$MIME_TYPES" ]; then
|
||||
for d in /usr/lib /usr/local/lib /usr/local/lib/mosaic /usr/local/mosaic /usr/local/netscape /usr/local/lib/netscape
|
||||
do
|
||||
if [ -f $d/mime.types ]; then
|
||||
@@ -1053,6 +1053,7 @@ done
|
||||
if [ -z "$MIME_TYPES" ]; then
|
||||
echo "Global mime.types not found; Hope /usr/local/lib/mime.types works."
|
||||
MIME_TYPES=/usr/local/lib/mime.types
|
||||
+fi
|
||||
fi
|
||||
|
||||
####### ranlib
|
29
www/w3m-m17n/patches/patch-gc_gcconfig_h
Normal file
29
www/w3m-m17n/patches/patch-gc_gcconfig_h
Normal file
@ -0,0 +1,29 @@
|
||||
$OpenBSD: patch-gc_gcconfig_h,v 1.1.1.1 2001/11/17 02:46:02 naddy Exp $
|
||||
--- gc/gcconfig.h.orig Thu Jul 6 15:46:53 2000
|
||||
+++ gc/gcconfig.h Thu Jul 6 15:49:15 2000
|
||||
@@ -22,6 +22,25 @@
|
||||
|
||||
/* Machine specific parts contributed by various people. See README file. */
|
||||
|
||||
+#if defined(__unix__) && !defined(unix)
|
||||
+# define unix
|
||||
+#endif
|
||||
+#if defined(__i386__) && !defined(i386)
|
||||
+# define i386
|
||||
+#endif
|
||||
+#if defined(__sparc__) && !defined(sparc)
|
||||
+# define sparc
|
||||
+#endif
|
||||
+#if defined(__m68k__) && !defined(m68k)
|
||||
+# define m68k
|
||||
+#endif
|
||||
+#if defined(__m88k__) && !defined(m88k)
|
||||
+# define m88k
|
||||
+#endif
|
||||
+#if defined(__alpha__) && !defined(alpha)
|
||||
+# define alpha
|
||||
+#endif
|
||||
+
|
||||
/* First a unified test for Linux: */
|
||||
# if defined(linux) || defined(__linux__)
|
||||
# define LINUX
|
20
www/w3m-m17n/patches/patch-indep_c
Normal file
20
www/w3m-m17n/patches/patch-indep_c
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-indep_c,v 1.1.1.1 2001/11/17 02:46:02 naddy Exp $
|
||||
--- indep.c.orig Sat Sep 29 03:02:38 2001
|
||||
+++ indep.c Sat Sep 29 03:03:32 2001
|
||||
@@ -74,14 +74,14 @@ currentdir()
|
||||
#endif /* __EMX__ */
|
||||
|
||||
char *
|
||||
-cleanupName(char *name)
|
||||
+cleanupName2(char *name, int flag)
|
||||
{
|
||||
char *buf, *p, *q;
|
||||
|
||||
buf = allocStr(name, 0);
|
||||
p = buf;
|
||||
q = name;
|
||||
- while (*q != '\0' && *q != '?') {
|
||||
+ while (*q != '\0' && (*q != '?' || ! flag)) {
|
||||
if (strncmp(p, "/../", 4) == 0) { /* foo/bar/../FOO */
|
||||
if (p - 2 == buf && strncmp(p - 2, "..", 2) == 0) {
|
||||
/* ../../ */
|
13
www/w3m-m17n/patches/patch-indep_h
Normal file
13
www/w3m-m17n/patches/patch-indep_h
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-indep_h,v 1.1.1.1 2001/11/17 02:46:02 naddy Exp $
|
||||
--- indep.h.orig Sat Sep 29 03:03:43 2001
|
||||
+++ indep.h Sat Sep 29 03:04:10 2001
|
||||
@@ -20,7 +20,8 @@ extern char *getescapecmd(char **s);
|
||||
extern char *allocStr(const char *s, int len);
|
||||
extern int strCmp(const void *s1, const void *s2);
|
||||
extern char *currentdir(void);
|
||||
-extern char *cleanupName(char *name);
|
||||
+extern char *cleanupName2(char *name, int flag);
|
||||
+#define cleanupName(name) cleanupName2((name), TRUE)
|
||||
extern char *expandPath(char *name);
|
||||
extern char *strcasestr(char *s1, char *s2);
|
||||
extern int strcasemstr(char *str, char *srch[], char **ret_ptr);
|
39
www/w3m-m17n/patches/patch-url_c
Normal file
39
www/w3m-m17n/patches/patch-url_c
Normal file
@ -0,0 +1,39 @@
|
||||
$OpenBSD: patch-url_c,v 1.1.1.1 2001/11/17 02:46:02 naddy Exp $
|
||||
--- url.c.orig Sat Sep 29 03:04:23 2001
|
||||
+++ url.c Sat Sep 29 03:07:39 2001
|
||||
@@ -949,7 +949,7 @@ parseURL2(char *url, ParsedURL * pu, Par
|
||||
pu->file = cleanupName(pu->file);
|
||||
}
|
||||
if (pu->scheme == SCM_LOCAL)
|
||||
- pu->real_file = file_unquote(pu->file);
|
||||
+ pu->real_file = cleanupName2(file_unquote(pu->file), FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1247,7 +1247,7 @@ openURL(char *url, ParsedURL * pu, Parse
|
||||
Str tmp2 = Strnew_charp("#");
|
||||
Strcat_charp(tmp2, pu->label);
|
||||
pu->file = tmp2->ptr;
|
||||
- pu->real_file = file_unquote(pu->file);
|
||||
+ pu->real_file = cleanupName2(file_unquote(pu->file), FALSE);
|
||||
pu->label = NULL;
|
||||
}
|
||||
else {
|
||||
@@ -1284,7 +1284,7 @@ openURL(char *url, ParsedURL * pu, Parse
|
||||
else if ((q = strchr(pu->file, '?')) != NULL) {
|
||||
/* local CGI: GET */
|
||||
p = Strnew_charp_n(pu->file, (int)(q - pu->file))->ptr;
|
||||
- pu->real_file = file_unquote(p);
|
||||
+ pu->real_file = cleanupName2(file_unquote(p), FALSE);
|
||||
uf.stream = newFileStream(localcgi_get(pu->real_file, q + 1, option->referer),
|
||||
(void (*)()) pclose);
|
||||
if (uf.stream != NULL) {
|
||||
@@ -1606,7 +1606,7 @@ add_index_file(ParsedURL * pu, URLFile *
|
||||
}
|
||||
p = Strnew_m_charp(pu->file, "/", file_quote(index_file), NULL)->ptr;
|
||||
p = cleanupName(p);
|
||||
- q = file_unquote(p);
|
||||
+ q = cleanupName2(file_unquote(p), FALSE);
|
||||
examineFile(q, uf);
|
||||
if (uf->stream == NULL)
|
||||
return;
|
15
www/w3m-m17n/pkg/DESCR
Normal file
15
www/w3m-m17n/pkg/DESCR
Normal file
@ -0,0 +1,15 @@
|
||||
w3m is a pager/text-based WWW browser. It is similar to Lynx, but
|
||||
it has several features Lynx doesn't have:
|
||||
|
||||
* w3m can render tables
|
||||
* w3m can render frames (by converting frames into tables)
|
||||
* w3m can display documents from standard input
|
||||
* w3m is small
|
||||
|
||||
The multilingualization (m17n) extension allows to display pages
|
||||
in all kinds of scripts and encodings in a UTF-8 xterm.
|
||||
|
||||
Available flavors:
|
||||
japanese - Provide Japanese menus and documentation.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
7
www/w3m-m17n/pkg/PFRAG.japanese
Normal file
7
www/w3m-m17n/pkg/PFRAG.japanese
Normal file
@ -0,0 +1,7 @@
|
||||
@comment $OpenBSD: PFRAG.japanese,v 1.1.1.1 2001/11/17 02:46:02 naddy Exp $
|
||||
@pkgcfl w3m-m17n-*
|
||||
share/doc/w3m-m17n/README.SSL
|
||||
share/doc/w3m-m17n/README.cookie
|
||||
share/doc/w3m-m17n/README.keymap
|
||||
share/doc/w3m-m17n/README.mailcap
|
||||
share/doc/w3m-m17n/README.menu
|
2
www/w3m-m17n/pkg/PFRAG.no-japanese
Normal file
2
www/w3m-m17n/pkg/PFRAG.no-japanese
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.no-japanese,v 1.1.1.1 2001/11/17 02:46:02 naddy Exp $
|
||||
@pkgcfl ja-w3m-m17n-*
|
28
www/w3m-m17n/pkg/PLIST
Normal file
28
www/w3m-m17n/pkg/PLIST
Normal file
@ -0,0 +1,28 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/11/17 02:46:02 naddy Exp $
|
||||
%%japanese%%
|
||||
!%%japanese%%
|
||||
bin/w3m-m17n
|
||||
libexec/w3m-m17n/dirlist.cgi
|
||||
libexec/w3m-m17n/w3mbookmark
|
||||
libexec/w3m-m17n/w3mhelperpanel
|
||||
man/man1/w3m-m17n.1
|
||||
share/doc/w3m-m17n/FAQ.html
|
||||
share/doc/w3m-m17n/HISTORY
|
||||
share/doc/w3m-m17n/MANUAL.html
|
||||
share/doc/w3m-m17n/README
|
||||
share/doc/w3m-m17n/README.dict
|
||||
share/doc/w3m-m17n/README.func
|
||||
share/doc/w3m-m17n/README.m17n
|
||||
share/doc/w3m-m17n/STORY.html
|
||||
share/doc/w3m-m17n/keymap.default
|
||||
share/doc/w3m-m17n/keymap.lynx
|
||||
share/doc/w3m-m17n/menu.default
|
||||
share/doc/w3m-m17n/menu.submenu
|
||||
share/w3m-m17n/w3mhelp-lynx_en.html
|
||||
share/w3m-m17n/w3mhelp-lynx_ja.html
|
||||
share/w3m-m17n/w3mhelp-w3m_en.html
|
||||
share/w3m-m17n/w3mhelp-w3m_ja.html
|
||||
share/w3m-m17n/w3mhelp.html
|
||||
@dirrm libexec/w3m-m17n
|
||||
@dirrm share/doc/w3m-m17n
|
||||
@dirrm share/w3m-m17n
|
7
www/w3m-m17n/pkg/SECURITY
Normal file
7
www/w3m-m17n/pkg/SECURITY
Normal file
@ -0,0 +1,7 @@
|
||||
This code is a total nightmare.
|
||||
|
||||
A pain to read, and lots of strcpy/strcat/sprintf's which actually
|
||||
turn out to be okay, after adding a die-when-out-of-memory callback
|
||||
for the boehm garbage collector.
|
||||
|
||||
There are undoubtedly other issues with this code. Caveat user.
|
Loading…
x
Reference in New Issue
Block a user