Remove cyrproxy (old, unmaintained)

ok jasper@, mikeb@
This commit is contained in:
shadchin 2011-03-21 15:31:38 +00:00
parent e03c72ef8e
commit 90a44bae22
13 changed files with 1 additions and 372 deletions

View File

@ -1,7 +1,6 @@
# $OpenBSD: Makefile,v 1.11 2010/02/01 17:00:14 espie Exp $
# $OpenBSD: Makefile,v 1.12 2011/03/21 15:31:38 shadchin Exp $
SUBDIR =
SUBDIR += cyrproxy
SUBDIR += d1489
SUBDIR += pscyr
SUBDIR += xcyrillic

View File

@ -1,45 +0,0 @@
# $FreeBSD: ports/russian/cyrproxy/Makefile,v 1.4 1999/08/31 01:46:57 peter Exp $
# $OpenBSD: Makefile,v 1.22 2010/07/24 17:36:16 ajacoutot Exp $
COMMENT= cyrillic proxy for network protocols
DISTNAME= cyrproxy-1.4.2
REVISION= 3
CATEGORIES= russian net www
MASTER_SITES= ftp://ftp.lexa.ru/pub/domestic/lexa/
HOMEPAGE= http://www.lexa.ru/programs/cyrproxy.html
# BSD-like
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
NO_REGRESS= Yes
pre-configure:
@perl -pi -e "s,%%SYSCONFDIR%%,${SYSCONFDIR}," ${WRKSRC}/Makefile
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/cyrproxy
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cyrproxy
${INSTALL_PROGRAM} ${WRKSRC}/cyrproxy ${PREFIX}/libexec
${INSTALL_PROGRAM} ${WRKSRC}/tcpspy ${PREFIX}/libexec
${INSTALL_PROGRAM} ${WRKSRC}/cyrcoder/cyrtrans ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/discover/discover ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/cyrcoder/cyrwww ${PREFIX}/share/cyrproxy
${INSTALL_DATA} ${WRKSRC}/config.gen \
${PREFIX}/share/cyrproxy/cyrproxy.conf.sample
.for f 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/${f} ${PREFIX}/share/cyrproxy
.endfor
.for f in History README README.http
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/cyrproxy
.endfor
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
MD5 (cyrproxy-1.4.2.tar.gz) = KxdamQ/KVUAs67w3ToiqXg==
RMD160 (cyrproxy-1.4.2.tar.gz) = xAgOwJtvz/lAN1VXIpzNRJptgV4=
SHA1 (cyrproxy-1.4.2.tar.gz) = 7kBxTRCb2EFZ7QtxanEgjQamDfg=
SHA256 (cyrproxy-1.4.2.tar.gz) = Wpf4Q459lUugR3Abv4qmahMDsRK5gW8PTQP0q9oYCmk=
SIZE (cyrproxy-1.4.2.tar.gz) = 202556

View File

@ -1,58 +0,0 @@
$OpenBSD: patch-Makefile,v 1.5 2009/01/31 21:48:31 ajacoutot Exp $
--- Makefile.orig Thu Feb 8 23:33:53 2001
+++ Makefile Sat Jan 31 22:32:17 2009
@@ -6,9 +6,9 @@
CHMOD=/bin/chmod
CHOWN=/usr/sbin/chown
-GCC=gcc -O
-CFLAGS=-funsigned-char -Wall
-CC=${GCC} ${CFLAGS}
+#GCC=gcc -O
+CFLAGS+=-funsigned-char -Wall
+#CC=${GCC} ${CFLAGS}
# Some systems contains resolver routines in libresolv
# EXTRALIBS=lresolv
EXTRALIBS=
@@ -34,7 +34,7 @@ SPY=tcpspy
TBLDIR=/usr/local/share/proxy
# config file location
-CONF_FILE=/etc/cyrproxy.conf
+CONF_FILE=%%SYSCONFDIR%%/cyrproxy.conf
# Subdirs for make
# cyrcoder - filter-like cyrillic recoder
@@ -65,7 +65,7 @@ all: ${CYRPROXY} ${SPY} subdirmake config.gen
subdirmake:
- @for i in ${SUBDIRS}; do echo "Making all in $$i" ;cd $$i; pmake all; cd ..; done
+ @for i in ${SUBDIRS}; do echo "Making all in $$i" ;cd $$i; ${MAKE} all; cd ..; done
.SUFFIXES: .a .o .c
@@ -78,12 +78,12 @@ clean: clean-sub
rm -f config.gen cyrproxy.config.sample alldefs.h
clean-sub:
- @for i in ${SUBDIRS}; do echo "Make clean in $$i" ; cd $$i; pmake clean; cd .. ; done
+ @for i in ${SUBDIRS}; do echo "Make clean in $$i" ; cd $$i; ${MAKE} clean; cd .. ; done
install: install-bin install-config install-tables install-sub
install-sub:
- @for i in ${SUBDIRS} ; do cd $$i ; pmake install; cd ..; done
+ @for i in ${SUBDIRS} ; do cd $$i ; ${MAKE} install; cd ..; done
install-bin: ${CYRPROXY} ${SPY}
cp ${CYRPROXY} ${BINDIR}
@@ -128,7 +128,7 @@ alldefs.h: policy.h
awk '/^\#/{print $0}' <policy.h >alldefs.h
config.gen: cyrproxy.conf.tmpl Makefile alldefs.h
- ${CC} ${CFLAGS} -P -E - < cyrproxy.conf.tmpl | awk -f extranl.awk >config.gen
+ ${CC} ${CFLAGS} -P -E - < cyrproxy.conf.tmpl | sed -e '/^XCOMM /s//#/' -e '/^XCOMM$$/s//#/' |awk -f extranl.awk >config.gen
${CYRPROXY}: ${OBJS}
${CC} ${CFLAGS} ${LDFLAGS} -o ${CYRPROXY} ${OBJS} ${EXTRALIBS}

View File

@ -1,40 +0,0 @@
$OpenBSD: patch-com_gw_c,v 1.3 2009/01/31 21:48:31 ajacoutot Exp $
--- com_gw.c.orig Fri Feb 9 01:34:55 2001
+++ com_gw.c Sat Jan 31 22:32:17 2009
@@ -9,7 +9,7 @@
#endif
#include <sys/types.h>
#include <sys/time.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
@@ -169,7 +169,7 @@ simpleServerPipe(int netfd, encoding *enc)
int cnt = 0; \
while(cnt < ENTLEN && *from && *from!=';' && !isspace(*from)) \
{\
- *to++=*str++;\
+ *to++=*from++;\
cnt++;\
}\
*to='\0';\
@@ -222,12 +222,15 @@ EmailGateway (int fromfile,int tofile, char *charset,
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);
}
}

View File

@ -1,22 +0,0 @@
$OpenBSD: patch-cyrcoder_Makefile,v 1.3 2009/01/31 21:48:31 ajacoutot Exp $
--- cyrcoder/Makefile.orig Thu Jul 18 22:28:29 1996
+++ cyrcoder/Makefile Sat Jan 31 22:32:17 2009
@@ -1,7 +1,8 @@
# $Id: patch-cyrcoder_Makefile,v 1.3 2009/01/31 21:48:31 ajacoutot Exp $
TDIR=../tables
-UTILDIR?=/usr/local/bin
+UTILDIR?=${PREFIX}/bin
+CGIPATH=${PREFIX}/www/cgi-bin
BINLIST=cyrtrans transtree transfiles
CHOWN?=/usr/sbin/chown
CHMOD?=chmod
@@ -9,7 +10,7 @@ BINMODE?=755
BINOWNER=root.wheel
TESTBIN=cytest
-CC=gcc -O
+#CC=gcc -O
ENCLIST?=alt iso koi8 win
#### DO NOT CHANGE BELOW THIS LINE ###########

View File

@ -1,84 +0,0 @@
$OpenBSD: patch-cyrproxy_conf_tmpl,v 1.2 2004/01/04 23:37:27 espie Exp $
--- cyrproxy.conf.tmpl.orig 1997-05-03 11:37:05.000000000 +0200
+++ cyrproxy.conf.tmpl 2004-01-05 00:30:27.000000000 +0100
@@ -1,31 +1,31 @@
#include "alldefs.h"
-# tabledir - ÄÉpÅËÔÏpÉÑ Ó ÔÁÂÌÉÞËÁÍÉ
-tabledir /usr/local/share/proxy
+XCOMM tabledir - ÄÉpÅËÔÏpÉÑ Ó ÔÁÂÌÉÞËÁÍÉ
+tabledir /usr/local/share/cyrproxy
-# encoding name table_from_client table_to_client
-# none is reserved filename - no encoding
+XCOMM encoding name table_from_client table_to_client
+XCOMM none is reserved filename - no encoding
encoding koi8 NONE NONE
encoding alt alt-koi8 koi8-alt
encoding win win-koi8 koi8-win
-#encoding iso iso-koi8 koi8-iso
-#encoding mac mac-koi8 koi8-mac
+XCOMM encoding iso iso-koi8 koi8-iso
+XCOMM encoding mac mac-koi8 koi8-mac
-# add MIME charset descriptions for each encoding
-# emailcharset encoding_name server-charset client-charset
-#
-# different charset rules for different clients
-# can be described with _several_ encodings with same tables
-# and different emailcharset strings
-#
+XCOMM add MIME charset descriptions for each encoding
+XCOMM emailcharset encoding_name server-charset client-charset
+XCOMM
+XCOMM different charset rules for different clients
+XCOMM can be described with _several_ encodings with same tables
+XCOMM and different emailcharset strings
+XCOMM
emailcharset win koi8-r windows-1251
emailcharset alt koi8-r cp866
#ifdef TRANSPARENT_HOST
-#
+XCOMM
transparenthost ns.lexa.ru
#endif
@@ -34,24 +34,24 @@ gwprecedence PT
default koi8
-# options.
+XCOMM options.
option port 23 protocol telnet
option port 70 protocol gopher
option port 8080 protocol http
option port 110 protocol pop
option port 25 protocol smtp
-# option tos 16 protocol telnet
+XCOMM option tos 16 protocol telnet
-# peer section.
-# Syntax:
-# Peer address encoding
+XCOMM peer section.
+XCOMM Syntax:
+XCOMM Peer address encoding
peer 1.2.3.4 win
-# Virtualhost
-# virtualhost koi8.lexa.ru koi8
+XCOMM Virtualhost
+XCOMM virtualhost koi8.lexa.ru koi8
virtualhost win.lexa.ru win
-#virtualhost iso.lexa.ru iso
+XCOMM virtualhost iso.lexa.ru iso
virtualhost dos.lexa.ru alt
-# virtualhost mac.lexa.ru mac
-# virtualhost 127.0.0.1 koi8
+XCOMM virtualhost mac.lexa.ru mac
+XCOMM virtualhost 127.0.0.1 koi8

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-discover_Makefile,v 1.1 2001/11/27 10:06:50 form Exp $
--- discover/Makefile.orig Tue Mar 26 02:24:35 1996
+++ discover/Makefile Tue Nov 27 15:37:42 2001
@@ -3,7 +3,7 @@
CC=gcc
CFLAGS=
BINARY=encdiscover
-UTILDIR?=/usr/local/bin
+UTILDIR?=${PREFIX}/bin
BINOWN?=root.wheel
BINMODE?=755
CHOWN?=/usr/sbin/chown

View File

@ -1,29 +0,0 @@
$OpenBSD: patch-http_gw_c,v 1.2 2005/12/24 08:20:40 pvalchev Exp $
--- http_gw.c.orig Thu Feb 8 18:33:04 2001
+++ http_gw.c Fri Dec 23 23:45:13 2005
@@ -13,7 +13,7 @@
#include <syslog.h>
#include <stdlib.h>
#include <stdio.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <stdarg.h>
#include <unistd.h>
#ifdef _AIX
@@ -344,8 +344,6 @@ http_response(int netfd,encoding *enc)
char *p = strstr(buf,"charset=");
if(p)
sprintf(p,"charset=%s\n",enc->clientcharset);
-#if 0 /* commented out. I'm not sure, that we must force charset addition
- for documents, which not contains it! */
else
{
p=strchr(buf,'\n');
@@ -360,7 +358,6 @@ http_response(int netfd,encoding *enc)
strcat(buf,"\n");
}
}
-#endif
n=strlen(buf);
}

View File

@ -1,21 +0,0 @@
$OpenBSD: patch-policy_h,v 1.1 2001/11/27 10:06:50 form Exp $
--- policy.h.orig Fri Feb 9 06:52:50 2001
+++ policy.h Tue Nov 27 15:37:42 2001
@@ -94,7 +94,7 @@
/* #define NO_VSNPRINTF */
-#if defined(_AIX) || !defined(NO_VSNPRINTF)
+#if defined(_AIX)
#define NO_VSNPRINTF
#endif
@@ -105,7 +105,7 @@
*/
/* #define NO_HSTRERROR */
-#if defined(_AIX) || !defined(NO_HSTRERROR)
+#if defined(_AIX)
#define NO_HSTRERROR
#endif

View File

@ -1,21 +0,0 @@
$OpenBSD: patch-readconf_c,v 1.2 2005/12/24 08:20:40 pvalchev Exp $
--- readconf.c.orig Sat May 3 05:57:22 1997
+++ readconf.c Fri Dec 23 23:44:56 2005
@@ -17,7 +17,7 @@
#include <syslog.h>
#include <sys/socket.h>
#include <netinet/in.h>
-#include <sys/errno.h>
+#include <errno.h>
#include "policy.h"
#include "readconf.h"
@@ -648,7 +648,7 @@ EncodingByAddress(void)
retval=NULL; \
while(list!=NULL) \
{ \
- if(list->##fieldn == compval) \
+ if(list->fieldn == compval) \
retval=list; \
list=list->chain; \
} \

View File

@ -1,5 +0,0 @@
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).

View File

@ -1,28 +0,0 @@
@comment $OpenBSD: PLIST,v 1.7 2009/01/31 21:48:31 ajacoutot Exp $
@bin bin/cyrtrans
bin/discover
@bin libexec/cyrproxy
@bin libexec/tcpspy
share/cyrproxy/
share/cyrproxy/alt-iso
share/cyrproxy/alt-koi8
share/cyrproxy/alt-win
share/cyrproxy/cyrproxy.conf.sample
@sample ${SYSCONFDIR}/cyrproxy.conf
@bin share/cyrproxy/cyrwww
@sample /var/www/cgi-bin/cyrwww
share/cyrproxy/iso-alt
share/cyrproxy/iso-koi8
share/cyrproxy/iso-win
share/cyrproxy/koi8-alt
share/cyrproxy/koi8-iso
share/cyrproxy/koi8-mac
share/cyrproxy/koi8-win
share/cyrproxy/mac-koi8
share/cyrproxy/win-alt
share/cyrproxy/win-iso
share/cyrproxy/win-koi8
share/doc/cyrproxy/
share/doc/cyrproxy/History
share/doc/cyrproxy/README
share/doc/cyrproxy/README.http