From df2ea1b4f69d8bcde798410f86f59b24d1a83b65 Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Tue, 22 Jun 2010 21:01:03 +0100 Subject: [PATCH 1/1] Update to mirmon 2.3 --- icons/mmsb01.gif | Bin 103 -> 103 bytes icons/mmsb02.gif | Bin 105 -> 105 bytes icons/mmsb03.gif | Bin 104 -> 104 bytes icons/mmsb04.gif | Bin 105 -> 105 bytes icons/mmsb05.gif | Bin 105 -> 105 bytes icons/mmsb06.gif | Bin 104 -> 104 bytes icons/mmsb07.gif | Bin 105 -> 105 bytes icons/mmsb08.gif | Bin 103 -> 103 bytes icons/mmsb09.gif | Bin 104 -> 104 bytes icons/mmsb10.gif | Bin 104 -> 104 bytes icons/mmsb11.gif | Bin 103 -> 103 bytes icons/mmsb12.gif | Bin 103 -> 103 bytes icons/mmsb13.gif | Bin 103 -> 103 bytes icons/mmsb14.gif | Bin 103 -> 103 bytes icons/mmsbf01.gif | Bin 112 -> 112 bytes icons/mmsbf02.gif | Bin 114 -> 114 bytes icons/mmsbf03.gif | Bin 113 -> 113 bytes icons/mmsbf04.gif | Bin 113 -> 113 bytes icons/mmsbf05.gif | Bin 111 -> 111 bytes icons/mmsbf06.gif | Bin 112 -> 112 bytes icons/mmsbf07.gif | Bin 112 -> 112 bytes icons/mmsbf08.gif | Bin 111 -> 111 bytes icons/mmsbf09.gif | Bin 112 -> 112 bytes icons/mmsbf10.gif | Bin 113 -> 113 bytes icons/mmsbf11.gif | Bin 112 -> 112 bytes icons/mmsbf12.gif | Bin 111 -> 111 bytes icons/mmsbf13.gif | Bin 112 -> 112 bytes icons/mmsf01.gif | Bin 103 -> 103 bytes icons/mmsf02.gif | Bin 105 -> 105 bytes icons/mmsf03.gif | Bin 104 -> 104 bytes icons/mmsf04.gif | Bin 105 -> 105 bytes icons/mmsf05.gif | Bin 105 -> 105 bytes icons/mmsf06.gif | Bin 104 -> 104 bytes icons/mmsf07.gif | Bin 105 -> 105 bytes icons/mmsf08.gif | Bin 103 -> 103 bytes icons/mmsf09.gif | Bin 104 -> 104 bytes icons/mmsf10.gif | Bin 104 -> 104 bytes icons/mmsf11.gif | Bin 103 -> 103 bytes icons/mmsf12.gif | Bin 103 -> 103 bytes icons/mmsf13.gif | Bin 103 -> 103 bytes icons/mmsf14.gif | Bin 103 -> 103 bytes icons/vbrb.gif | Bin 0 -> 36 bytes icons/vbrw.gif | Bin 0 -> 36 bytes mirmon/countries.list | 11 +++--- mirmon/probe | 76 ++++++++++++++++++++++++++++++++++++++++++ 45 files changed, 81 insertions(+), 6 deletions(-) create mode 100644 icons/vbrb.gif create mode 100644 icons/vbrw.gif create mode 100755 mirmon/probe diff --git a/icons/mmsb01.gif b/icons/mmsb01.gif index a07d76fda165ca729291061bb42257f1634384b7..369227236129214b9544d177757bcd15ee6261c3 100644 GIT binary patch delta 17 YcmYdK=XUpWvoKHWVqjsIIFUOB04bydmjD0& delta 17 YcmYdK=XUpWvoKHWVqjrdIFUOB04d}IrvLx| diff --git a/icons/mmsb02.gif b/icons/mmsb02.gif index e13dbe0a62c8e528ff0ee49be1dd432af0ad3ce0..f9e03270c2314873e30a585adae185f99fa369d7 100644 GIT binary patch delta 17 Ycmd1IR diff --git a/icons/mmsbf04.gif b/icons/mmsbf04.gif index 6a8b62e8298141d8c53d1f6c83efb47e5d6be8c9..e048707a4830b9f2a8333a111fa4aa549b534084 100644 GIT binary patch delta 17 YcmXRcR diff --git a/icons/mmsbf05.gif b/icons/mmsbf05.gif index 0b2cf1f07498336f6d2648846e323cf689cfbd16..2b7720117d40e23f32a52d6e6e6889cecb3af9af 100644 GIT binary patch delta 17 Ycmd1L=XUpWvoKHWVqjsIIFUOA04lTuuK)l5 delta 17 Ycmd1L=XUpWvoKHWVqjrdIFUOA04nqZzW@LL diff --git a/icons/mmsbf06.gif b/icons/mmsbf06.gif index 86f957577e67c4af01af2bf6064f4556cdc1ddae..c569c25b0a8139d17d0406bfc9255f3f82816edd 100644 GIT binary patch delta 17 YcmXRY;CAR diff --git a/icons/mmsbf11.gif b/icons/mmsbf11.gif index 151c44b5a7d01b68eebd6688347f3bc09044e65f..de55904c6645fa64a7463376c404c566afe54b4c 100644 GIT binary patch delta 17 YcmXRY;CA9S{u?VPIlz$!BG-1^`UZ1D5~* literal 0 HcmV?d00001 diff --git a/icons/vbrw.gif b/icons/vbrw.gif new file mode 100644 index 0000000000000000000000000000000000000000..ecc69176df51b492677ff76f7ad68b6d8091bbfa GIT binary patch literal 36 ncmZ?wbh9u|WMW`pXkcLY|NlP&1A`6_Gk`=Gn3!AgSsAPWj*bSD literal 0 HcmV?d00001 diff --git a/mirmon/countries.list b/mirmon/countries.list index 9eef8fc..988bea9 100644 --- a/mirmon/countries.list +++ b/mirmon/countries.list @@ -1,4 +1,4 @@ -# List of countries +# based on : http://www.iso.org/iso/list-en1-semic-3.txt ad - andorra ae - united arab emirates af - afghanistan @@ -26,7 +26,7 @@ bi - burundi bj - benin bm - bermuda bn - brunei darussalam -bo - bolivia +bo - bolivia, plurinational state of br - brazil bs - bahamas bt - bhutan @@ -40,7 +40,6 @@ cd - congo, the democratic republic of the cf - central african republic cg - congo ch - switzerland -ci - cote d'ivoire ck - cook islands cl - chile cm - cameroon @@ -136,6 +135,7 @@ ma - morocco mc - monaco md - moldova, republic of me - montenegro +mf - saint martin mg - madagascar mh - marshall islands mk - macedonia, the former yugoslav republic of @@ -182,7 +182,6 @@ pt - portugal pw - palau py - paraguay qa - qatar -re - reunion ro - romania rs - serbia ru - russian federation @@ -193,7 +192,7 @@ sc - seychelles sd - sudan se - sweden sg - singapore -sh - saint helena +sh - saint helena, ascension and tristan da cunha si - slovenia sj - svalbard and jan mayen sk - slovakia @@ -231,7 +230,7 @@ uy - uruguay uz - uzbekistan va - holy see (vatican city state) vc - saint vincent and the grenadines -ve - venezuela +ve - venezuela, bolivarian republic of vg - virgin islands, british vi - virgin islands, u.s. vn - viet nam diff --git a/mirmon/probe b/mirmon/probe new file mode 100755 index 0000000..717cb16 --- /dev/null +++ b/mirmon/probe @@ -0,0 +1,76 @@ +#! /usr/bin/perl -w + +use strict ; + +my $WGET = '/usr/bin/wget' ; +my $RSYNC = '/usr/bin/rsync' ; + +my $timeout = 300 ; +my $tmp_dir = '/tmp/mirmon' ; + +my $prog = substr($0,rindex($0,'/')+1) ; +my $Usage = < host.dom.com::module/file +# handle ftp/http urls with wget + +if ( $url =~ m!^rsync://(.*)$! ) + { my $src = $1 ; + my $dst = $src ; + $dst =~ s![/\s]!_!g ; + my $TMP = "$tmp_dir/$dst" ; + $src =~ s!/!::! ; + unlink $TMP ; # ignore status + my $cmd = "$RSYNC $opt_v $opt_q --no-motd --timeout $timeout $src $TMP" ; + Warn sprintf "'%s'\n", $cmd if $opt{d} ; + system $cmd ; + if ( open TMP, $TMP ) + { print ; close TMP ; } + else + { Warn "can't open $TMP" ; } + } +else + { my $cmd = "$WGET -O - $opt_v $opt_q -t 1 -T $timeout $url |" ; + Warn sprintf "'%s'\n", $cmd if $opt{d} ; + if ( open CMD, $cmd ) + { print ; close CMD ; } + else + { Warn "can't popen $cmd ($!)" ; } + } -- 2.30.2