diff options
-rw-r--r-- | net-im/ysm/Makefile | 8 | ||||
-rw-r--r-- | net-im/ysm/files/patch-network | 33 | ||||
-rw-r--r-- | net/ysm/Makefile | 8 | ||||
-rw-r--r-- | net/ysm/files/patch-network | 33 |
4 files changed, 78 insertions, 4 deletions
diff --git a/net-im/ysm/Makefile b/net-im/ysm/Makefile index 85c72be..b8dce41 100644 --- a/net-im/ysm/Makefile +++ b/net-im/ysm/Makefile @@ -7,9 +7,13 @@ PORTNAME= ysm PORTVERSION= 7.2.7.1 +PORTREVISION= 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 --git a/net-im/ysm/files/patch-network b/net-im/ysm/files/patch-network index 4d35905..e7a2bc6 100644 --- a/net-im/ysm/files/patch-network +++ b/net-im/ysm/files/patch-network @@ -11,3 +11,36 @@ data, &data_conv, YSM_ICONV_MAXLEN) < 0 ) +@@ -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; + diff --git a/net/ysm/Makefile b/net/ysm/Makefile index 85c72be..b8dce41 100644 --- a/net/ysm/Makefile +++ b/net/ysm/Makefile @@ -7,9 +7,13 @@ PORTNAME= ysm PORTVERSION= 7.2.7.1 +PORTREVISION= 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 --git a/net/ysm/files/patch-network b/net/ysm/files/patch-network index 4d35905..e7a2bc6 100644 --- a/net/ysm/files/patch-network +++ b/net/ysm/files/patch-network @@ -11,3 +11,36 @@ data, &data_conv, YSM_ICONV_MAXLEN) < 0 ) +@@ -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; + |