summaryrefslogtreecommitdiff
path: root/www-apps/mirmon
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/mirmon
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/mirmon')
-rw-r--r--www-apps/mirmon/Manifest9
-rw-r--r--www-apps/mirmon/files/0001-Add-rsync-monitoring-support-to-mirmon.patch87
-rw-r--r--www-apps/mirmon/files/0002-Add-ipv6-monitor-support-to-mirmon.patch41
-rw-r--r--www-apps/mirmon/metadata.xml6
-rw-r--r--www-apps/mirmon/mirmon-1.38-r4.ebuild47
-rw-r--r--www-apps/mirmon/mirmon-2.10.ebuild44
6 files changed, 234 insertions, 0 deletions
diff --git a/www-apps/mirmon/Manifest b/www-apps/mirmon/Manifest
new file mode 100644
index 000000000000..0a43d5313949
--- /dev/null
+++ b/www-apps/mirmon/Manifest
@@ -0,0 +1,9 @@
+AUX 0001-Add-rsync-monitoring-support-to-mirmon.patch 2534 SHA256 57a821c9194d416802024246d2bb3ae8c100b46dcf5a17450ed43a01804c3ff9 SHA512 36bee0706ba782a8706ee88d52e913f10d3f1b84a5979f252aa947b44ed30c7f9c5db5b17dbe0b5bf6dae7fd899c926f2a79349081731d00f4160808d32a5844 WHIRLPOOL 0edd693d40d0e8adbf663736c2c22c383fdeecca12e4991154f7a93648c8219596773a7792cc7d37dc708b9a6b64aa2f24f640fd25d82aae03444270709e08c6
+AUX 0002-Add-ipv6-monitor-support-to-mirmon.patch 970 SHA256 d5ad1d7189791237996bab0f2f46582981cefc1bb9fb0d5374b09a2001b69821 SHA512 ea6f7f51e516b944f69b6c76ecb48e36a1127867fdbaf558c9b81253ee47793bb017dfb0df830343c21dc8c8023390c6b53ef9f16e798731ab0c3f4b201dc9ad WHIRLPOOL 464d5fa91b60cdf6d89c4b1d480f0a33af68081a5238883f597eef59fcddcfce20bfaf8b7931e66a21e9324a3f03a443e73ddc580c9b4a7f0437c62cca8a3eac
+DIST mirmon-1.38.tar.gz 33021 SHA256 5defb2c0890d3461a2b8dd8cc3efc4c63c0814c043cb227a69b4a457a38b0ce3 SHA512 a879f7ac979ad31d24a27940600c7a95e0f9db6cc8654fd36f830f9a9cfb9d3a7e86fcb27870da3889ad159028a6807203664038e985c12a5f59a6b19b473b08 WHIRLPOOL 69a061b459a4456dfcb5742f1bd17a81843ad97f90ecb3f0849f5dc78618aab55fae4d771b3d4552eb90f9f1b1ec0d70464e5f7e94565fa8097b7c39c3d4a9d2
+DIST mirmon-2.10.tar.gz 72212 SHA256 384d0bd14d71b87797d2a1fa66a0fcb9af11307a9de20f2c5544344b3710fa33 SHA512 e6e371e1b78b9a7e8e27dd1a68b07436430d9d1cbaa96ee6738049c4878c70b8736e24d86be2571f0a08b263b763c2d8883d78925ac703336f7a297903413d4d WHIRLPOOL 1aef8dfbd9b045407a9f5ad12f95fd92e0482a95aa487ecb54de54a94d611320e295dc03b639988c81496292f7b668e132873480061b9a1758fff47e2542e06f
+EBUILD mirmon-1.38-r4.ebuild 1058 SHA256 2004e29a1ce7181a27d2bc9a85e5990bcf683fefce7026731dd97fb78fb4aad1 SHA512 3f048753db716ddc339299b0fd3f3cf4c1f802de4237716ccef7f6f5219f323637c43599f25e0a0c3cf005209157be58d76bd113a60a01ee6cef679d052e97af WHIRLPOOL 75a0089eb6b9d2fba1740779e35fd29abf9fce214b340fc52eb68c44b72da933e53bda3d5eeee8d362cd4051113e76a684d39e85241f0c6f518ecfd0b5d036e9
+EBUILD mirmon-2.10.ebuild 905 SHA256 d3200836fc7eb6fde70a156d23a67764e89a3fdab1493a7bd7348794e5d5b8a2 SHA512 c64a6d5121e7208667c4eebab50c6219ff40a62fe7764b067cfcce81504d2686980a5de91f0b52b7a9788987448fd1098b95ab6959c92894891a1db6aa174319 WHIRLPOOL c0d8d1e8580218c0783d02ffcacb1116a8c918de7fcd832d096146b08ef8c38a92043c491e46b8d4dd0f38d1e5761b32a4bf6b74c6c1b5a45d820e55b40bafc2
+MISC ChangeLog 2909 SHA256 2482af85a9326edde965456af652d10ba788534866576b9efb3d33ad0b3f4dde SHA512 d8b05eed24c630cc02ba40ae7a8b601b7d8b223d2630b02f095c771dd8dec4674b638d820bce5afc4dc130925d477d665a7cb441f096b3354248a36cbda10cb6 WHIRLPOOL 2a2a77a27a9498c7dbe1df6a3659cc5917ce76012ad05f03af2a8cffc2185548efe6ca666041c823a2e1268bd1b63b243b131c727cf2e5e15cdd6493d77ab403
+MISC ChangeLog-2015 2646 SHA256 204b24bbd1c754071c7b2c2ee30e36ac65c434498a064d3e293b75e145970148 SHA512 0bdef1345023edc0d168ed17b63f38bdec068e619ba11e5031fb17a13d1f2fd54a0709d538a9317ed0f55e571ba0600c950c7baec1b188702ad9e725337a553f WHIRLPOOL be9d639f665417ff44982b7d6786397f862a267d836634bddc83b54f26b848c6e82adf5539e2e1ef145485a8567825545aa84bd3b8c285014720900dbaa6e040
+MISC metadata.xml 301 SHA256 1644efc2070eff4ad5ce425fd73568549da157758b5bda1cf8e12246a1d41f78 SHA512 7e3589110474bd73e8ce39b9056dd426d5d68eed8f6babaf90357e629feda96e4ec03e568a8042ff7dfe8521696150d794c3344f7773b4df060c0ee77d7dfb8e WHIRLPOOL 1ba727ccfdd9d01dc0524ab33850edfd0d914c73b197d7753cc23dbf01d3641e320661fef67f614da12c902ace3faf8d9072455621042cd17f641c3379b1a241
diff --git a/www-apps/mirmon/files/0001-Add-rsync-monitoring-support-to-mirmon.patch b/www-apps/mirmon/files/0001-Add-rsync-monitoring-support-to-mirmon.patch
new file mode 100644
index 000000000000..0c8c69d7795f
--- /dev/null
+++ b/www-apps/mirmon/files/0001-Add-rsync-monitoring-support-to-mirmon.patch
@@ -0,0 +1,87 @@
+https://bugs.gentoo.org/show_bug.cgi?id=289942
+
+From d91f1f17be33dfc5ed771829639791b5463417a2 Mon Sep 17 00:00:00 2001
+From: Jeremy Olexa <darkside@gentoo.org>
+Date: Wed, 28 Oct 2009 20:58:45 -0500
+Subject: [PATCH 1/2] Add rsync monitoring support to mirmon.
+
+You will also need to modify mirmon.conf to use probe-mirmon instead
+Original patch located at: http://www.tug.org/texlive/mirmon/probe-mirmon
+---
+ mirmon | 2 +-
+ probe-mirmon | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 51 insertions(+), 1 deletions(-)
+ create mode 100644 probe-mirmon
+
+diff --git a/mirmon b/mirmon
+index a1261f5..6c0aaa8 100755
+--- a/mirmon
++++ b/mirmon
+@@ -384,7 +384,7 @@ sub get_ccs
+ sub type_site
+ { my $url = shift ;
+ my ( $type, $site, $home ) ;
+- if ( $url =~ m!^(ftp|http)://([^/:]+)(:\d+)?/! )
++ if ( $url =~ m!^(ftp|https?|rsync)://([^/:]+)(:\d+)?/! )
+ { $type = $1 ; $site = $2 ; $home = $& ; }
+ return $type, $site, $home ;
+ }
+diff --git a/probe-mirmon b/probe-mirmon
+new file mode 100644
+index 0000000..a7fe513
+--- /dev/null
++++ b/probe-mirmon
+@@ -0,0 +1,50 @@
++#!/usr/bin/env perl
++# $Id$
++# public domain. Originally written by Karl Berry, 2009.
++#
++# Probe rsync url's for mirmon; use wget for anything else.
++# From description at http://people.cs.uu.nl/henkp/mirmon.
++#
++# Also requires a patch to mirmon itself to accept rsync urls
++# (and I wanted https too):
++# --- /usr/local/share/mirmon/ORIG/mirmon 2007-08-18 18:05:47.000000000 +0200
++# +++ /usr/local/share/mirmon/mirmon 2009-07-03 22:38:00.000000000 +0200
++# @@ -386,3 +386,3 @@
++# my ( $type, $site, $home ) ;
++# - if ( $url =~ m!^(ftp|http)://([^/:]+)(:\d+)?/! )
++# + if ( $url =~ m!^(ftp|https?|rsync)://([^/:]+)(:\d+)?/! )
++# { $type = $1 ; $site = $2 ; $home = $& ; }
++
++exit (&main ());
++
++sub main
++{
++ my ($timeout,$url) = @ARGV;
++ my $ret;
++
++ if ($url =~ m,^rsync://,) {
++ $ret = &handle_rsync ($timeout, $url);
++ } else {
++ $ret = system qq(wget -q -O - -t 1 -T $timeout $url);
++ }
++ return $ret;
++}
++
++
++sub handle_rsync
++{
++ my ($timeout,$url) = @_;
++
++ my $tmpdir = "rsync-tmp";
++ -d $tmpdir || mkdir ($tmpdir, 0700);
++
++ (my $file = $url) =~ s/\W/_/g; # translate all non-letters to _
++ my $local = "$tmpdir/$file";
++ my $ret = system
++ qq(/usr/local/bin/rsync --no-motd --timeout $timeout $url $local);
++
++ @ARGV = ($local); # don't care about our args any more.
++ print <>; # let perl autoprint
++
++ return $ret;
++}
+--
+1.6.4.4
+
diff --git a/www-apps/mirmon/files/0002-Add-ipv6-monitor-support-to-mirmon.patch b/www-apps/mirmon/files/0002-Add-ipv6-monitor-support-to-mirmon.patch
new file mode 100644
index 000000000000..3742d30825b7
--- /dev/null
+++ b/www-apps/mirmon/files/0002-Add-ipv6-monitor-support-to-mirmon.patch
@@ -0,0 +1,41 @@
+https://bugs.gentoo.org/show_bug.cgi?id=289943
+
+From ab302148275a973c3fccd164fa1ae4b4c4409d21 Mon Sep 17 00:00:00 2001
+From: Jeremy Olexa <darkside@gentoo.org>
+Date: Wed, 28 Oct 2009 21:04:39 -0500
+Subject: [PATCH 2/2] Add ipv6 monitor support to mirmon
+
+This patch will overload the gethost() function provided by perl in such a way
+that it uses gethostbyname2() from Socket6, which is a new dependency.
+
+Original patch by: Kent Fredric
+---
+ mirmon | 12 +++++++++++-
+ 1 files changed, 11 insertions(+), 1 deletions(-)
+
+diff --git a/mirmon b/mirmon
+index 6c0aaa8..50d40ca 100755
+--- a/mirmon
++++ b/mirmon
+@@ -30,7 +30,17 @@ my $VER = '# $Id$
+ use strict ;
+ use IO::Pipe ;
+ use IO::Select ;
+-use Net::hostent ;
++
++use Socket;
++use Socket6;
++use Data::Dumper qw( Dumper );
++
++sub gethost($){
++ my $url = shift;
++ return 1 if gethostbyname2 $url, AF_INET;
++ return 1 if gethostbyname2 $url, AF_INET6;
++ return 0;
++}
+
+ my $DEF_CNF = "/etc/$PRG.conf" ;
+
+--
+1.6.4.4
+
diff --git a/www-apps/mirmon/metadata.xml b/www-apps/mirmon/metadata.xml
new file mode 100644
index 000000000000..d9b32066e754
--- /dev/null
+++ b/www-apps/mirmon/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>Simple graphical mirror monitor with html output to analyze whether data is being kept in sync.</longdescription>
+</pkgmetadata>
diff --git a/www-apps/mirmon/mirmon-1.38-r4.ebuild b/www-apps/mirmon/mirmon-1.38-r4.ebuild
new file mode 100644
index 000000000000..ede9c4ac7ee2
--- /dev/null
+++ b/www-apps/mirmon/mirmon-1.38-r4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit webapp eutils
+WEBAPP_MANUAL_SLOT="yes"
+
+DESCRIPTION="Simple webapp to monitor the status of mirrors"
+HOMEPAGE="http://people.cs.uu.nl/henkp/mirmon/"
+SRC_URI="http://people.cs.uu.nl/henkp/mirmon/src/$PN/src/$P.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/perl-5.8.5-r2"
+RDEPEND="${DEPEND}
+ dev-perl/File-Tempdir
+ dev-perl/Socket6"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/0001-Add-rsync-monitoring-support-to-mirmon.patch" \
+ "${FILESDIR}/0002-Add-ipv6-monitor-support-to-mirmon.patch"
+ # set the proper interpreter
+ sed -i -e 's:/sw/bin/perl:/usr/bin/perl:' mirmon || die
+}
+
+src_install() {
+ # Don't install empty dirs
+ MY_CGIBINDIR=""
+ MY_ICONSDIR=""
+ MY_ERRORSDIR=""
+
+ webapp_src_preinst
+
+ for file in mirmon.html mirmon.txt; do
+ dodoc ${file}
+ rm -f ${file}
+ done
+ cp -R icons "${D}"/${MY_HTDOCSDIR}
+ rm -rf icons
+ cp -R . "${D}"/${MY_HOSTROOTDIR}
+
+ webapp_src_install
+}
diff --git a/www-apps/mirmon/mirmon-2.10.ebuild b/www-apps/mirmon/mirmon-2.10.ebuild
new file mode 100644
index 000000000000..63863466bdfc
--- /dev/null
+++ b/www-apps/mirmon/mirmon-2.10.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit webapp eutils
+WEBAPP_MANUAL_SLOT="yes"
+
+DESCRIPTION="Simple webapp to monitor the status of mirrors"
+HOMEPAGE="https://www.staff.science.uu.nl/~penni101/mirmon/"
+SRC_URI="https://www.staff.science.uu.nl/~penni101/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/perl-5.8.5-r2:0"
+RDEPEND="${DEPEND}
+ dev-perl/File-Tempdir
+ dev-perl/Socket6"
+
+src_prepare() {
+ epatch "${FILESDIR}/0002-Add-ipv6-monitor-support-to-mirmon.patch"
+}
+
+src_install() {
+ # Don't install empty dirs
+ MY_CGIBINDIR=""
+ MY_ICONSDIR=""
+ MY_ERRORSDIR=""
+
+ webapp_src_preinst
+
+ for file in mirmon.html mirmon.txt; do
+ dodoc ${file}
+ rm -f ${file}
+ done
+ cp -R icons "${D}"/${MY_HTDOCSDIR}
+ rm -rf icons
+ cp -R . "${D}"/${MY_HOSTROOTDIR}
+
+ webapp_src_install
+}