[packages/mtr] - up to 0.95
adwol
adwol at pld-linux.org
Thu Jan 13 21:21:31 CET 2022
commit 7e364bd9b75be9fd963fc6ace723a2e708abb2e2
Author: Adam Osuchowski <adwol at pld-linux.org>
Date: Thu Jan 13 21:21:05 2022 +0100
- up to 0.95
mtr-Makefile.patch | 2 +-
mtr-completion.patch | 15 +++++++--------
mtr.spec | 6 +++---
3 files changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/mtr.spec b/mtr.spec
index 4cf8e8d..c452150 100644
--- a/mtr.spec
+++ b/mtr.spec
@@ -9,8 +9,8 @@ Summary(pt_BR.UTF-8): Ferramenta para diagnóstico da rede, combinando ping/trac
Summary(ru.UTF-8): Matt's Traceroute - утилита для диагностики сети
Summary(uk.UTF-8): Matt's Traceroute - утиліта для діагностики мережі
Name: mtr
-Version: 0.94
-Release: 3
+Version: 0.95
+Release: 1
Epoch: 1
License: GPL v2
Group: Networking/Utilities
@@ -18,7 +18,7 @@ Group: Networking/Utilities
# TODO: use named tarballs:
#Source0: https://github.com/traviscross/mtr/archive/v%{version}/%{name}-%{version}.tar.gz
Source0: https://github.com/traviscross/mtr/archive/v%{version}.tar.gz
-# Source0-md5: 258967ecd6658de02d327f8002d3da8f
+# Source0-md5: 130163d10e0624acbbb51189899f6bf2
Source1: %{name}.desktop
Source2: %{name}.png
Patch0: %{name}-Makefile.patch
diff --git a/mtr-Makefile.patch b/mtr-Makefile.patch
index 2d01341..5b6de64 100644
--- a/mtr-Makefile.patch
+++ b/mtr-Makefile.patch
@@ -4,7 +4,7 @@
dist_man_MANS = mtr.8 mtr-packet.8
PATHFILES += man/mtr.8 man/mtr-packet.8
--install-exec-hook:
+-install-exec-hook:
- `setcap cap_net_raw+ep $(DESTDIR)$(sbindir)/mtr-packet` \
- || chmod u+s $(DESTDIR)$(sbindir)/mtr-packet
-
diff --git a/mtr-completion.patch b/mtr-completion.patch
index 8a13a7d..b46c72d 100644
--- a/mtr-completion.patch
+++ b/mtr-completion.patch
@@ -1,6 +1,5 @@
-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 01:31:20.748948291 +0200
+--- mtr-0.95/bash-completion/mtr.orig 2022-01-11 10:10:34.000000000 +0100
++++ mtr-0.95/bash-completion/mtr 2022-01-13 21:13:17.193803957 +0100
@@ -1,9 +1,8 @@
-_mtr_module()
+_mtr()
@@ -15,21 +14,21 @@ diff -ruNp mtr-0.92.orig/bash-completion/mtr mtr-0.92/bash-completion/mtr
case $prev in
'-F'|'--filename')
local IFS=$'\n'
-@@ -12,7 +11,8 @@ _mtr_module()
+@@ -12,7 +11,8 @@
return 0
;;
'-a'|'--address')
-- COMPREPLY=( $(compgen -W "ADDRESS" -- $cur) )
+- COMPREPLY=( $(compgen -W "ADDRESS" -- "$cur") )
+ _ip_addresses
+ __ltrim_colon_completions "$cur"
return 0
;;
- '-f'|'--first-ttl'|'-m'|'--max-ttl'|'-m'|'--max-unknown'|'-B'|'--bitpattern'|'-Q'|'--tos'|'-c'|'--report-cycles')
-@@ -62,7 +62,7 @@ _mtr_module()
+ '-f'|'--first-ttl'|'-m'|'--max-ttl'|'-U'|'--max-unknown'|'-B'|'--bitpattern'|'-Q'|'--tos'|'-c'|'--report-cycles')
+@@ -62,7 +62,7 @@
return 0
;;
esac
-- COMPREPLY=( $(compgen -W "ip_address hostname" -- $cur) )
+- COMPREPLY=( $(compgen -W "ip_address hostname" -- "$cur") )
+ _known_hosts
return 0
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mtr.git/commitdiff/7e364bd9b75be9fd963fc6ace723a2e708abb2e2
More information about the pld-cvs-commit
mailing list