commit:     5f3f9ae2abf4a8ab383507246d3faca52d611121
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 30 21:03:43 2020 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat May  2 22:11:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f3f9ae2

www-apps/mirmon: revbump with getopt fixes

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 www-apps/mirmon/files/2.11-Fix-options.patch       | 34 ++++++++++++++++++++++
 ...mirmon-2.11-r1.ebuild => mirmon-2.11-r2.ebuild} |  1 +
 2 files changed, 35 insertions(+)

diff --git a/www-apps/mirmon/files/2.11-Fix-options.patch 
b/www-apps/mirmon/files/2.11-Fix-options.patch
new file mode 100644
index 00000000000..0e0924ea9dd
--- /dev/null
+++ b/www-apps/mirmon/files/2.11-Fix-options.patch
@@ -0,0 +1,34 @@
+Fix option handling.
+
+Add debug option to getopt inputs.
+Add debug option to usage output.
+Add version option to usage output.
+
+Signed-off-by: Robin H. Johnson <robb...@gentoo.org>
+
+--- mirmon-2.11.orig/mirmon    2020-04-30 13:32:52.803951845 -0700
++++ mirmon-2.11/mirmon 2020-04-30 13:33:58.051641169 -0700
+@@ -1900,12 +1900,14 @@
+ Usage: $prog [-v] [-q] [-t timeout] [-c conf] [-get all|update|url <url>]
+ option v   : be verbose
+ option q   : be quiet
++option d   : debug output
+ option t   : set timeout ; default $TIMEOUT
+ option get : get all       : probe all sites
+            : get update    : probe a selection of the sites (see doc)
+            : get url <url> : probe some <url> (in the mirror-list).
+ option c   : configuration file ; default search :
+              ( $DEF_CNF )
++option version : display version
+ -------------------------------------------------------------------
+ Mirmon normally only reports errors and changes in the mirror list.
+ This is $VERSION.
+@@ -1924,7 +1926,7 @@
+ use Getopt::Long ;
+ Getopt::Long::config ( 'no_ignore_case' ) ;
+ my %opt = () ;
+-Usage '' unless GetOptions ( \%opt, qw(v q t=i get=s c=s version) ) ;
++Usage '' unless GetOptions ( \%opt, qw(d v q t=i get=s c=s version) ) ;
+ Usage "Arg count\n" if @ARGV > 1 ;
+ Usage "Arg count\n" if $opt{get} and $opt{get} eq 'url' and ! @ARGV ;
+ 

diff --git a/www-apps/mirmon/mirmon-2.11-r1.ebuild 
b/www-apps/mirmon/mirmon-2.11-r2.ebuild
similarity index 96%
rename from www-apps/mirmon/mirmon-2.11-r1.ebuild
rename to www-apps/mirmon/mirmon-2.11-r2.ebuild
index 861191e7470..0d6ce1561b0 100644
--- a/www-apps/mirmon/mirmon-2.11-r1.ebuild
+++ b/www-apps/mirmon/mirmon-2.11-r2.ebuild
@@ -23,6 +23,7 @@ RDEPEND="${DEPEND}
 
 PATCHES=(
        "${FILESDIR}/2.11-Add-ipv6-monitor-support-to-mirmon.patch"
+       "${FILESDIR}/2.11-Fix-options.patch"
 )
 
 src_install() {

Reply via email to