commit bd466405834e2d05330324484f17f9887f25eb2a Author: Adam Osuchowski <ad...@pld-linux.org> Date: Sun Jun 24 00:43:05 2018 +0200
- bash completion for source and destination addresses mtr-completion.patch | 28 ++++++++++++++++++++++++++++ mtr.spec | 2 ++ 2 files changed, 30 insertions(+) --- diff --git a/mtr.spec b/mtr.spec index f6df910..637548b 100644 --- a/mtr.spec +++ b/mtr.spec @@ -25,6 +25,7 @@ Patch3: %{name}-display.patch Patch4: %{name}-curses-clear_colors.patch Patch5: %{name}-sourceaddr_ipv4.patch Patch6: 0001-mtr-to-a-unreachable-host-is-possible-again.patch +Patch7: %{name}-completion.patch URL: http://www.bitwizard.nl/mtr/ BuildRequires: autoconf >= 2.50 BuildRequires: automake @@ -161,6 +162,7 @@ Pakiet ten dostarcza bashowe uzupełnianie nazw dla mtra. %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 #echo 'AC_DEFUN([AM_PATH_GTK],[$3])' >> acinclude.m4 %{!?with_x:echo 'AC_DEFUN([AM_PATH_GTK_2_0],[$3])' >> acinclude.m4} diff --git a/mtr-completion.patch b/mtr-completion.patch new file mode 100644 index 0000000..d83d2b8 --- /dev/null +++ b/mtr-completion.patch @@ -0,0 +1,28 @@ +diff -ruNp mtr-0.92.orig/bash-completion/mtr mtr-0.92/bash-completion/mtr +--- mtr-0.92.orig/bash-completion/mtr 2017-06-02 10:54:58.000000000 +0200 ++++ mtr-0.92/bash-completion/mtr 2018-06-24 00:41:19.818077138 +0200 +@@ -1,4 +1,4 @@ +-_mtr_module() ++_mtr() + { + local cur prev OPTS + COMPREPLY=() +@@ -12,7 +12,7 @@ _mtr_module() + return 0 + ;; + '-a'|'--address') +- COMPREPLY=( $(compgen -W "ADDRESS" -- $cur) ) ++ _ip_addresses + return 0 + ;; + '-f'|'--first-ttl'|'-m'|'--max-ttl'|'-m'|'--max-unknown'|'-B'|'--bitpattern'|'-Q'|'--tos'|'-c'|'--report-cycles') +@@ -62,7 +62,7 @@ _mtr_module() + return 0 + ;; + esac +- COMPREPLY=( $(compgen -W "ip_address hostname" -- $cur) ) ++ _known_hosts + return 0 + } +-complete -F _mtr_module mtr ++complete -F _mtr mtr ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/mtr.git/commitdiff/bd466405834e2d05330324484f17f9887f25eb2a _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit