Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 1998 08:53:24 +0300 (MSK)
From:      Andrey Zakhvatov <andy@icc.surw.chel.su>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/9151: Update port: russian/cyrproxy
Message-ID:  <199812210553.IAA18083@icc.surw.chel.su>

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

>Number:         9151
>Category:       ports
>Synopsis:       Update port: russian/cyrproxy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 20 22:00:00 PST 1998
>Last-Modified:
>Originator:     Andrey Zakhvatov
>Organization:
South Ural Railway ICC
>Release:        FreeBSD 2.2.7-RELEASE i386
>Environment:

>Description:

   This is a patch to update russian/cyrproxy port.


diff -Nru cyrproxy/Makefile cyrproxy-1.4.2/Makefile
--- cyrproxy/Makefile	Thu Oct 23 22:44:38 1997
+++ cyrproxy-1.4.2/Makefile	Mon Dec 21 11:10:52 1998
@@ -14,7 +14,6 @@
 
 do-install:
 	@ ${MKDIR} ${PREFIX}/share/cyrproxy
-	@ ${MKDIR} ${PREFIX}/share/doc/cyrproxy
 	@ ${MKDIR} ${PREFIX}/www/cgi-bin
 	@ ${INSTALL_PROGRAM} ${WRKSRC}/cyrproxy ${PREFIX}/libexec
 	@ ${INSTALL_PROGRAM} ${WRKSRC}/tcpspy ${PREFIX}/libexec
@@ -25,8 +24,13 @@
 .for file in alt-iso alt-koi8 alt-win iso-alt iso-koi8 iso-win koi8-alt koi8-iso koi8-mac koi8-win mac-koi8 win-alt win-iso win-koi8
 	@ ${INSTALL_DATA} ${WRKSRC}/tables/${file} ${PREFIX}/share/cyrproxy
 .endfor
+
+post-install:
+.if !defined(NOPORTDOCS)
+	@ ${MKDIR} ${PREFIX}/share/doc/cyrproxy
 .for file in History README README.http
 	@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/cyrproxy
 .endfor
+.endif
 
 .include <bsd.port.mk>
diff -Nru cyrproxy/patches/patch-ag cyrproxy-1.4.2/patches/patch-ag
--- cyrproxy/patches/patch-ag	Thu Jan  1 00:00:00 1970
+++ cyrproxy-1.4.2/patches/patch-ag	Mon Dec 21 11:08:03 1998
@@ -0,0 +1,30 @@
+--- com_gw.c	Sat May  3 11:57:20 1997
++++ /home/andy/tmp/wrk/com_gw.c	Mon Dec 21 11:07:38 1998
+@@ -169,7 +169,7 @@
+   int  cnt = 0; \
+   while(cnt < ENTLEN && *from && *from!=';' && !isspace(*from)) \
+      {\
+-	*to++=*str++;\
++	*to++=*from++;\
+         cnt++;\
+      }\
+      *to='\0';\
+@@ -222,12 +222,15 @@
+     if(!strncasecmp(buf,"Content-Type:",13))
+       {
+ 	parseContentType(buf+13,ctype,ocharset,garbage);
+-	fprintf(stderr,"Content: %s, charset: %s\n",ctype,ocharset);
++// if enabled, crushes into the mail - mailers get crazy	
++// fprintf(stderr,"Content: %s, charset: %s\n",ctype,ocharset);
+ 	if(!strcasecmp(ctype,"text/plain") && strcasecmp(ocharset,"us-ascii")
+ 	   && strlen(garbage)==0)
+ 	  {
+-	    fprintf(stderr,"Content: %s, charset: %s\n",ctype,ocharset);
+-	    sprintf(buf,"Content-Type: text/plain; charset=%s\n",charset);
++// if enabled, crushes into the mail - mailers get crazy	
++//   fprintf(stderr,"Content: %s, charset: %s\n",ctype,ocharset);
++// not everyone lives in the UNIX world... \r is still needed :)
++	    sprintf(buf,"Content-Type: text/plain; charset=%s\r\n",charset);
+ 	    blen = strlen(buf);
+ 	  }
+       }
diff -Nru cyrproxy/pkg/DESCR cyrproxy-1.4.2/pkg/DESCR
--- cyrproxy/pkg/DESCR	Thu Jun 19 06:45:22 1997
+++ cyrproxy-1.4.2/pkg/DESCR	Mon Dec 21 11:12:57 1998
@@ -1,6 +1,7 @@
-
-Cyrillic transcoder for network protocols
+Cyrillic transcoder for network protocols.
 
 It allows transcode text-based tcp protocols from/to
 following cyrillic text coding standards: CP866 (DOS),
 Macintosh, ISO, KOI8 (UNIX), CP1251 (Windows).
+
+http://www.lexa.ru/lexa/cyrproxy.html


>How-To-Repeat:

>Fix:

   Please, check and apply this patch.

>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?199812210553.IAA18083>