diff options
Diffstat (limited to 'www/w3m')
-rw-r--r-- | www/w3m/Makefile | 12 | ||||
-rw-r--r-- | www/w3m/files/md5 | 4 | ||||
-rw-r--r-- | www/w3m/files/patch-sum | 12 | ||||
-rw-r--r-- | www/w3m/patches/patch-aa | 46 | ||||
-rw-r--r-- | www/w3m/patches/patch-ab | 14 | ||||
-rw-r--r-- | www/w3m/patches/patch-ac | 50 | ||||
-rw-r--r-- | www/w3m/patches/patch-ad | 41 | ||||
-rw-r--r-- | www/w3m/patches/patch-ae | 132 | ||||
-rw-r--r-- | www/w3m/patches/patch-af | 14 | ||||
-rw-r--r-- | www/w3m/pkg/PLIST | 6 |
10 files changed, 130 insertions, 201 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile index ed8526cd58c..1f260abad73 100644 --- a/www/w3m/Makefile +++ b/www/w3m/Makefile @@ -1,9 +1,8 @@ -# $NetBSD: Makefile,v 1.22 2001/02/23 06:46:30 jun Exp $ +# $NetBSD: Makefile,v 1.23 2001/03/31 09:21:16 itojun Exp $ -DISTNAME= w3m-0.1.11-pre -PKGNAME= w3m-0.1.10.pre11 +DISTNAME= w3m-0.2.1 CATEGORIES= www -MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/dev/ +MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/ MAINTAINER= tech-pkg-ja@jp.netbsd.org HOMEPAGE= http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/ @@ -85,7 +84,7 @@ HELP_W3M= -w3m CONFIGURE_ENV+= def_bindir=${LOCALBASE}/bin CONFIGURE_ENV+= def_libdir=${LOCALBASE}/${HELPERDIR} CONFIGURE_ENV+= def_helpdir=${LOCALBASE}/${HELPDIR} -CONFIGURE_ENV+= use_menu=n use_matrix=n +CONFIGURE_ENV+= use_menu=y use_matrix=n CONFIGURE_ENV+= ded=vi dmail=Mail dbrowser= CONFIGURE_ENV+= dcc="${CC}" dtermlib="-ltermcap" CONFIGURE_ENV+= dldflags="-Wl,-rpath,${LOCALBASE}/lib -L${LOCALBASE}/lib" @@ -97,9 +96,6 @@ post-extract: @(cd ${WRKSRC}/doc-jp; ${RM} -fr CVS) # do not look at previous configuration -pre-configure: - ${RM} ${WRKSRC}/config.param - do-configure: @yes '' | (cd ${WRKSRC} && CC="${CC}" ac_cv_path_CC="${CC}" \ INSTALL="${INSTALL_SCRIPT}" \ diff --git a/www/w3m/files/md5 b/www/w3m/files/md5 index fb0662514c1..08283795f38 100644 --- a/www/w3m/files/md5 +++ b/www/w3m/files/md5 @@ -1,3 +1,3 @@ -$NetBSD: md5,v 1.6 2000/10/14 01:22:41 itojun Exp $ +$NetBSD: md5,v 1.7 2001/03/31 09:21:17 itojun Exp $ -MD5 (w3m-0.1.11-pre.tar.gz) = d9fb24700ecde78624280467dda1aee5 +SHA1 (w3m-0.2.1.tar.gz) = 3ae98283f02f4faf05af76ee0b022f01c1301d29 diff --git a/www/w3m/files/patch-sum b/www/w3m/files/patch-sum index ff71fde47eb..06298b89185 100644 --- a/www/w3m/files/patch-sum +++ b/www/w3m/files/patch-sum @@ -1,8 +1,6 @@ -$NetBSD: patch-sum,v 1.15 2001/02/11 22:30:09 hubertf Exp $ +$NetBSD: patch-sum,v 1.16 2001/03/31 09:21:17 itojun Exp $ -MD5 (patch-aa) = 233ec21f2f46d880ae75b782d228c4ad -MD5 (patch-ab) = d88798980e1985d3e3f71669d57d9a4a -MD5 (patch-ac) = af2e832fd50f33f296c768a71f05188b -MD5 (patch-ad) = 462ff6a5eb0b20a03c32fa17009e9e47 -MD5 (patch-ae) = 4a7157011c6876b5fb70809fe3efbd83 -MD5 (patch-af) = e315371d2b284ff0adb99a70b0567548 +SHA1 (patch-aa) = 3b3e7a37d2b76bb312263ee6b0a3fe65fd408d63 +SHA1 (patch-ab) = 08a28e40907f8c3040b1e9253caf14b8b4f0dc7e +SHA1 (patch-ac) = 0df544ffc127a1fd6495a29fef8e9e8ff99d20c3 +SHA1 (patch-ad) = e3fbd004492adb34816c734b87def63415d96236 diff --git a/www/w3m/patches/patch-aa b/www/w3m/patches/patch-aa index b1d566646a5..9a7b41716e3 100644 --- a/www/w3m/patches/patch-aa +++ b/www/w3m/patches/patch-aa @@ -1,12 +1,19 @@ -$NetBSD: patch-aa,v 1.7 2000/08/15 03:57:48 itojun Exp $ ---- configure.orig Mon Jun 5 18:41:35 2000 -+++ configure Tue Aug 15 12:43:25 2000 -@@ -190,3 +190,3 @@ +$NetBSD: patch-aa,v 1.8 2001/03/31 09:21:17 itojun Exp $ + +--- configure.orig Fri Mar 23 11:18:40 2001 ++++ configure Fri Mar 30 21:11:58 2001 +@@ -188,7 +188,7 @@ + + find_ssl() { sslinclude="" - for i1 in /usr /usr/local + for i1 in /usr /usr/local /usr/pkg do -@@ -312,9 +312,9 @@ + for i2 in /openssl /ssl / + do +@@ -312,13 +312,13 @@ + echo "Which language do you prefer?" + echo " 1 - Japanese (charset ISO-2022-JP, EUC-JP, Shift_JIS)" echo " 2 - English (charset US_ASCII, ISO-8859-1, etc.)" -if [ "$pref_lang" = 2 ]; then - Echo '[2]? ' @@ -23,17 +30,40 @@ $NetBSD: patch-aa,v 1.7 2000/08/15 03:57:48 itojun Exp $ +# def_lg=1 +#fi while : -@@ -786,3 +786,3 @@ + do + readanswer lg_ans "$def_lg" +@@ -469,7 +469,7 @@ + case "$ans" in + 1) + use_color=n; def_color="#undef COLOR" +- use_menu=n; def_menu="#undef MENU" ++ use_menu=y; def_menu="#undef MENU" + use_mouse=n; def_mouse="#undef MOUSE" + use_cookie=n; def_cookie="#undef USE_COOKIE" + use_ssl=n; def_ssl="#undef USE_SSL" +@@ -796,7 +796,7 @@ + gclib='' + gcinclude='' gctarget='' -for libdir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib +for libdir in /lib /usr/lib ${LOCALBASE}/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib do -@@ -794,3 +794,3 @@ + if [ -f $libdir/libgc.a -o -f $libdir/libgc.so ] ; then + echo "$libdir/libgc found" +@@ -804,7 +804,7 @@ + break + fi done -for inc in /usr/include /usr/include/gc /usr/local/include /usr/local/include/gc ${HOME}/include +for inc in /usr/include /usr/include/gc ${LOCALBASE}/include /usr/local/include /usr/local/include/gc ${HOME}/include do -@@ -1555,2 +1555,3 @@ + if [ -f $inc/gc.h ]; then + echo "$inc/gc.h found" +@@ -1699,6 +1699,7 @@ + if [ `expr "$perl" : 'not found'` != 0 ]; then + perl=/usr/local/bin/perl fi +perl=/usr/pkg/bin/perl if [ $sysname = CYGWIN ]; then + cygwin=1 + else diff --git a/www/w3m/patches/patch-ab b/www/w3m/patches/patch-ab index 0dbbe03d076..b1f5a713454 100644 --- a/www/w3m/patches/patch-ab +++ b/www/w3m/patches/patch-ab @@ -1,14 +1,12 @@ -$NetBSD: patch-ab,v 1.6 2000/06/21 08:22:12 itohy Exp $ +$NetBSD: patch-ab,v 1.7 2001/03/31 09:21:17 itojun Exp $ -Suspend the job w3m belongs to, not w3m only. - ---- main.c.orig Tue Jun 6 14:56:48 2000 -+++ main.c Tue Jun 20 21:21:19 2000 -@@ -1529,7 +1529,17 @@ +--- main.c.orig Fri Mar 23 11:14:58 2001 ++++ main.c Fri Mar 30 21:02:12 2001 +@@ -1645,7 +1645,17 @@ shell = "/bin/sh"; system(shell); #else /* SIGSTOP */ -+#ifdef SIGTSTP /* BSD */ ++#ifdef SIGTSTP + signal(SIGTSTP, SIG_DFL); /* just in case */ + /* + * Note: If susp() was called from SIGTSTP handler, @@ -17,7 +15,7 @@ Suspend the job w3m belongs to, not w3m only. + */ + kill(0, SIGTSTP); /* stop whole job, not a single process */ +#else - kill(getpid(), SIGSTOP); + kill((pid_t)0, SIGSTOP); +#endif #endif /* SIGSTOP */ fmInit(); diff --git a/www/w3m/patches/patch-ac b/www/w3m/patches/patch-ac index 2e41ef0414b..7e5741f1311 100644 --- a/www/w3m/patches/patch-ac +++ b/www/w3m/patches/patch-ac @@ -1,14 +1,38 @@ -$NetBSD: patch-ac,v 1.7 2000/10/14 01:22:42 itojun Exp $ +$NetBSD: patch-ac,v 1.8 2001/03/31 09:21:17 itojun Exp $ ---- display.c.orig Wed Jun 14 19:26:34 2000 -+++ display.c Wed Oct 11 15:35:33 2000 -@@ -232,3 +232,3 @@ - else --#if LANG == JA -+#if KANJI_SYMBOL - msg = Sprintf("¢ã¢¬¢Viewing <%s> ", cleanup_str(buf->buffername)); -@@ -251,3 +251,3 @@ - Strcat(msg, Strsubstr(s, 0, (l - 2) / 2)); --#if LANG == JA -+#if KANJI_SYMBOL - Strcat_charp(msg, "¡Ä"); +*** display.c.orig Fri Mar 23 10:49:53 2001 +--- display.c Fri Mar 30 21:02:31 2001 +*************** +*** 251,257 **** + + #ifdef MOUSE + if (use_mouse) +! #if LANG == JA + msg = Strnew_charp("¢ã¢¬¢"); + #else /* LANG != JA */ + msg = Strnew_charp("<=UpDn "); +--- 251,257 ---- + + #ifdef MOUSE + if (use_mouse) +! #if KANJI_SYMBOL + msg = Strnew_charp("¢ã¢¬¢"); + #else /* LANG != JA */ + msg = Strnew_charp("<=UpDn "); +*************** +*** 273,279 **** + if (s->length > l) { + if (l >= 4) { + msg = Strsubstr(s, 0, (l - 2) / 2); +! #if LANG == JA + Strcat_charp(msg, "¡Ä"); + #else /* LANG != JA */ + Strcat_charp(msg, ".."); +--- 273,279 ---- + if (s->length > l) { + if (l >= 4) { + msg = Strsubstr(s, 0, (l - 2) / 2); +! #if KANJI_SYMBOL + Strcat_charp(msg, "¡Ä"); + #else /* LANG != JA */ + Strcat_charp(msg, ".."); diff --git a/www/w3m/patches/patch-ad b/www/w3m/patches/patch-ad index 8c03397b1a2..d800d64b8d1 100644 --- a/www/w3m/patches/patch-ad +++ b/www/w3m/patches/patch-ad @@ -1,24 +1,49 @@ -$NetBSD: patch-ad,v 1.5 2000/10/14 01:22:42 itojun Exp $ +$NetBSD: patch-ad,v 1.6 2001/03/31 09:21:17 itojun Exp $ ---- rc.c.orig Wed Jun 14 19:18:51 2000 -+++ rc.c Wed Oct 11 15:36:29 2000 -@@ -52,3 +52,3 @@ +--- rc.c.orig Fri Mar 23 10:51:04 2001 ++++ rc.c Fri Mar 30 21:07:29 2001 +@@ -51,7 +51,7 @@ + #endif + #define P_PIXELS 8 -#if LANG == JA +#if KANJI_SYMBOL #define CMT_HELPER "³°Éô¥Ó¥å¡¼¥¢¤ÎÊÔ½¸" -@@ -129,3 +129,3 @@ + #define CMT_TABSTOP "¥¿¥ÖÉý" + #define CMT_PIXEL_PER_CHAR "ʸ»úÉý (4.0...32.0)" +@@ -146,7 +146,7 @@ + #define CMT_PAGERLINE "# of reserved line when w3m is used as a pager" + #define CMT_HISTSIZE "# of reserved URL" #define CMT_SAVEHIST "Save URL history" -/* #define CMT_KANJICODE "Display Kanji Code" */ +#define CMT_KANJICODE "Display Kanji Code" #define CMT_FRAME "Automatic rendering of frame" -@@ -218,3 +218,3 @@ + #define CMT_TSELF "use _self as default target" + #define CMT_DISPLINK "Automatic display of link URL" +@@ -184,7 +184,7 @@ + #define CMT_FTPPASS "Password for FTP(use your mail address)" + #define CMT_USERAGENT "User-Agent" + #define CMT_ACCEPTLANG "Accept-Language" +-/* #define CMT_DOCUMENTCODE "Document Charset" */ ++#define CMT_DOCUMENTCODE "Document Charset" + #define CMT_WRAP "Wrap search" + #define CMT_VIEW_UNSEENOBJECTS "Display unseenobjects (e.g. bgimage) tag" + #ifdef __EMX__ +@@ -260,7 +260,7 @@ + #ifdef COLOR + static struct sel_c colorstr[] = { --#if LANG== JA +-#if LANG == JA +#if KANJI_SYMBOL {0, "black", "¹õ"}, -@@ -367,3 +367,3 @@ + {1, "red", "ÀÖ"}, + {2, "green", "ÎÐ"}, +@@ -442,7 +442,7 @@ + + struct param_section sections[] = { -#if LANG == JA +#if KANJI_SYMBOL {"ɽ¼¨´Ø·¸", params1}, + #ifdef COLOR + {"ɽ¼¨¿§", params2}, diff --git a/www/w3m/patches/patch-ae b/www/w3m/patches/patch-ae deleted file mode 100644 index 343fdb98693..00000000000 --- a/www/w3m/patches/patch-ae +++ /dev/null @@ -1,132 +0,0 @@ -$NetBSD: patch-ae,v 1.3 2000/08/16 00:31:34 itojun Exp $ -Index: ftp.c -=================================================================== -RCS file: /cvsroot/apps/w3m/ftp.c,v -retrieving revision 1.1 -retrieving revision 1.2 -diff -u -1 -r1.1 -r1.2 ---- ftp.c 2000/08/15 23:53:35 1.1 -+++ ftp.c 2000/08/16 00:28:03 1.2 -@@ -15,4 +15,5 @@ - --#ifdef FTPPASS_HOSTNAMEGEN - #include <sys/socket.h> -+ -+#ifdef FTPPASS_HOSTNAMEGEN - #include <netinet/in.h> -@@ -22,3 +23,8 @@ - -+#ifdef INET6 -+#include <netdb.h> -+#endif -+ - typedef struct _FTP { -+ int family; - FILE *rcontrol; -@@ -105,2 +111,8 @@ - Str tmp; -+#ifdef INET6 -+ struct sockaddr_storage ss; -+#else -+ struct sockaddr ss; -+#endif -+ int sslen; - FTP ftp = New(struct _FTP); -@@ -116,3 +128,7 @@ - if (n > 0 && pass[n - 1] == '@') { -+#ifdef INET6 -+ struct sockaddr_storage sockname; -+#else - struct sockaddr_in sockname; -+#endif - int socknamelen = sizeof(sockname); -@@ -120,5 +136,19 @@ - if (!getsockname(fd, (struct sockaddr *) &sockname, &socknamelen)) { -+#ifdef INET6 -+ char hbuf[NI_MAXHOST]; -+#else - struct hostent *sockent; -+#endif - Str tmp2 = Strnew_charp(pass); - -+#ifdef INET6 -+ if (getnameinfo((struct sockaddr *)&sockname, socknamelen, -+ hbuf, sizeof(hbuf), NULL, 0, NI_NAMEREQD) == 0) { -+ Strcat_charp(tmp2, hbuf); -+ } else if (getnameinfo((struct sockaddr *)&sockname, socknamelen, -+ hbuf, sizeof(hbuf), NULL, 0, 0) == 0) { -+ Strcat_m_charp(tmp2, "[", hbuf, "]", NULL); -+ } else -+ Strcat_charp(tmp2, "invalid"); -+#else - if (sockent = gethostbyaddr((char *) &sockname.sin_addr, -@@ -129,2 +159,3 @@ - Strcat_m_charp(tmp2, "[", inet_ntoa(sockname.sin_addr), "]", NULL); -+#endif - -@@ -135,2 +166,8 @@ - #endif -+ sslen = sizeof(ss); -+ if (getsockname(fd, (struct sockaddr *)&ss, &sslen) < 0) { -+ close(fd); -+ return -1; -+ } -+ ftp->family = ((struct sockaddr *)&ss)->sa_family; - ftp->rcontrol = fdopen(fd, "rb"); -@@ -176,3 +213,46 @@ - -+#ifdef INET6 - int -+ftp_epsv(FTP ftp) -+{ -+ int port; -+ int data_s; -+ char *p; -+ Str tmp; -+ char hbuf[NI_MAXHOST]; -+ struct sockaddr_storage ss; -+ int sslen; -+ -+ sslen = sizeof(ss); -+ if (getpeername(fileno(ftp->wcontrol), (struct sockaddr *)&ss, &sslen) < 0) -+ return -1; -+ if (getnameinfo((struct sockaddr *)&ss, ((struct sockaddr *)&ss)->sa_len, -+ hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) { -+ return -1; -+ } -+ -+ fwrite("EPSV\r\n", 6, sizeof(char), ftp->wcontrol); -+ fflush(ftp->wcontrol); -+ tmp = read_response(ftp); -+ if (atoi(tmp->ptr) != 229) -+ return -1; -+ for (p = tmp->ptr + 4; *p && *p != '('; p++); /*)*/ -+ if (*p == '\0') -+ return -1; -+ p++; -+ /* find "|||port|" */ -+ if (p[0] && p[0] == p[1] && p[0] == p[2]) -+ p += 3; -+ else -+ return -1; -+ sscanf(p, "%d", &port); -+ data_s = openSocket(hbuf, "", port); -+ if (data_s < 0) -+ return -1; -+ ftp->data = fdopen(data_s, "rb"); -+ return 0; -+} -+#endif -+ -+int - ftp_pasv(FTP ftp) -@@ -183,2 +263,9 @@ - Str tmp; -+ -+#ifdef INET6 -+ if (ftp->family == AF_INET6 || ftp->family == AF_INET) { -+ if (ftp_epsv(ftp) == 0) -+ return 0; -+ } -+#endif - diff --git a/www/w3m/patches/patch-af b/www/w3m/patches/patch-af deleted file mode 100644 index 462fe928a39..00000000000 --- a/www/w3m/patches/patch-af +++ /dev/null @@ -1,14 +0,0 @@ -$NetBSD: patch-af,v 1.1 2001/02/11 22:30:09 hubertf Exp $ - ---- file.c.orig Wed Jun 14 12:35:40 2000 -+++ file.c -@@ -5239,7 +5239,9 @@ - Strcat(tmp, lineBuf2); - lineBuf2 = tmp; - } -+#ifdef CHARSET_JP - lineBuf2 = convertLine(&uf, lineBuf2, &code); -+#endif - lineBuf2 = checkType(lineBuf2->ptr, propBuffer, LINELEN); - len = lineBuf2->length; - l = New(Line); diff --git a/www/w3m/pkg/PLIST b/www/w3m/pkg/PLIST index af219c8e7f8..1dbf3da3ffc 100644 --- a/www/w3m/pkg/PLIST +++ b/www/w3m/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2000/05/19 07:34:35 itohy Exp $ +@comment $NetBSD: PLIST,v 1.5 2001/03/31 09:21:18 itojun Exp $ bin/w3m man/man1/w3m.1 man/ja_JP.EUC/man1/w3m.1 @@ -16,6 +16,7 @@ share/doc/w3m/doc/README.cygwin share/doc/w3m/doc/README.dict share/doc/w3m/doc/README.func share/doc/w3m/doc/STORY.html +share/doc/w3m/doc/history share/doc/w3m/doc/keymap.default share/doc/w3m/doc/keymap.lynx share/doc/w3m/doc/menu.default @@ -27,12 +28,15 @@ share/doc/w3m/doc-jp/HISTORY share/doc/w3m/doc-jp/HISTORY.kokb share/doc/w3m/doc-jp/MANUAL.html share/doc/w3m/doc-jp/README +share/doc/w3m/doc-jp/README.SSL +share/doc/w3m/doc-jp/README.cookie share/doc/w3m/doc-jp/README.cygwin share/doc/w3m/doc-jp/README.dict share/doc/w3m/doc-jp/README.func share/doc/w3m/doc-jp/README.hp share/doc/w3m/doc-jp/README.keymap share/doc/w3m/doc-jp/README.kokb +share/doc/w3m/doc-jp/README.mailcap share/doc/w3m/doc-jp/README.menu share/doc/w3m/doc-jp/STORY.html share/doc/w3m/doc-jp/keymap.default |