Move net-analyzer/mirmon -> www-apps/mirmon
authorJeremy Olexa <darkside@gentoo.org>
Sun, 9 May 2010 22:11:08 +0000 (22:11 +0000)
committerJeremy Olexa <darkside@gentoo.org>
Sun, 9 May 2010 22:11:08 +0000 (22:11 +0000)
net-analyzer/mirmon/ChangeLog [deleted file]
net-analyzer/mirmon/Manifest [deleted file]
net-analyzer/mirmon/files/0001-Add-rsync-monitoring-support-to-mirmon.patch [deleted file]
net-analyzer/mirmon/files/0002-Add-ipv6-monitor-support-to-mirmon.patch [deleted file]
net-analyzer/mirmon/metadata.xml [deleted file]
net-analyzer/mirmon/mirmon-1.38-r2.ebuild [deleted file]

diff --git a/net-analyzer/mirmon/ChangeLog b/net-analyzer/mirmon/ChangeLog
deleted file mode 100644 (file)
index b594885..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-# ChangeLog for net-analyzer/mirmon
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mirmon/ChangeLog,v 1.10 2010/03/10 14:17:33 darkside Exp $
-
-  10 Mar 2010; Jeremy Olexa <darkside@gentoo.org> mirmon-1.38-r2.ebuild:
-  Fix dep from last commit, I read it wrongly, File-Tempdir not File-Temp
-
-  09 Mar 2010; Jeremy Olexa <darkside@gentoo.org> -mirmon-1.38.ebuild,
-  mirmon-1.38-r2.ebuild:
-  Add missing dep on perl-File-Temp
-
-*mirmon-1.38-r2 (29 Oct 2009)
-
-  29 Oct 2009; Jeremy Olexa <darkside@gentoo.org> -mirmon-1.38-r1.ebuild,
-  +mirmon-1.38-r2.ebuild:
-  Forgot to add dependancy on dev-perl/Socket6 in last commit. Fix HOMEPAGE
-  and SRC_URI.
-
-*mirmon-1.38-r1 (29 Oct 2009)
-
-  29 Oct 2009; Jeremy Olexa <darkside@gentoo.org>
-  +files/0001-Add-rsync-monitoring-support-to-mirmon.patch,
-  +files/0002-Add-ipv6-monitor-support-to-mirmon.patch,
-  +mirmon-1.38-r1.ebuild, metadata.xml:
-  Revbump to add patches for rsync and ipv6 support, Gentoo bug 289942 &
-  289943
-
-  16 Aug 2008; Torsten Veller <tove@gentoo.org> metadata.xml:
-  Remove jforman from metadata.xml (#38728)
-
-*mirmon-1.38 (18 Jan 2008)
-
-  18 Jan 2008; Raúl Porcel <armin76@gentoo.org> -mirmon-1.36.ebuild,
-  -mirmon-1.37.ebuild, +mirmon-1.38.ebuild:
-  Version bump, remove old, add ~amd64
-
-*mirmon-1.37 (05 Jul 2007)
-
-  05 Jul 2007; Raúl Porcel <armin76@gentoo.org> +mirmon-1.37.ebuild:
-  Version bump
-
-  09 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
-  Regenerate digest in Manifest2 format.
-
-  19 Jul 2005; David Holm <dholm@gentoo.org> mirmon-1.36.ebuild:
-  Added to ~ppc.
-
-  02 Feb 2005; Jeffrey Forman <jforman@gentoo.org> :
-  Initial version of mirmon ebuild, version 1.36. To monitor mirrors update
-  status
-
diff --git a/net-analyzer/mirmon/Manifest b/net-analyzer/mirmon/Manifest
deleted file mode 100644 (file)
index 7101cf5..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-AUX 0001-Add-rsync-monitoring-support-to-mirmon.patch 2625 RMD160 ccea0b3746f25ac201e8a4b1da62cf660cc32678 SHA1 00f706252d3eb2585bca51b8a80cddc887d84243 SHA256 2c056f5ccaa4a5f31e773e6540e42f48a6a6b34cf27f38190b4af989b131bb0e
-AUX 0002-Add-ipv6-monitor-support-to-mirmon.patch 1058 RMD160 e814e1f0fbd15fa638cccca0d203cd168c269ecf SHA1 d7fdc3380749d711f9c050ac4f860f8fa64feb75 SHA256 3000bc77566dc2b1dbc45cfa5dbd740af799598f7a1e0cdca4e441fd347c4a5b
-DIST mirmon-1.38.tar.gz 33021 RMD160 2f97e90313321d8f9eee14716ce6c4e04cf90ef4 SHA1 874b449a7b7397dd0ff215339051e434a26ee017 SHA256 5defb2c0890d3461a2b8dd8cc3efc4c63c0814c043cb227a69b4a457a38b0ce3
-EBUILD mirmon-1.38-r2.ebuild 900 RMD160 95b17567444945caabbb72e094313dd8581eb4b4 SHA1 f78d2576e5216c8d864c15afe556451829cad6eb SHA256 c77e37f6116f7d5cc437f403a009d95ba41053ed24636bd3509ab3c6568ee0d8
-MISC ChangeLog 1769 RMD160 e8ac4693e827115b4cef947250e5221ddd2a57ab SHA1 51478d87f9707d55afe282bdc837b97d78326f0c SHA256 85a4eaa87bbd7d19889f5c2fa8c124298d2c39b54515d3fef4fa7c784c110f86
-MISC metadata.xml 367 RMD160 e4b6603315a56e8c09aa9ee05df30871d846cc09 SHA1 c935e1ff36115465f4525348385faa9e40370ec1 SHA256 6528e81776c84cef34ffe7ec71e400fc6eafc02a9e7fc2a26ad37bcce8ba5bec
diff --git a/net-analyzer/mirmon/files/0001-Add-rsync-monitoring-support-to-mirmon.patch b/net-analyzer/mirmon/files/0001-Add-rsync-monitoring-support-to-mirmon.patch
deleted file mode 100644 (file)
index 3d30c0b..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-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: 0001-Add-rsync-monitoring-support-to-mirmon.patch,v 1.1 2009/10/29 02:26:38 darkside Exp $
-+# 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/net-analyzer/mirmon/files/0002-Add-ipv6-monitor-support-to-mirmon.patch b/net-analyzer/mirmon/files/0002-Add-ipv6-monitor-support-to-mirmon.patch
deleted file mode 100644 (file)
index 40e5415..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-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: 0002-Add-ipv6-monitor-support-to-mirmon.patch,v 1.1 2009/10/29 02:26:38 darkside Exp $' ;
- 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/net-analyzer/mirmon/metadata.xml b/net-analyzer/mirmon/metadata.xml
deleted file mode 100644 (file)
index e44074e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-  <herd>no-herd</herd>
-  <maintainer>
-    <email>mirror-admin@gentoo.org</email>
-  </maintainer>
-<longdescription>Simple graphical mirror monitor with html output to analyze whether data is being kept in sync.</longdescription>
-</pkgmetadata>
diff --git a/net-analyzer/mirmon/mirmon-1.38-r2.ebuild b/net-analyzer/mirmon/mirmon-1.38-r2.ebuild
deleted file mode 100644 (file)
index fbc8e03..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mirmon/mirmon-1.38-r2.ebuild,v 1.3 2010/03/10 14:17:33 darkside Exp $
-
-inherit webapp eutils
-
-DESCRIPTION="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"
-
-KEYWORDS="~amd64 ~ppc ~x86"
-
-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"
-}
-
-src_install() {
-       webapp_src_preinst
-
-       for file in mirmon.html mirmon.txt; do
-               dodoc ${file}
-               rm -f ${file}
-       done
-       cp -R . "${D}"/${MY_HTDOCSDIR}
-
-       webapp_src_install
-}