From: Robin H. Johnson Date: Thu, 30 Apr 2020 21:03:43 +0000 (-0700) Subject: www-apps/mirmon: revbump with getopt fixes X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5f3f9ae2abf4a8ab383507246d3faca52d611121;p=gentoo.git www-apps/mirmon: revbump with getopt fixes Signed-off-by: Robin H. Johnson --- 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 000000000000..0e0924ea9ddc --- /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 + +--- 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 ] + 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 : probe some (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 861191e74705..0d6ce1561b0e 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() {