aboutsummaryrefslogtreecommitdiff
path: root/chinese/hztty
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2014-07-24 18:36:19 +0000
committerRene Ladan <rene@FreeBSD.org>2014-07-24 18:36:19 +0000
commit36e34f48e2e5ab984eb31b7cff1ee163494523f0 (patch)
tree78419497b9b7f06ed2367445df2b7045727c6e0a /chinese/hztty
parent37f54e0f66813dcddb3659fd7810198377792a1e (diff)
downloadports-36e34f48e2e5ab984eb31b7cff1ee163494523f0.tar.gz
ports-36e34f48e2e5ab984eb31b7cff1ee163494523f0.zip
Notes
Diffstat (limited to 'chinese/hztty')
-rw-r--r--chinese/hztty/Makefile28
-rw-r--r--chinese/hztty/distinfo2
-rw-r--r--chinese/hztty/files/patch-aa30
-rw-r--r--chinese/hztty/files/patch-ab33
-rw-r--r--chinese/hztty/files/patch-main.c20
-rw-r--r--chinese/hztty/pkg-descr17
6 files changed, 0 insertions, 130 deletions
diff --git a/chinese/hztty/Makefile b/chinese/hztty/Makefile
deleted file mode 100644
index 4463dcfc5d7f..000000000000
--- a/chinese/hztty/Makefile
+++ /dev/null
@@ -1,28 +0,0 @@
-# Created by: Ada T Lim <ada@not-enough.bandwidth.org>
-# $FreeBSD$
-
-PORTNAME= hztty
-PORTVERSION= 2.0
-CATEGORIES= chinese
-MASTER_SITES= ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/convert/
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Translator between GuoBiao / Big5 and HZ
-
-DEPRECATED= Fails to build with new utmpx
-EXPIRATION_DATE= 2014-07-23
-
-ALL_TARGET= bsd
-PLIST_FILES= bin/hztty man/man1/${PORTNAME}.1.gz
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} > 900007
-BROKEN= fails to build with new utmpx
-.endif
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
-
-.include <bsd.port.post.mk>
diff --git a/chinese/hztty/distinfo b/chinese/hztty/distinfo
deleted file mode 100644
index dbeee5338140..000000000000
--- a/chinese/hztty/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (hztty-2.0.tar.gz) = 3a207a8d71d7b8c1b27710df9ce9e3364d6db0a6928a3d8b74089e7bd936ce37
-SIZE (hztty-2.0.tar.gz) = 229189
diff --git a/chinese/hztty/files/patch-aa b/chinese/hztty/files/patch-aa
deleted file mode 100644
index 2d55067f3cfa..000000000000
--- a/chinese/hztty/files/patch-aa
+++ /dev/null
@@ -1,30 +0,0 @@
---- Makefile.orig Sun Jan 29 16:39:19 1995
-+++ Makefile Sun Apr 2 11:16:03 2000
-@@ -19,7 +19,6 @@
-
- CC=cc
- CPP=$(CC) -E
--CDEBUGFLAGS= -O
- MAKE=make
- RM=rm -f
-
-@@ -31,7 +30,7 @@
- ${OBJ_GB_BIG5} ${OBJ_UNICODE_GB} ${OBJ_UNICODE_BIG5}
-
- DEFINES=
--CFLAGS=${CDEBUGFLAGS} ${DEFINES} ${MODULES_DEF} -I.
-+CFLAGS+=${CDEBUGFLAGS} ${DEFINES} ${MODULES_DEF} -I.
-
- PROG = hztty
- LIBS=
-@@ -132,8 +131,8 @@
-
-
- bsd:
-- miniconf.sh $(CPP)
-- ${MAKE} ${MFLAGS} DEFINES='-DBSD' ${PROG}
-+ ./miniconf.sh $(CPP)
-+ ${MAKE} ${MFLAGS} DEFINES='-DPOSIX' ${PROG}
-
- posix:
- miniconf.sh $(CPP)
diff --git a/chinese/hztty/files/patch-ab b/chinese/hztty/files/patch-ab
deleted file mode 100644
index 423a5f861d52..000000000000
--- a/chinese/hztty/files/patch-ab
+++ /dev/null
@@ -1,33 +0,0 @@
---- 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 */
-@@ -320,7 +320,9 @@
- #ifdef TIOCLSET
- (void) ioctl (tty, TIOCLGET, (char *)&(termptr->lmode));
- #endif
--#ifdef USE_SYSV_TERMIO
-+#ifdef USE_TERMIOS
-+ tcgetattr(tty, (char *)&(termptr->tio));
-+#elif defined(USE_SYSV_TERMIO)
- (void) ioctl (tty, TCGETA, (char *)&(termptr->tio));
- #else /* USE_SYSV_TERMIO */
- (void) ioctl (tty, TIOCGETP, (char *)&(termptr->sb));
-@@ -339,7 +341,9 @@
- #ifdef TIOCLSET
- (void) ioctl (tty, TIOCLSET, (char *)&(termptr->lmode));
- #endif
--#ifdef USE_SYSV_TERMIO
-+#ifdef USE_TERMIOS
-+ tcsetattr(tty, TCSANOW, (char *)&(termptr->tio));
-+#elif defined(USE_SYSV_TERMIO)
- (void) ioctl (tty, TCSETA, (char *)&(termptr->tio));
- #else /* USE_SYSV_TERMIO */
- (void) ioctl (tty, TIOCSETP, (char *)&(termptr->sb));
diff --git a/chinese/hztty/files/patch-main.c b/chinese/hztty/files/patch-main.c
deleted file mode 100644
index 7171f473e1ed..000000000000
--- a/chinese/hztty/files/patch-main.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- main.c.orig Tue Jun 4 21:56:28 2002
-+++ main.c Tue Jun 4 21:59:33 2002
-@@ -264,7 +264,7 @@
- static SIGNAL_T
- finish()
- {
--#if defined(SYSV) || defined(POSIX)
-+#if defined(BSD) || defined(SYSV) || defined(POSIX)
- int status;
- #else
- union wait status;
-@@ -272,7 +272,7 @@
- register int pid;
- register int die = 0;
-
--#if defined(SYSV) || defined(POSIX)
-+#if defined(BSD) || defined(SYSV) || defined(POSIX)
- while ((pid = waitpid(-1, &status, WNOHANG|WUNTRACED)) > 0)
- #else
- while ((pid = wait3(&status, WNOHANG|WUNTRACED, (struct rusage *)0))>0)
diff --git a/chinese/hztty/pkg-descr b/chinese/hztty/pkg-descr
deleted file mode 100644
index ed4d0abb62d5..000000000000
--- a/chinese/hztty/pkg-descr
+++ /dev/null
@@ -1,17 +0,0 @@
- hztty
-
- 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
- favorite terminal program only supports one, hztty can make life easy.
- For example, hztty can your GB cxterm into a HZ terminal, a
- Unicode (16bit, or UTF8, or UTF7) terminal, or a Big5 terminal.
-
- The idea is to open a new shell session on top of the current one
- and to translate the encoding between the new tty and the orignal.
- For example, if your application uses encoding A and your terminal
- supports encoding B, hztty catches the output of the application
- and converts them from A to B before sending to the terminal.
- Similarly, hztty converts all the terminal input from B to A before
- sending to the application.