ports/80607: Unzip port with CP866 and KOI8-R support
Denis Peplin
den at FreeBSD.org
Wed May 4 09:50:41 UTC 2005
>Number: 80607
>Category: ports
>Synopsis: Unzip port with CP866 and KOI8-R support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed May 04 09:50:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Denis Peplin
>Release: FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 4.11-STABLE FreeBSD 4.11-STABLE #16: Sat Feb 26 00:02:03 GMT 2005 kensmith at freefall.freebsd.org:/c/src/sys/compile/FREEFALL i386
>Description:
Unzip port with CP866 and KOI8-R support
The patch obtained from:
http://atmsk.ru/index.php?option=faq&task=viewfaq&artid=138&Itemid=5
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# unzip
# unzip/files
# unzip/files/patch-ebcdic.h
# unzip/Makefile
#
echo c - unzip
mkdir -p unzip > /dev/null 2>&1
echo c - unzip/files
mkdir -p unzip/files > /dev/null 2>&1
echo x - unzip/files/patch-ebcdic.h
sed 's/^X//' >unzip/files/patch-ebcdic.h << 'END-of-unzip/files/patch-ebcdic.h'
X--- ebcdic.h.orig Wed May 4 12:30:10 2005
X+++ ebcdic.h Wed May 4 12:30:18 2005
X@@ -237,43 +237,43 @@
X
X #ifdef IZ_ISO2OEM_ARRAY
X ZCONST uch Far iso2oem[] = {
X- 0x3F, 0x3F, 0x27, 0x9F, 0x22, 0x2E, 0xC5, 0xCE, /* 80 - 87 */
X- 0x5E, 0x25, 0x53, 0x3C, 0x4F, 0x3F, 0x3F, 0x3F, /* 88 - 8F */
X- 0x3F, 0x27, 0x27, 0x22, 0x22, 0x07, 0x2D, 0x2D, /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/* A0 - A7 */
X+ 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, /* A8 - AF */
X+ 0x90, 0x91, 0x92, 0x81, 0x87, 0xB2, 0xB4, 0xA7, /* B0 - B7 */
X+ 0xA6, 0xB5, 0xA1, 0xA8, 0xAE, 0xAD, 0xAC, 0x83, /* B8 - BF */
X+ 0x84, 0x89, 0x88, 0x86, 0x80, 0x8A, 0xAF, 0xB0, /* C0 - C7 */
X+ 0xAB, 0xA5, 0xBB, 0xB8, 0xB1, 0xA0, 0xBE, 0xB9, /* C8 - CF */
X+ 0xBA, 0xB6, 0xB7, 0xAA, 0xA9, 0xA2, 0xA4, 0xBD, /* D0 - D7 */
X+ 0xBC, 0x85, 0x82, 0x8D, 0x8C, 0x8E, 0x8F, 0x8B, /* D8 - DF */
X+ 0xD2, 0xD3, 0xD4, 0xD5, 0xC6, 0xC8, 0xC3, 0xDE, /* E0 - E7 */
X+ 0xDB, 0xDD, 0xDF, 0xD9, 0xD8, 0xDC, 0xC0, 0xD1, /* E8 - EF */
X+ 0xB3, 0xA3, 0x90, 0x91, 0x92, 0x93, 0x86, 0x82, /* F0 - F7 */
X+ 0x9C, 0x95, 0x9E, 0x96, 0x9D, 0x99, 0x94, 0x9A, /* F8 - FF */
X };
X #endif /* IZ_OEM2ISO_ARRAY */
X
END-of-unzip/files/patch-ebcdic.h
echo x - unzip/Makefile
sed 's/^X//' >unzip/Makefile << 'END-of-unzip/Makefile'
X# New ports collection makefile for: ru-unzip
X# Date created: 4 May 2005
X# Whom: den
X#
X# $FreeBSD$
X#
X
XCATEGORIES= russian archivers
X
XMAINTAINER= den at FreeBSD.org
XCOMMENT= Unzip with CP866 and KOI8-R support
X
XEXTRA_PATCHES= ${.CURDIR}/files/patch-ebcdic.h
X
XMASTERDIR= ${.CURDIR}/../../archivers/unzip
X
X.include "${MASTERDIR}/Makefile"
END-of-unzip/Makefile
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list