1 |
commit: f8169b7ab50e900510cf96db00e44ecb7ee52470 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 30 21:03:25 2020 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 2 22:11:14 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8169b7a |
7 |
|
8 |
www-apps/mirmon: cleanup old version |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
.../0002-Add-ipv6-monitor-support-to-mirmon.patch | 41 -------------------- |
13 |
www-apps/mirmon/mirmon-2.10.ebuild | 44 ---------------------- |
14 |
2 files changed, 85 deletions(-) |
15 |
|
16 |
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 |
17 |
deleted file mode 100644 |
18 |
index 3742d30825b..00000000000 |
19 |
--- a/www-apps/mirmon/files/0002-Add-ipv6-monitor-support-to-mirmon.patch |
20 |
+++ /dev/null |
21 |
@@ -1,41 +0,0 @@ |
22 |
-https://bugs.gentoo.org/show_bug.cgi?id=289943 |
23 |
- |
24 |
-From ab302148275a973c3fccd164fa1ae4b4c4409d21 Mon Sep 17 00:00:00 2001 |
25 |
-From: Jeremy Olexa <darkside@g.o> |
26 |
-Date: Wed, 28 Oct 2009 21:04:39 -0500 |
27 |
-Subject: [PATCH 2/2] Add ipv6 monitor support to mirmon |
28 |
- |
29 |
-This patch will overload the gethost() function provided by perl in such a way |
30 |
-that it uses gethostbyname2() from Socket6, which is a new dependency. |
31 |
- |
32 |
-Original patch by: Kent Fredric |
33 |
---- |
34 |
- mirmon | 12 +++++++++++- |
35 |
- 1 files changed, 11 insertions(+), 1 deletions(-) |
36 |
- |
37 |
-diff --git a/mirmon b/mirmon |
38 |
-index 6c0aaa8..50d40ca 100755 |
39 |
---- a/mirmon |
40 |
-+++ b/mirmon |
41 |
-@@ -30,7 +30,17 @@ my $VER = '# $Id$ |
42 |
- use strict ; |
43 |
- use IO::Pipe ; |
44 |
- use IO::Select ; |
45 |
--use Net::hostent ; |
46 |
-+ |
47 |
-+use Socket; |
48 |
-+use Socket6; |
49 |
-+use Data::Dumper qw( Dumper ); |
50 |
-+ |
51 |
-+sub gethost($){ |
52 |
-+ my $url = shift; |
53 |
-+ return 1 if gethostbyname2 $url, AF_INET; |
54 |
-+ return 1 if gethostbyname2 $url, AF_INET6; |
55 |
-+ return 0; |
56 |
-+} |
57 |
- |
58 |
- my $DEF_CNF = "/etc/$PRG.conf" ; |
59 |
- |
60 |
--- |
61 |
-1.6.4.4 |
62 |
- |
63 |
|
64 |
diff --git a/www-apps/mirmon/mirmon-2.10.ebuild b/www-apps/mirmon/mirmon-2.10.ebuild |
65 |
deleted file mode 100644 |
66 |
index 63863466bdf..00000000000 |
67 |
--- a/www-apps/mirmon/mirmon-2.10.ebuild |
68 |
+++ /dev/null |
69 |
@@ -1,44 +0,0 @@ |
70 |
-# Copyright 1999-2016 Gentoo Foundation |
71 |
-# Distributed under the terms of the GNU General Public License v2 |
72 |
- |
73 |
-EAPI=5 |
74 |
- |
75 |
-inherit webapp eutils |
76 |
-WEBAPP_MANUAL_SLOT="yes" |
77 |
- |
78 |
-DESCRIPTION="Simple webapp to monitor the status of mirrors" |
79 |
-HOMEPAGE="https://www.staff.science.uu.nl/~penni101/mirmon/" |
80 |
-SRC_URI="https://www.staff.science.uu.nl/~penni101/${PN}/${P}.tar.gz" |
81 |
- |
82 |
-LICENSE="GPL-2" |
83 |
-SLOT="0" |
84 |
-KEYWORDS="~amd64 ~ppc ~x86" |
85 |
-IUSE="" |
86 |
- |
87 |
-DEPEND=">=dev-lang/perl-5.8.5-r2:0" |
88 |
-RDEPEND="${DEPEND} |
89 |
- dev-perl/File-Tempdir |
90 |
- dev-perl/Socket6" |
91 |
- |
92 |
-src_prepare() { |
93 |
- epatch "${FILESDIR}/0002-Add-ipv6-monitor-support-to-mirmon.patch" |
94 |
-} |
95 |
- |
96 |
-src_install() { |
97 |
- # Don't install empty dirs |
98 |
- MY_CGIBINDIR="" |
99 |
- MY_ICONSDIR="" |
100 |
- MY_ERRORSDIR="" |
101 |
- |
102 |
- webapp_src_preinst |
103 |
- |
104 |
- for file in mirmon.html mirmon.txt; do |
105 |
- dodoc ${file} |
106 |
- rm -f ${file} |
107 |
- done |
108 |
- cp -R icons "${D}"/${MY_HTDOCSDIR} |
109 |
- rm -rf icons |
110 |
- cp -R . "${D}"/${MY_HOSTROOTDIR} |
111 |
- |
112 |
- webapp_src_install |
113 |
-} |