summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-12-18 07:57:41 +0000
committerJustin Lecher <jlec@gentoo.org>2012-12-18 07:57:41 +0000
commit3f06d4247a0273ebb316af8430347d7b86cdc945 (patch)
tree551191f575f5d9764a5bbf4ad0f83dfd3f035bd5 /net-misc/clusterssh
parentUpdate to python-r1.eclass. Add a patch for cleaner multiple python ABI support. (diff)
downloadgentoo-2-3f06d4247a0273ebb316af8430347d7b86cdc945.tar.gz
gentoo-2-3f06d4247a0273ebb316af8430347d7b86cdc945.tar.bz2
gentoo-2-3f06d4247a0273ebb316af8430347d7b86cdc945.zip
net-misc/clusterssh: Drop old; Fix tests, #430664
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'net-misc/clusterssh')
-rw-r--r--net-misc/clusterssh/ChangeLog8
-rw-r--r--net-misc/clusterssh/clusterssh-3.26.ebuild37
-rw-r--r--net-misc/clusterssh/clusterssh-4.00_pre06.ebuild37
-rw-r--r--net-misc/clusterssh/clusterssh-4.00_pre11.ebuild37
-rw-r--r--net-misc/clusterssh/clusterssh-4.01.01.ebuild20
-rw-r--r--net-misc/clusterssh/files/clusterssh-4.01.01-testfix-1.patch87
-rw-r--r--net-misc/clusterssh/metadata.xml4
7 files changed, 112 insertions, 118 deletions
diff --git a/net-misc/clusterssh/ChangeLog b/net-misc/clusterssh/ChangeLog
index cf33e992e548..088191c88a9d 100644
--- a/net-misc/clusterssh/ChangeLog
+++ b/net-misc/clusterssh/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/clusterssh
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/clusterssh/ChangeLog,v 1.9 2012/03/02 13:35:29 ultrabug Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/clusterssh/ChangeLog,v 1.10 2012/12/18 07:57:41 jlec Exp $
+
+ 18 Dec 2012; Justin Lecher <jlec@gentoo.org> -clusterssh-3.26.ebuild,
+ -clusterssh-4.00_pre06.ebuild, -clusterssh-4.00_pre11.ebuild,
+ clusterssh-4.01.01.ebuild, +files/clusterssh-4.01.01-testfix-1.patch,
+ metadata.xml:
+ Drop old; Fix tests, #430664
02 Mar 2012; Ultrabug <ultrabug@gentoo.org> clusterssh-4.01.01.ebuild:
Fix RDEPEND #406001 thx to Drunkard Zhang
diff --git a/net-misc/clusterssh/clusterssh-3.26.ebuild b/net-misc/clusterssh/clusterssh-3.26.ebuild
deleted file mode 100644
index 7d0076837dbc..000000000000
--- a/net-misc/clusterssh/clusterssh-3.26.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/clusterssh/clusterssh-3.26.ebuild,v 1.1 2011/01/19 11:05:14 ultrabug Exp $
-
-EAPI=2
-
-DESCRIPTION="Concurrent Multi-Server Terminal Access."
-HOMEPAGE="http://clusterssh.sourceforge.net"
-SRC_URI="mirror://sourceforge/clusterssh/clusterssh-${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc ~ppc64 x86"
-IUSE=""
-
-RDEPEND=">=dev-lang/perl-5.6.1
- dev-perl/perl-tk
- dev-perl/Config-Simple
- dev-perl/X11-Protocol
- x11-apps/xlsfonts"
-DEPEND="${RDEPEND}"
-
-src_prepare() {
- # Gentoo perl ebuilds remove podchecker
- if grep -v podchecker "${S}"/src/Makefile.in \
- > "${S}"/src/Makefile.in.new; then
- mv "${S}"/src/Makefile.in.new "${S}"/src/Makefile.in
- else
- die "Makefile.in update failed"
- fi
-}
-
-src_install() {
- dobin src/cssh || die "dobin failed"
- doman src/cssh.1
- dodoc AUTHORS NEWS README THANKS
-}
diff --git a/net-misc/clusterssh/clusterssh-4.00_pre06.ebuild b/net-misc/clusterssh/clusterssh-4.00_pre06.ebuild
deleted file mode 100644
index 09bd2143a262..000000000000
--- a/net-misc/clusterssh/clusterssh-4.00_pre06.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/clusterssh/clusterssh-4.00_pre06.ebuild,v 1.1 2011/01/19 11:05:14 ultrabug Exp $
-
-EAPI=2
-
-inherit perl-module
-
-MY_PN="App-ClusterSSH"
-MY_PV="${PV/pre/}"
-MY_P="${MY_PN}-${MY_PV}"
-
-DESCRIPTION="Concurrent Multi-Server Terminal Access."
-HOMEPAGE="http://clusterssh.sourceforge.net"
-SRC_URI="mirror://sourceforge/clusterssh/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux "
-IUSE=""
-
-RDEPEND="
- dev-perl/Test-Pod
- dev-perl/Test-Pod-Coverage
- dev-perl/Test-Trap
- dev-perl/perl-tk
- dev-perl/Config-Simple
- dev-perl/X11-Protocol
- x11-apps/xlsfonts"
-DEPEND="
- ${RDEPEND}
- virtual/perl-Module-Build
- dev-perl/Test-Pod"
-
-S="${WORKDIR}"/${MY_P}
-
-SRC_TEST="do parallel"
diff --git a/net-misc/clusterssh/clusterssh-4.00_pre11.ebuild b/net-misc/clusterssh/clusterssh-4.00_pre11.ebuild
deleted file mode 100644
index 35635559cb4a..000000000000
--- a/net-misc/clusterssh/clusterssh-4.00_pre11.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/clusterssh/clusterssh-4.00_pre11.ebuild,v 1.1 2011/10/04 16:10:05 jlec Exp $
-
-EAPI=2
-
-inherit perl-module
-
-MY_PN="App-ClusterSSH"
-MY_PV="${PV/pre/}"
-MY_P="${MY_PN}-${MY_PV}"
-
-DESCRIPTION="Concurrent Multi-Server Terminal Access."
-HOMEPAGE="http://clusterssh.sourceforge.net"
-SRC_URI="mirror://sourceforge/clusterssh/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux "
-IUSE=""
-
-RDEPEND="
- dev-perl/Test-Pod
- dev-perl/Test-Pod-Coverage
- dev-perl/Test-Trap
- dev-perl/perl-tk
- dev-perl/Config-Simple
- dev-perl/X11-Protocol
- x11-apps/xlsfonts"
-DEPEND="
- ${RDEPEND}
- virtual/perl-Module-Build
- dev-perl/Test-Pod"
-
-S="${WORKDIR}"/${MY_P}
-
-SRC_TEST="do parallel"
diff --git a/net-misc/clusterssh/clusterssh-4.01.01.ebuild b/net-misc/clusterssh/clusterssh-4.01.01.ebuild
index 9fcd327ae9c2..bf315593b77e 100644
--- a/net-misc/clusterssh/clusterssh-4.01.01.ebuild
+++ b/net-misc/clusterssh/clusterssh-4.01.01.ebuild
@@ -1,16 +1,16 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/clusterssh/clusterssh-4.01.01.ebuild,v 1.2 2012/03/02 13:35:29 ultrabug Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/clusterssh/clusterssh-4.01.01.ebuild,v 1.3 2012/12/18 07:57:41 jlec Exp $
-EAPI=2
+EAPI=4
-inherit perl-module versionator
+inherit eutils perl-module versionator
MY_PN="App-ClusterSSH"
MY_PV="$(replace_version_separator 2 _)"
MY_P="${MY_PN}-${MY_PV}"
-DESCRIPTION="Concurrent Multi-Server Terminal Access."
+DESCRIPTION="Concurrent Multi-Server Terminal Access"
HOMEPAGE="http://clusterssh.sourceforge.net"
SRC_URI="mirror://sourceforge/clusterssh/${MY_P}.tar.gz"
@@ -40,3 +40,15 @@ DEPEND="
S="${WORKDIR}"/${MY_P}
SRC_TEST="do parallel"
+
+src_prepare() {
+ # broken test, check again for new releases
+ sed \
+ -e '/boilerplate/d' \
+ -e '/manifest.t/d' \
+ -i MANIFEST || die
+ rm t/boilerplate.t t/manifest.t || die
+
+ epatch "${FILESDIR}"/${P}-testfix-1.patch
+ perl-module_src_prepare
+}
diff --git a/net-misc/clusterssh/files/clusterssh-4.01.01-testfix-1.patch b/net-misc/clusterssh/files/clusterssh-4.01.01-testfix-1.patch
new file mode 100644
index 000000000000..666a1c6fe9c2
--- /dev/null
+++ b/net-misc/clusterssh/files/clusterssh-4.01.01-testfix-1.patch
@@ -0,0 +1,87 @@
+diff --git a/t/15config.t b/t/15config.t
+index 81d8f70..522997b 100644
+--- a/t/15config.t
++++ b/t/15config.t
+@@ -8,6 +8,7 @@ use Test::More;
+ use Test::Trap;
+ use File::Which qw(which);
+ use File::Temp qw(tempdir);
++use Test::Differences;
+
+ use Readonly;
+
+@@ -72,8 +73,8 @@ Readonly::Hash my %default_config => {
+ history_height => 10,
+
+ command => q{},
+- title => q{15CONFIG.T},
+- comms => q{ssh},
++ title => q{15CONFIG.T},
++ comms => q{ssh},
+ max_host_menu_items => 30,
+
+ max_addhost_menu_cluster_items => 6,
+@@ -241,11 +242,11 @@ is( $trap->stdout, q{}, 'Expecting no STDOUT' );
+ is( $trap->stderr, q{}, 'Expecting no STDERR' );
+ is_deeply( $config, \%expected, 'amended config is correct' );
+ is( $path, which('ls'), 'Found correct path to "ls"' );
+-is( $path, $newpath, 'No change made from find_binary');
++is( $path, $newpath, 'No change made from find_binary' );
+
+ # give false path to force another search
+ trap {
+- $newpath = $config->find_binary('/does/not/exist/'.$path);
++ $newpath = $config->find_binary( '/does/not/exist/' . $path );
+ };
+ is( $trap->leaveby, 'return', 'returned ok' );
+ isa_ok( $config, "App::ClusterSSH::Config" );
+@@ -254,7 +255,7 @@ is( $trap->stdout, q{}, 'Expecting no STDOUT' );
+ is( $trap->stderr, q{}, 'Expecting no STDERR' );
+ is_deeply( $config, \%expected, 'amended config is correct' );
+ is( $path, which('ls'), 'Found correct path to "ls"' );
+-is( $path, $newpath, 'No change made from find_binary');
++is( $path, $newpath, 'No change made from find_binary' );
+
+ note('Checks on loading configs');
+ note('empty dir');
+@@ -456,12 +457,12 @@ is( $trap->stderr,
+ );
+
+ note('Checking dump');
+-$config = App::ClusterSSH::Config->new();
++$config = App::ClusterSSH::Config->new(
++ send_menu_xml_file => $ENV{HOME} . '/.csshrc_send_menu' );
+ trap {
+ $config->dump();
+ };
+-my $expected = <<'EOF';
+-# Configuration dump produced by "cssh -u"
++my $expected = qq{# Configuration dump produced by "cssh -u"
+ auto_close=5
+ auto_quit=yes
+ console_position=
+@@ -486,7 +487,7 @@ screen_reserve_bottom=60
+ screen_reserve_left=0
+ screen_reserve_right=0
+ screen_reserve_top=0
+-send_menu_xml_file=/home/dferguson/.csshrc_send_menu
++send_menu_xml_file=} . $ENV{HOME} . qq{/.csshrc_send_menu
+ show_history=0
+ ssh_args=
+ telnet_args=
+@@ -509,10 +510,11 @@ use_all_a_records=0
+ use_hotkeys=yes
+ window_tiling=yes
+ window_tiling_direction=right
+-EOF
++};
++
+ isa_ok( $config, "App::ClusterSSH::Config" );
+-is( $trap->die, undef, 'die message correct' );
+-is( $trap->stdout, $expected, 'Expecting no STDOUT' );
+-is( $trap->stderr, q{}, 'Expecting no STDERR' );
++is( $trap->die, undef, 'die message correct' );
++eq_or_diff( $trap->stdout, $expected, 'Expecting no STDOUT' );
++is( $trap->stderr, q{}, 'Expecting no STDERR' );
+
+ done_testing();
diff --git a/net-misc/clusterssh/metadata.xml b/net-misc/clusterssh/metadata.xml
index b185919b3960..8929edd8ee42 100644
--- a/net-misc/clusterssh/metadata.xml
+++ b/net-misc/clusterssh/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>cluster</herd>
- <longdescription lang="en">
+ <herd>cluster</herd>
+ <longdescription lang="en">
ClusterSSH is a tool for making the same change on multiple servers
at the same time. The 'cssh' command opens an administration console
and an xterm to all specified hosts. Any text typed into