From c572c55f34a73959ea1756338cb33e853ab208cc Mon Sep 17 00:00:00 2001 From: heinz Date: Fri, 21 Jul 2006 13:15:22 +0000 Subject: Import of mirmon 1.36. Many software projects are mirrored worldwide. The mirror sites are required to update the mirror archive regularly (daily, weekly) from a root server. Mirmon helps administrators in keeping an eye on the mirror sites. In a concise graphic format, mirmon shows each site's status history of the last two weeks. It is easy to spot stale or dead mirrors. --- misc/mirmon/DESCR | 7 +++ misc/mirmon/MESSAGE | 8 +++ misc/mirmon/Makefile | 49 +++++++++++++++++++ misc/mirmon/PLIST | 111 ++++++++++++++++++++++++++++++++++++++++++ misc/mirmon/distinfo | 7 +++ misc/mirmon/files/mirmon.conf | 86 ++++++++++++++++++++++++++++++++ misc/mirmon/patches/patch-aa | 12 +++++ misc/mirmon/patches/patch-ab | 82 +++++++++++++++++++++++++++++++ 8 files changed, 362 insertions(+) create mode 100644 misc/mirmon/DESCR create mode 100644 misc/mirmon/MESSAGE create mode 100644 misc/mirmon/Makefile create mode 100644 misc/mirmon/PLIST create mode 100644 misc/mirmon/distinfo create mode 100644 misc/mirmon/files/mirmon.conf create mode 100644 misc/mirmon/patches/patch-aa create mode 100644 misc/mirmon/patches/patch-ab (limited to 'misc') diff --git a/misc/mirmon/DESCR b/misc/mirmon/DESCR new file mode 100644 index 00000000000..d2279d33d73 --- /dev/null +++ b/misc/mirmon/DESCR @@ -0,0 +1,7 @@ +Many software projects are mirrored worldwide. The mirror sites are +required to update the mirror archive regularly (daily, weekly) from +a root server. + +Mirmon helps administrators in keeping an eye on the mirror sites. In +a concise graphic format, mirmon shows each site's status history of +the last two weeks. It is easy to spot stale or dead mirrors. diff --git a/misc/mirmon/MESSAGE b/misc/mirmon/MESSAGE new file mode 100644 index 00000000000..9b410a6d1b6 --- /dev/null +++ b/misc/mirmon/MESSAGE @@ -0,0 +1,8 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2006/07/21 13:15:22 heinz Exp $ + +Mirmon needs a configuration file. For an example, see + + ${PREFIX}/share/examples/mirmon/mirmon.conf + +=========================================================================== diff --git a/misc/mirmon/Makefile b/misc/mirmon/Makefile new file mode 100644 index 00000000000..1495fe00d7d --- /dev/null +++ b/misc/mirmon/Makefile @@ -0,0 +1,49 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/07/21 13:15:22 heinz Exp $ +# + +DISTNAME= mirmon-1.36 +CATEGORIES= misc +MASTER_SITES= http://www.cs.uu.nl/people/henkp/mirmon/src/ + +MAINTAINER= heinz@NetBSD.org +HOMEPAGE= http://www.cs.uu.nl/people/henkp/mirmon/ +COMMENT= Monitor the state of mirror servers + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +REPLACE_PERL+= mirmon +USE_TOOLS+= perl:run pod2man +USE_LANGUAGES= # empty + +EG_DIR= ${PREFIX}/share/examples/mirmon +MIRMONDIR= ${PREFIX}/share/mirmon + +SUBST_CLASSES+= mirmon1 mirmon2 + +SUBST_STAGE.mirmon1= pre-configure +SUBST_FILES.mirmon1= mirmon +SUBST_SED.mirmon1+= -e s!/etc/!${PKG_SYSCONFDIR}/!g +SUBST_SED.mirmon1+= -e s!/sw/!${LOCALBASE}/!g + +SUBST_STAGE.mirmon2= pre-configure +SUBST_FILES.mirmon2= ${WRKDIR}/mirmon.conf +SUBST_SED.mirmon2+= -e s!@@MIRMONDIR@@!${MIRMONDIR}!g + +post-extract: + ${CP} ${FILESDIR}/mirmon.conf ${WRKDIR} + +do-build: + cd ${WRKSRC} && ${POD2MAN} mirmon > ${WRKDIR}/mirmon.1 + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/mirmon ${PREFIX}/bin + ${INSTALL_MAN} ${WRKDIR}/mirmon.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_DATA_DIR} ${EG_DIR} + ${INSTALL_DATA} ${WRKDIR}/mirmon.conf ${EG_DIR} + ${INSTALL_DATA_DIR} ${MIRMONDIR} + ${INSTALL_DATA} ${WRKSRC}/countries.list ${MIRMONDIR} + ${INSTALL_DATA_DIR} ${MIRMONDIR}/icons + cd ${WRKSRC}/icons && \ + for f in *; do ${INSTALL_DATA} $${f} ${MIRMONDIR}/icons; done + +.include "../../mk/bsd.pkg.mk" diff --git a/misc/mirmon/PLIST b/misc/mirmon/PLIST new file mode 100644 index 00000000000..a004ada6ce7 --- /dev/null +++ b/misc/mirmon/PLIST @@ -0,0 +1,111 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/21 13:15:22 heinz Exp $ +bin/mirmon +man/man1/mirmon.1 +share/examples/mirmon/mirmon.conf +share/mirmon/countries.list +share/mirmon/icons/bar.gif +share/mirmon/icons/mirmon.gif +share/mirmon/icons/mirmon_b.gif +share/mirmon/icons/mirmon_f.gif +share/mirmon/icons/mirmon_s.gif +share/mirmon/icons/mirmon_z.gif +share/mirmon/icons/mmb01.gif +share/mirmon/icons/mmb02.gif +share/mirmon/icons/mmb03.gif +share/mirmon/icons/mmb04.gif +share/mirmon/icons/mmb05.gif +share/mirmon/icons/mmb06.gif +share/mirmon/icons/mmb07.gif +share/mirmon/icons/mmb08.gif +share/mirmon/icons/mmb09.gif +share/mirmon/icons/mmb10.gif +share/mirmon/icons/mmb11.gif +share/mirmon/icons/mmb12.gif +share/mirmon/icons/mmb13.gif +share/mirmon/icons/mmb14.gif +share/mirmon/icons/mmf01.gif +share/mirmon/icons/mmf02.gif +share/mirmon/icons/mmf03.gif +share/mirmon/icons/mmf04.gif +share/mirmon/icons/mmf05.gif +share/mirmon/icons/mmf06.gif +share/mirmon/icons/mmf07.gif +share/mirmon/icons/mmf08.gif +share/mirmon/icons/mmf09.gif +share/mirmon/icons/mmf10.gif +share/mirmon/icons/mmf11.gif +share/mirmon/icons/mmf12.gif +share/mirmon/icons/mmf13.gif +share/mirmon/icons/mmf14.gif +share/mirmon/icons/mms01.gif +share/mirmon/icons/mms02.gif +share/mirmon/icons/mms03.gif +share/mirmon/icons/mms04.gif +share/mirmon/icons/mms05.gif +share/mirmon/icons/mms06.gif +share/mirmon/icons/mms07.gif +share/mirmon/icons/mms08.gif +share/mirmon/icons/mms09.gif +share/mirmon/icons/mms10.gif +share/mirmon/icons/mms11.gif +share/mirmon/icons/mms12.gif +share/mirmon/icons/mms13.gif +share/mirmon/icons/mms14.gif +share/mirmon/icons/mmsb01.gif +share/mirmon/icons/mmsb02.gif +share/mirmon/icons/mmsb03.gif +share/mirmon/icons/mmsb04.gif +share/mirmon/icons/mmsb05.gif +share/mirmon/icons/mmsb06.gif +share/mirmon/icons/mmsb07.gif +share/mirmon/icons/mmsb08.gif +share/mirmon/icons/mmsb09.gif +share/mirmon/icons/mmsb10.gif +share/mirmon/icons/mmsb11.gif +share/mirmon/icons/mmsb12.gif +share/mirmon/icons/mmsb13.gif +share/mirmon/icons/mmsb14.gif +share/mirmon/icons/mmsbf01.gif +share/mirmon/icons/mmsbf02.gif +share/mirmon/icons/mmsbf03.gif +share/mirmon/icons/mmsbf04.gif +share/mirmon/icons/mmsbf05.gif +share/mirmon/icons/mmsbf06.gif +share/mirmon/icons/mmsbf07.gif +share/mirmon/icons/mmsbf08.gif +share/mirmon/icons/mmsbf09.gif +share/mirmon/icons/mmsbf10.gif +share/mirmon/icons/mmsbf11.gif +share/mirmon/icons/mmsbf12.gif +share/mirmon/icons/mmsbf13.gif +share/mirmon/icons/mmsf01.gif +share/mirmon/icons/mmsf02.gif +share/mirmon/icons/mmsf03.gif +share/mirmon/icons/mmsf04.gif +share/mirmon/icons/mmsf05.gif +share/mirmon/icons/mmsf06.gif +share/mirmon/icons/mmsf07.gif +share/mirmon/icons/mmsf08.gif +share/mirmon/icons/mmsf09.gif +share/mirmon/icons/mmsf10.gif +share/mirmon/icons/mmsf11.gif +share/mirmon/icons/mmsf12.gif +share/mirmon/icons/mmsf13.gif +share/mirmon/icons/mmsf14.gif +share/mirmon/icons/mmz01.gif +share/mirmon/icons/mmz02.gif +share/mirmon/icons/mmz03.gif +share/mirmon/icons/mmz04.gif +share/mirmon/icons/mmz05.gif +share/mirmon/icons/mmz06.gif +share/mirmon/icons/mmz07.gif +share/mirmon/icons/mmz08.gif +share/mirmon/icons/mmz09.gif +share/mirmon/icons/mmz10.gif +share/mirmon/icons/mmz11.gif +share/mirmon/icons/mmz12.gif +share/mirmon/icons/mmz13.gif +share/mirmon/icons/mmz14.gif +@dirrm share/examples/mirmon +@dirrm share/mirmon/icons +@dirrm share/mirmon diff --git a/misc/mirmon/distinfo b/misc/mirmon/distinfo new file mode 100644 index 00000000000..32016fca949 --- /dev/null +++ b/misc/mirmon/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/07/21 13:15:22 heinz Exp $ + +SHA1 (mirmon-1.36.tar.gz) = 035e4e2d125c4d260a9348c1c29cc7365afdefbf +RMD160 (mirmon-1.36.tar.gz) = d40d7843c4291afe33a788df4a719c1470bc87e3 +Size (mirmon-1.36.tar.gz) = 25858 bytes +SHA1 (patch-aa) = 8a6c586269d4c08ed8fb97856d0bbd94f18a3141 +SHA1 (patch-ab) = bf7f76576b8ed125b1476b7a30e9b883819b4169 diff --git a/misc/mirmon/files/mirmon.conf b/misc/mirmon/files/mirmon.conf new file mode 100644 index 00000000000..8a15fcd25f8 --- /dev/null +++ b/misc/mirmon/files/mirmon.conf @@ -0,0 +1,86 @@ +#################################################################### +## lines that start with '#' are comment +## blank lines are ignored too +## tabs are replaced by a space +# +## the config entries are 'key' and 'value' pairs +## a 'key' begins in column 1 +## the 'value' is the rest of the line +#somekey A_val B_val ... +#otherkey X_val Y_val ... +# +## indented lines are glued +## the next three lines mean 'somekey part1 part2 part3' +#somekey part1 +# part2 +# part3 +# +## lines starting with a '+' are concatenated +## the next three lines mean 'somekey part1part2part3' +#somekey part1 +#+ part2 +#+ part3 +# +## lines starting with a '.' are glued too +## don't use a '.' on a line by itself +## 'somekey' gets the value "part1\n part2\n part3" +#somekey part1 +#. part2 +#. part3 +# +#################################################################### + +project_name NetBSD + +project_url http://www.NetBSD.org/ + +mirror_list /var/tmp/mirror-list.mirmon + +web_page /var/tmp/mirmon.html + +# This absolute path can only work for local tests without a web server +# (see the generated web page). +icons @@MIRMONDIR@@/icons + +probe ftp -V -o - -q %TIMEOUT% %URL%/mirrors/timestamp.txt + +state /var/tmp/state.mirmon + +countries @@MIRMONDIR@@/countries.list + +#max_probes 25 + +#timeout 300 + +#project_logo http://www.NetBSD.org/images/NetBSD-flag.png + +#htm_foot +#
+# +#
+ +#htm_top Some words + +#put_histo top + +#min_poll 4h + +#max_poll 12h + +#min_sync 1d + +#max_sync 2d + +#no_randomize + +#list_style plain + +#site_url + +#env + +#include + +#show + +#exit diff --git a/misc/mirmon/patches/patch-aa b/misc/mirmon/patches/patch-aa new file mode 100644 index 00000000000..e222dee1e45 --- /dev/null +++ b/misc/mirmon/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/07/21 13:15:22 heinz Exp $ + +--- mirmon.orig 2006-07-20 11:03:07.000000000 +0200 ++++ mirmon +@@ -1116,6 +1116,7 @@ sub get_date + unless ( defined $time ) { return err $url, 'no time' ; } + + $time = ( split ' ', $time ) [ 0 ] ; ++ $time = '' unless defined $time; + + if ( $time eq '' ) + { err $url, "empty" ; } diff --git a/misc/mirmon/patches/patch-ab b/misc/mirmon/patches/patch-ab new file mode 100644 index 00000000000..9676b4f3b83 --- /dev/null +++ b/misc/mirmon/patches/patch-ab @@ -0,0 +1,82 @@ +$NetBSD: patch-ab,v 1.1.1.1 2006/07/21 13:15:22 heinz Exp $ + +--- countries.list.orig 2004-12-28 18:54:57.000000000 +0100 ++++ countries.list +@@ -1,3 +1,4 @@ ++ac - ascension island + ad - andorra + ae - united arab emirates + af - afghanistan +@@ -14,6 +15,7 @@ at - austria + au - australia + aw - aruba + az - azerbaijan ++ax - aland islands + ba - bosnia and herzegovina + bb - barbados + bd - bangladesh +@@ -37,7 +39,7 @@ ca - canada + cc - cocos (keeling) islands + cd - congo, the democratic republic of the + cf - central african republic +-cg - congo ++cg - congo, republic of + ch - switzerland + ci - cote d'ivoire + ck - cook islands +@@ -65,6 +67,7 @@ eh - western sahara + er - eritrea + es - spain + et - ethiopia ++eu - european union + fi - finland + fj - fiji + fk - falkland islands (malvinas) +@@ -76,6 +79,7 @@ gb - united kingdom + gd - grenada + ge - georgia + gf - french guiana ++gg - guernsey + gh - ghana + gi - gibraltar + gl - greenland +@@ -98,12 +102,14 @@ hu - hungary + id - indonesia + ie - ireland + il - israel ++im - isle of man + in - india + io - british indian ocean territory + iq - iraq + ir - iran, islamic republic of + is - iceland + it - italy ++je - jersey + jm - jamaica + jo - jordan + jp - japan +@@ -212,6 +218,7 @@ tl - timor-leste + tm - turkmenistan + tn - tunisia + to - tonga ++tp - east timor + tr - turkey + tt - trinidad and tobago + tv - tuvalu +@@ -219,7 +226,7 @@ tw - taiwan, province of china + tz - tanzania, united republic of + ua - ukraine + ug - uganda +-uk - united kingdom ++uk - united kingdom + um - united states minor outlying islands + us - united states + uy - uruguay +@@ -235,6 +242,7 @@ wf - wallis and futuna + ws - samoa + ye - yemen + yt - mayotte ++yu - yugoslavia + za - south africa + zm - zambia + zw - zimbabwe -- cgit v1.2.3