diff options
author | miwi <miwi@FreeBSD.org> | 2008-01-28 07:46:13 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-01-28 07:46:13 +0800 |
commit | 3c3bea99c57932738d43f2ed41961d351c7c409b (patch) | |
tree | d6575c2d2bf50e00a1596372f278f104bc357404 /chinese/hztty | |
parent | b1ec8ed921429e43bafee7573cc6d46a2f39ec3c (diff) | |
download | freebsd-ports-gnome-3c3bea99c57932738d43f2ed41961d351c7c409b.tar.gz freebsd-ports-gnome-3c3bea99c57932738d43f2ed41961d351c7c409b.tar.zst freebsd-ports-gnome-3c3bea99c57932738d43f2ed41961d351c7c409b.zip |
- Use termios.h instead of sgtty.h
- Reset maintainer (mail bounce) [1]
[1]
<ada@bsd.org>: host bsd.org.s6a1.psmtp.com[64.18.5.10] said: 550 No such user -
psmtp (in reply to RCPT TO command)
PR: 120050
Submitted by: Ed Schouten <ed@fxq.nl>
Diffstat (limited to 'chinese/hztty')
-rw-r--r-- | chinese/hztty/Makefile | 2 | ||||
-rw-r--r-- | chinese/hztty/files/patch-aa | 6 | ||||
-rw-r--r-- | chinese/hztty/files/patch-ab | 22 |
3 files changed, 27 insertions, 3 deletions
diff --git a/chinese/hztty/Makefile b/chinese/hztty/Makefile index d6080d8f6734..1f4593da9c07 100644 --- a/chinese/hztty/Makefile +++ b/chinese/hztty/Makefile @@ -10,7 +10,7 @@ PORTVERSION= 2.0 CATEGORIES= chinese MASTER_SITES= ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/convert/ -MAINTAINER= ada@bsd.org +MAINTAINER= ports@FreeBSD.org COMMENT= A translator between GuoBiao / Big5 and HZ ALL_TARGET= bsd diff --git a/chinese/hztty/files/patch-aa b/chinese/hztty/files/patch-aa index ff0cccceb05c..2d55067f3cfa 100644 --- a/chinese/hztty/files/patch-aa +++ b/chinese/hztty/files/patch-aa @@ -17,12 +17,14 @@ PROG = hztty LIBS= -@@ -132,7 +131,7 @@ +@@ -132,8 +131,8 @@ bsd: - miniconf.sh $(CPP) +- ${MAKE} ${MFLAGS} DEFINES='-DBSD' ${PROG} + ./miniconf.sh $(CPP) - ${MAKE} ${MFLAGS} DEFINES='-DBSD' ${PROG} ++ ${MAKE} ${MFLAGS} DEFINES='-DPOSIX' ${PROG} posix: + miniconf.sh $(CPP) diff --git a/chinese/hztty/files/patch-ab b/chinese/hztty/files/patch-ab index 6499d921de37..423a5f861d52 100644 --- a/chinese/hztty/files/patch-ab +++ b/chinese/hztty/files/patch-ab @@ -9,3 +9,25 @@ # 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)); |