Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2002 12:45:32 +0700 (OMSST)
From:      El Vampiro <vampiro@rootshell.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/38680: Update port: ports/38650 add recoding of offline messages, add more MASTER_SITES
Message-ID:  <20020529054532.8269D550D@vampiro.rootshell.ru>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020529054532.8269D550D>