From owner-freebsd-ports Tue May 28 22:50:32 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3264C37B40A for ; Tue, 28 May 2002 22:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4T5o1617033; Tue, 28 May 2002 22:50:01 -0700 (PDT) (envelope-from gnats) Received: from vampiro.rootshell.ru (vampiro.rootshell.ru [195.162.58.222]) by hub.freebsd.org (Postfix) with ESMTP id 675A337B407 for ; Tue, 28 May 2002 22:45:33 -0700 (PDT) Received: by vampiro.rootshell.ru (Sendmail for UK-NC (RT11-SJ), from userid 1111) id 8269D550D; Wed, 29 May 2002 12:45:32 +0700 (OMSST) Message-Id: <20020529054532.8269D550D@vampiro.rootshell.ru> Date: Wed, 29 May 2002 12:45:32 +0700 (OMSST) From: El Vampiro Reply-To: El Vampiro To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/38680: Update port: ports/38650 add recoding of offline messages, add more MASTER_SITES Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 38680 >Category: ports >Synopsis: Update port: ports/38650 add recoding of offline messages, add more MASTER_SITES >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue May 28 22:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: El Vampiro >Release: FreeBSD 4.6-PRERELEASE i386 >Organization: >Environment: System: FreeBSD vampiro.rsb.local 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #1: Wed May 15 16:47:43 OMSST 2002 root@vampiro.rsb.local:/usr/obj/usr/src/sys/VAMPIRO i386 >Description: Add recoding of messages received while being offline Add 3 additional MASTER_SITES entries which I can control directly Push MASTER_SITE_SOURCEFORGE to the end of MASTER_SITES >How-To-Repeat: >Fix: diff -ruN ysm.old/Makefile ysm/Makefile --- ysm.old/Makefile Wed May 29 11:53:25 2002 +++ ysm/Makefile Wed May 29 11:58:10 2002 @@ -8,8 +8,11 @@ PORTNAME= ysm PORTVERSION= 7.2.7.1 CATEGORIES= net -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ - ftp://vampiro.rootshell.ru/pub/warez/ +MASTER_SITES= ftp://vampiro.rootshell.ru/pub/warez/ \ + http://vampiro.rootshell.ru/ \ + ftp://ftp.treasury.ru/pub/unix/ \ + http://www.treasury.ru/ \ + ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} DISTNAME= ysmv7_2_7_1 EXTRACT_SUFX= .tgz diff -ruN ysm.old/files/patch-network-recode-offline ysm/files/patch-network-recode-offline --- ysm.old/files/patch-network-recode-offline Thu Jan 1 06:00:00 1970 +++ ysm/files/patch-network-recode-offline Wed May 29 11:49:23 2002 @@ -0,0 +1,35 @@ +--- YSM_Network.c.orig Wed May 29 11:20:12 2002 ++++ YSM_Network.c Wed May 29 11:47:54 2002 +@@ -2638,6 +2638,7 @@ + /* offline message variables */ + int uin,mlen; + char *message,MsgType,MsgFlags,Msglen[2]; ++ char *data_conv = 0; + + /* its a TLV(1) at the very beggining, always. */ + tsize += 4; +@@ -2745,13 +2746,22 @@ + "\nMessage received when you were %soffline%s:\n", + BRIGHT_BLUE, + NORMAL); +- ++#ifdef YSM_USE_ICONV ++ if( YSM_Iconv( YSM_SETTING_CHARSET_TRANS, ++ YSM_SETTING_CHARSET_LOCAL, ++ message, ++ &data_conv, ++ YSM_ICONV_MAXLEN) < 0 ) ++#endif ++ { data_conv = strdup (message); } ++ + YSM_DisplayMsg (YSM_MESSAGE_NORMAL, + uin, + 0x0, +- mlen, message, ++ mlen, data_conv, + YSM_Query->NickName, + !YSM_Query ? 0x0 : YSM_Query->LogFlag ); ++ free(data_conv); + + break; + >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message