From 7ea93752f4c2784c478d9aee4bdf6cbefa473ec9 Mon Sep 17 00:00:00 2001 From: agc Date: Wed, 19 Jun 2002 09:39:18 +0000 Subject: Initial import of hztty-2.0 into the NetBSD Packages Collection. Provided in PR 16086 by Rui-Xiang Guo (rxg@ms25.url.com.tw) This program turns a tty session from one encoding to another. For example, running hztty on cxterm can allow you to read/write Chinese in HZ format, which was not supported by cxterm. If you have many applications in different encodings but your favor terminal program only supports one, hztty can make life easy. For example, hztty can convert your GB cxterm into a HZ terminal, a Unicode (16bit, or UTF8, or UTF7) terminal, or a Big5 terminal. --- converters/hztty/DESCR | 7 +++++++ converters/hztty/Makefile | 20 ++++++++++++++++++++ converters/hztty/PLIST | 3 +++ converters/hztty/distinfo | 6 ++++++ converters/hztty/patches/patch-aa | 22 ++++++++++++++++++++++ converters/hztty/patches/patch-ab | 13 +++++++++++++ 6 files changed, 71 insertions(+) create mode 100644 converters/hztty/DESCR create mode 100644 converters/hztty/Makefile create mode 100644 converters/hztty/PLIST create mode 100644 converters/hztty/distinfo create mode 100644 converters/hztty/patches/patch-aa create mode 100644 converters/hztty/patches/patch-ab (limited to 'converters') diff --git a/converters/hztty/DESCR b/converters/hztty/DESCR new file mode 100644 index 00000000000..e5180d4c3d6 --- /dev/null +++ b/converters/hztty/DESCR @@ -0,0 +1,7 @@ +This program turns a tty session from one encoding to another. +For example, running hztty on cxterm can allow you to read/write +Chinese in HZ format, which was not supported by cxterm. +If you have many applications in different encodings but your +favor terminal program only supports one, hztty can make life easy. +For example, hztty can convert your GB cxterm into a HZ terminal, a +Unicode (16bit, or UTF8, or UTF7) terminal, or a Big5 terminal. diff --git a/converters/hztty/Makefile b/converters/hztty/Makefile new file mode 100644 index 00000000000..bc02e35921e --- /dev/null +++ b/converters/hztty/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/06/19 09:39:18 agc Exp $ + +DISTNAME= hztty-2.0 +CATEGORIES= converters +MASTER_SITES= ftp://ftp.ifcss.org/pub/software/unix/convert/ \ + ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/convert/ \ + ftp://ftp.edu.tw/Chinese/ifcss/software/unix/convert/ \ + ftp://ftp.mpi-sb.mpg.de/pub/chinese/mirror/ftp.ifcss.org/software/unix/convert/ + +MAINTAINER= rxg@netbsd.org +#HOMEPAGE= +COMMENT= turns a tty session between Big5/GB/HZ/Unicode + +ALL_TARGET= bsd + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/hztty ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/hztty.1 ${PREFIX}/man/man1 + +.include "../../mk/bsd.pkg.mk" diff --git a/converters/hztty/PLIST b/converters/hztty/PLIST new file mode 100644 index 00000000000..36579055015 --- /dev/null +++ b/converters/hztty/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/06/19 09:39:18 agc Exp $ +bin/hztty +man/man1/hztty.1 diff --git a/converters/hztty/distinfo b/converters/hztty/distinfo new file mode 100644 index 00000000000..b2cd7abbf9b --- /dev/null +++ b/converters/hztty/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/06/19 09:39:18 agc Exp $ + +SHA1 (hztty-2.0.tar.gz) = db2d13f4f9d3918c1feef3ac8fb4bb24326a28ef +Size (hztty-2.0.tar.gz) = 229189 bytes +SHA1 (patch-aa) = 6479d6b1d359f90e7ad6808bdb9c24c8fe10e9d6 +SHA1 (patch-ab) = fc050ecb9b5df0403b3f0307ccd741c60c693f5f diff --git a/converters/hztty/patches/patch-aa b/converters/hztty/patches/patch-aa new file mode 100644 index 00000000000..fce20851c15 --- /dev/null +++ b/converters/hztty/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/06/19 09:39:18 agc Exp $ + +--- Makefile.orig Sun Jan 29 16:39:19 1995 ++++ Makefile Sun Apr 2 11:16:03 2000 +@@ -31,7 +30,7 @@ + ${OBJ_GB_BIG5} ${OBJ_UNICODE_GB} ${OBJ_UNICODE_BIG5} + + DEFINES= +-CFLAGS=${CDEBUGFLAGS} ${DEFINES} ${MODULES_DEF} -I. ++CFLAGS+=${DEFINES} ${MODULES_DEF} -I. + + PROG = hztty + LIBS= +@@ -132,7 +131,7 @@ + + + bsd: +- miniconf.sh $(CPP) ++ ./miniconf.sh $(CPP) + ${MAKE} ${MFLAGS} DEFINES='-DBSD' ${PROG} + + posix: diff --git a/converters/hztty/patches/patch-ab b/converters/hztty/patches/patch-ab new file mode 100644 index 00000000000..3b60957ba0b --- /dev/null +++ b/converters/hztty/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/06/19 09:39:18 agc Exp $ + +--- tty.c.orig Sun Jan 29 12:24:55 1995 ++++ tty.c Mon Oct 6 23:56:32 1997 +@@ -26,7 +26,7 @@ + # define TTYDEV "/dev/pty/ttyxx" + #else /* !hpux */ + # define PTYCHAR1 "pqrstuvwxyzPQRSTUVWXYZ" +-# define PTYCHAR2 "0123456789abcdef" ++# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuv" + # define PTYDEV "/dev/ptyxx" + # define TTYDEV "/dev/ttyxx" + #endif /* !hpux */ -- cgit v1.2.3