ports/64039: ports/chinese/mldonkey-core, new ports
Hung-Te Lin
piaip at csie.ntu.edu.tw
Wed Mar 10 12:40:05 UTC 2004
>Number: 64039
>Category: ports
>Synopsis: new ports: chinese/mldonkey-core new ports
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 10 04:40:04 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Hung-Te Lin
>Release: FreeBSD 5.1-RELEASE-p10 i386
>Organization:
Communication & Multimedia Lab, NTU, Taiwan
>Environment:
System: FreeBSD cml4.csie.ntu.edu.tw 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: Mon Nov 3 21:34:06 CST 2003 root at cml4.csie.ntu.edu.tw:/usr/obj/usr/src/sys/cml4 i386
>Description:
new ports: chinese/mldonkey-core new ports
net/mldonkey-core has no support for DBCS users.
This ports made its telnet interface accepting DBCS
and changed its HTML output to Big5 in meta flag.
>How-To-Repeat:
>Fix:
#!/bin/sh
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# mldonkey-core
# mldonkey-core/files
# mldonkey-core/files/patch-driverControlers.ml
# mldonkey-core/Makefile
#
echo c - mldonkey-core
mkdir -p mldonkey-core > /dev/null 2>&1
echo c - mldonkey-core/files
mkdir -p mldonkey-core/files > /dev/null 2>&1
echo x - mldonkey-core/files/patch-driverControlers.ml
sed 's/^X//' >mldonkey-core/files/patch-driverControlers.ml << 'END-of-mldonkey-core/files/patch-driverControlers.ml'
X--- src/daemon/driver/driverControlers.ml.orig Mon Oct 13 02:41:30 2003
X+++ src/daemon/driver/driverControlers.ml Wed Mar 10 19:11:04 2004
X@@ -291,6 +291,7 @@
X }
X
X
X+let iac_will_8bit = "\255\253\000"
X let iac_will_naws = "\255\253\031"
X
X let user_reader o telnet sock nread =
X@@ -320,7 +321,7 @@
X
X let i = int_of_char c in
X telnet.telnet_iac <- false;
X- let is_normal_char = i > 31 && i < 127 in
X+ let is_normal_char = i > 31 (*&& i < 127*) in
X
X if telnet.telnet_wait = 1 then begin
X Buffer.add_char telnet.telnet_buffer c;
X@@ -439,6 +440,7 @@
X TcpBufferedSocket.set_closer sock user_closed;
X user_socks := sock :: !user_socks;
X
X+ TcpBufferedSocket.write_string sock iac_will_8bit;
X TcpBufferedSocket.write_string sock iac_will_naws;
X
X before_telnet_output o sock;
X@@ -573,17 +575,17 @@
X let http_add_html_header buf =
X http_add_gen_header buf;
X Buffer.add_string buf "Pragma: no-cache\r\n";
X- Buffer.add_string buf "Content-Type: text/html; charset=iso-8859-1\r\n";
X+ Buffer.add_string buf "Content-Type: text/html; charset=big5\r\n";
X Buffer.add_string buf "\r\n"
X
X let http_add_css_header buf =
X http_add_gen_header buf;
X- Buffer.add_string buf "Content-Type: text/css; charset=iso-8859-1\r\n";
X+ Buffer.add_string buf "Content-Type: text/css; charset=big5\r\n";
X Buffer.add_string buf "\r\n"
X
X let http_add_js_header buf =
X http_add_gen_header buf;
X- Buffer.add_string buf "Content-Type: text/javascript; charset=iso-8859-1\r\n";
X+ Buffer.add_string buf "Content-Type: text/javascript; charset=big5\r\n";
X Buffer.add_string buf "\r\n"
X
X let any_ip = Ip.of_inet_addr Unix.inet_addr_any
END-of-mldonkey-core/files/patch-driverControlers.ml
echo x - mldonkey-core/Makefile
sed 's/^X//' >mldonkey-core/Makefile << 'END-of-mldonkey-core/Makefile'
X# New ports collection makefile for: zh-tw-mldonkey
X# Date created: Wed Mar 10 19:36:06 CST 2004
X# Whom: Hung-Te Lin
X# <piaip at csie.ntu.edu.tw>
X#
X# $FreeBSD$
X#
X# Only core (HTML/telnet) is affected. GUI has no problem with Chinese.
X
XPORTNAME= mldonkey-core
XCATEGORIES= chinese net
X
XMAINTAINER= piaip at csie.ntu.edu.tw
XCOMMENT= Client 'core' for MLDonkey with Traditional Chinese (Big5) support
X
XWITHOUT_GUI= yes
XMASTERDIR= ${.CURDIR}/../../net/mldonkey
XEXTRA_PATCHES= ${.CURDIR}/files/patch-driverControlers.ml
X
X.include "${MASTERDIR}/Makefile"
X
XPKGNAMEPREFIX:= ${PKGNAMEPREFIX}tw-
END-of-mldonkey-core/Makefile
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list