From d5448fb65c67d0a84d1ba54383112e5fdc7a0a7c Mon Sep 17 00:00:00 2001 From: trevor Date: Fri, 24 Oct 2003 01:18:37 +0000 Subject: new port of showkey --- converters/Makefile | 1 + converters/showkey/Makefile | 27 +++++++++++++++++++++++++++ converters/showkey/distinfo | 1 + converters/showkey/files/patch-showkey.c | 13 +++++++++++++ converters/showkey/pkg-descr | 10 ++++++++++ 5 files changed, 52 insertions(+) create mode 100644 converters/showkey/Makefile create mode 100644 converters/showkey/distinfo create mode 100644 converters/showkey/files/patch-showkey.c create mode 100644 converters/showkey/pkg-descr (limited to 'converters') diff --git a/converters/Makefile b/converters/Makefile index 5894069573b5..b3c78eaf6fd4 100644 --- a/converters/Makefile +++ b/converters/Makefile @@ -56,6 +56,7 @@ SUBDIR += ruby-dump.rb SUBDIR += ruby-iconv SUBDIR += ruby-lv + SUBDIR += showkey SUBDIR += siconv SUBDIR += tnef SUBDIR += trans diff --git a/converters/showkey/Makefile b/converters/showkey/Makefile new file mode 100644 index 000000000000..a64450556eb3 --- /dev/null +++ b/converters/showkey/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: showkey +# Date created: 2003-10-24 +# Whom: trevor +# +# $FreeBSD$ +# + +PORTNAME= showkey +PORTVERSION= 1.3 +CATEGORIES= converters +MASTER_SITES= http://catb.org/~esr/showkey/ + +MAINTAINER= trevor@FreeBSD.org +COMMENT= Prints its input, with escapes such as "" + +ALL_TARGET= showkey +MAN1= showkey.1 +PLIST= ${WRKDIR}/pkg-plist + +pre-install: + ${ECHO_CMD} bin/showkey > ${PLIST} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/showkey ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/showkey.1 ${MANPREFIX}/man/man1 + +.include diff --git a/converters/showkey/distinfo b/converters/showkey/distinfo new file mode 100644 index 000000000000..f969814a98d5 --- /dev/null +++ b/converters/showkey/distinfo @@ -0,0 +1 @@ +MD5 (showkey-1.3.tar.gz) = 5727fd241bd0cf5e4e27694bdb2d3bb3 diff --git a/converters/showkey/files/patch-showkey.c b/converters/showkey/files/patch-showkey.c new file mode 100644 index 000000000000..0fce32aa65b8 --- /dev/null +++ b/converters/showkey/files/patch-showkey.c @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- showkey.c.orig Tue Aug 27 03:12:48 2002 ++++ showkey.c Fri Oct 24 01:02:04 2003 +@@ -58,7 +58,7 @@ + unsigned char c; + unsigned int i, timeouts; + +- for (i = SIGHUP; i <= SIGPOLL; i++) ++ for (i = SIGHUP; i <= SIGIO; i++) + (void) signal(c, catcher); + + // Get the state of the tty diff --git a/converters/showkey/pkg-descr b/converters/showkey/pkg-descr new file mode 100644 index 000000000000..41893885471c --- /dev/null +++ b/converters/showkey/pkg-descr @@ -0,0 +1,10 @@ +from the man page: + + This program puts your terminal in raw mode, eats keystrokes, and + prints them back it you in a recognizable printed form (using <>-sur- + rounded ASCII mnemonics for non-printables). + + This may be useful, for example, if you're not certain what your key- + board keys are sending. + +WWW: http://catb.org/~esr/showkey/ -- cgit