summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2012-09-30 22:10:42 +0000
committerdholland <dholland@pkgsrc.org>2012-09-30 22:10:42 +0000
commit602358f1483d7a446d9581515d2fac47d171de97 (patch)
tree6092530ef745323a61eee8becbac29923a7dfbe4 /misc
parente84fe22cd64926d1889cb8f5646e313f3d29abde (diff)
downloadpkgsrc-602358f1483d7a446d9581515d2fac47d171de97.tar.gz
Update to 0.37; closes PR 46078.
Now depends on perl. 0.37 Commands that emit "status lines" using backspaces and carriage returns could confuse rlwrap rlwrap uses C strings internally, and thus cannot cope with command output that contains zero bytes (padding). It used to replace these with spaces, now the zero bytes are removed. if the RLWRAP_HOME is set, but $RLWRAP_HOME doesn't exist, rlwrap will create it typo: SIGERR instead of SIG_ERR in signals.c 0.36 Entering a line from vi command mode would echo the input twice Output from very busy commands would not always be printed on time When rlwrap kills itself after a command crash it will not dump core, in order to avoid clobbering command's much more interesting core dump. Premature filter death is now reported properly (it used to only say: "EOF reading from filter" or "Broken pipe writing to filter") 0.35 config.{guess,sub} have been updated to version 2009-12-13 Corrected array bounds error in my_putstr("") (which could make rlwrap write an extra newline when exiting, but might even crash on some systems) Many small improvements and fixes for multi-line input: Multi-line inputs are now written to the inferior command one line at a time, so that command's response (e.g. a continuation prompt) can be interleaved with the echo'ed (multi-line) input. Calling an external editor will no longer obliterate the prompt, and line/column positions are now correct. After a multi-line edit in vi-mode, the cursor will no longer end up one line too high. CTRL-D on an empty line was handed directly to command, but also (erroneously) put in readline's input buffer Many small fixes and improvements in signal handling: SIGSEGV, and other "error" signals like SIGFPE, are now unblocked all of the time, so that rlwrap can always clean up after a crash. Since version 0.25 rlrwap's transparency extends to signals: if the inferior command segfaults, rlwrap will kill itself with a SIGSEGV. In order to get the bug reports where they belong, rlwrap now reports explicitly that it has not crashed itself. rlwrap's call to sigaction forgot to set the signal mask (!) Continuing after CTRL-Z on QNX now wakes up command Added --one-shot (-o) and --only-cook (-O) options debug log is now in a format that works well with emacs' grep-mode rlwrap's bindable readline function names (like rlwrap-call-editor) are now in hyphen-style instead of underscore_style (use of the old_style_names will now be flagged as an error) Filters can now prevent a prompt from being cooked by "rejecting" it. Rlwrapfilter.pm would set $_ incorrectly in echo and output handlers. RlwrapFilter.pm manpage is now created by newer (and less buggy) version of pod2man Added EXAMPLES section and -t option to rlwrap manpage 0.34 Binding wide (e.g. utf-8) chars in .inputrc now works prefix arguments are now correctly reset (M-5 a b now yields aaaaab instead of aaaaabbbbb) 0.33 rlwrap incorrectly fed terminfo-style capnames ("dl1") instead of termcap codes ("dl") into tgetstr(). On newer Debian systems this exposed a bug where random garbage would be printed by rlwrap Hyphens in rlwrap manpage are now all properly escaped RlwrapFilter.pm now only re-sets $filter->cumulative_output when an INPUT message is received 0.32 Major new feature: filtering. Filters sit between rlwrap and the wrapped command, re-writing command output, input, prompts, history, and completion word lists. System-wide filters live in DATADIR/rlwrap/filters (where DATADIR = /usr/local/share by default, installation-dependent) Because of this, completions now live in DATADIR/rlwrap/completions (until now: DATADIR/rlwrap) To make filter writing easy, a perl module RlwrapFilter.pm has been added. It doesn't become part of your perl installation, but lives in DATADIR/rlwrap/filters rlwrap didn't properly check errno after reading from inferior pty. This could lead to a spurious "read error on master pty" Instead of using crusty old signal(), signal handlers are now set by sigaction() without SA_RESTART (BSD semantics) Different syscall-restarting behaviour among systems caused hard-to-trace bugs Now copies inferior pty's c_oflags to stdout before output. (some editors like joe would mess up the screen) prompt handling logic has been streamlined. Coloured prompt handling is reliable now, even for long prompts. At program exit, rlwrap now outputs a newline only when the client didn't. Added -g, -I, -N, -S, -w and -z options Removed -F option (and added a filter to replace it) -p option now takes colour names (-pYellow) rlwrap (and readline) uses C strings internally, which could cause problems with commands that output '\0' bytes. In direct mode, such characters are left untouched, but in readline mode they are replaced by spaces. the tools directory has been updated, so that configure will feel at home even on newer systems tested on SunOS, AIX, FreeBSD, HP/UX, QNX (thanks to polarhome.com), as well as cygwin and linux
Diffstat (limited to 'misc')
-rw-r--r--misc/rlwrap/Makefile22
-rw-r--r--misc/rlwrap/PLIST25
-rw-r--r--misc/rlwrap/distinfo8
3 files changed, 43 insertions, 12 deletions
diff --git a/misc/rlwrap/Makefile b/misc/rlwrap/Makefile
index 12f2fc79578..5c202cb82f8 100644
--- a/misc/rlwrap/Makefile
+++ b/misc/rlwrap/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2009/05/20 00:58:24 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2012/09/30 22:10:42 dholland Exp $
#
-DISTNAME= rlwrap-0.30
-PKGREVISION= 1
+DISTNAME= rlwrap-0.37
CATEGORIES= misc
MASTER_SITES= http://utopia.knoware.nl/~hlub/uck/rlwrap/
@@ -21,10 +20,25 @@ GNU_CONFIGURE= yes
USE_GNU_READLINE= yes
USE_LANGUAGES= c
-USE_TOOLS+= gmake
+USE_TOOLS+= gmake perl:run
TEST_TARGET= check
+REPLACE_PERL+= filters/censor_passwords
+REPLACE_PERL+= filters/count_in_prompt
+REPLACE_PERL+= filters/ftp_filter
+REPLACE_PERL+= filters/history_format
+REPLACE_PERL+= filters/listing
+REPLACE_PERL+= filters/logger
+REPLACE_PERL+= filters/null
+REPLACE_PERL+= filters/paint_prompt
+REPLACE_PERL+= filters/pipeline
+REPLACE_PERL+= filters/pipeto
+REPLACE_PERL+= filters/scrub_prompt
+REPLACE_PERL+= filters/simple_macro
+REPLACE_PERL+= filters/template
+REPLACE_PERL+= filters/unbackspace
+
.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
diff --git a/misc/rlwrap/PLIST b/misc/rlwrap/PLIST
index d1e251ba8af..95ac02cd712 100644
--- a/misc/rlwrap/PLIST
+++ b/misc/rlwrap/PLIST
@@ -1,6 +1,23 @@
-@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:07:29 joerg Exp $
+@comment $NetBSD: PLIST,v 1.3 2012/09/30 22:10:42 dholland Exp $
bin/rlwrap
man/man1/rlwrap.1
-share/rlwrap/coqtop
-share/rlwrap/ftp
-share/rlwrap/testclient
+man/man3/RlwrapFilter.3pm
+share/rlwrap/completions/coqtop
+share/rlwrap/completions/testclient
+share/rlwrap/filters/README
+share/rlwrap/filters/RlwrapFilter.3pm
+share/rlwrap/filters/RlwrapFilter.pm
+share/rlwrap/filters/censor_passwords
+share/rlwrap/filters/count_in_prompt
+share/rlwrap/filters/ftp_filter
+share/rlwrap/filters/history_format
+share/rlwrap/filters/listing
+share/rlwrap/filters/logger
+share/rlwrap/filters/null
+share/rlwrap/filters/paint_prompt
+share/rlwrap/filters/pipeline
+share/rlwrap/filters/pipeto
+share/rlwrap/filters/scrub_prompt
+share/rlwrap/filters/simple_macro
+share/rlwrap/filters/template
+share/rlwrap/filters/unbackspace
diff --git a/misc/rlwrap/distinfo b/misc/rlwrap/distinfo
index 42d8257e9b7..c3f748811e9 100644
--- a/misc/rlwrap/distinfo
+++ b/misc/rlwrap/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2008/01/09 13:40:38 heinz Exp $
+$NetBSD: distinfo,v 1.3 2012/09/30 22:10:42 dholland Exp $
-SHA1 (rlwrap-0.30.tar.gz) = 26f3a6348710fee5e87f5274ddc29af8eaaf65d2
-RMD160 (rlwrap-0.30.tar.gz) = 23f19b9e98f61183fe719ee7a62db9d8ee2cf602
-Size (rlwrap-0.30.tar.gz) = 184037 bytes
+SHA1 (rlwrap-0.37.tar.gz) = c8fc5e7798a7c618a22583c56fa38d344700cc2f
+RMD160 (rlwrap-0.37.tar.gz) = 4e229e8fed579002605919760b313651aa427870
+Size (rlwrap-0.37.tar.gz) = 251438 bytes