clusterssh stable port information

Info2: <<
Package: clusterssh
Version: 3.28
Revision: 1
###
Depends: perl588-core, tk-pm588, x11, x11-protocol-pm (>= 0.56-2)
BuildDepends: fink (>= 0.24.12-1), perl588-core, sed
###
Source: mirror:sourceforge:clusterssh/clusterssh-%v.tar.gz
Source-MD5: 11e012329d2c62e1f7b17f3ac517769a
PatchFile: %n.patch
PatchFile-MD5: b222e598e29c4a60c147fd0312c63838
###
Type: perl
UpdatePOD: false
NoPerlTests: true
###
CompileScript: <<
#!/bin/sh -ex
cd %b
PERL=%p/bin/perl5.8.8 ./configure --mandir=%p/share/man --prefix=%p --sysconfdir=%p/etc
make
<<
InstallScript: <<
%{default_script}
%p/bin/sed -i 's|SYSCONFIGDIR|%p/etc|g' %i/bin/cssh
%p/bin/sed -i 's|SYSCONFIGDIR|%p/etc|g' %i/share/man/man1/cssh.1
<<
DocFiles: AUTHORS COPYING ChangeLog NEWS README THANKS
###
Description: Cluster administration tool
DescDetail: <<
Control multiple terminals open on different servers to perform
administration tasks, for example multiple hosts requiring the
same config within a cluster. Not limited to use with clusters,
however.
<<
DescPort: <<
The patch makes the build use the sysconfdir passed to configure.
<<
###
License: GPL
Maintainer: degraw
Homepage: http://clusterssh.sourceforge.net/
<<

clusterssh stable port .patch

--- clusterssh-3.28/src/cssh.pl 2009-12-19 09:39:00.000000000 -0500
+++ clusterssh-3.28/src/cssh.pl 2011-11-04 21:28:26.000000000 -0400
@@ -609,7 +609,7 @@
sub get_clusters() {

# first, read in global file
- my $cluster_file = '/etc/clusters';
+ my $cluster_file = $sysconfigdir . '/clusters';

logmsg( 3, "Logging for $cluster_file" );

@@ -2466,7 +2466,7 @@

=item ...

-Open a series of xterms defined by within either /etc/clusters or
+Open a series of xterms defined by within either SYSCONFIGDIR/clusters or
F<$HOME/.csshrc> (see L<"FILES">).

Note: specifying a username on a cluster tag will override any usernames
@@ -2543,7 +2543,7 @@

=over

-=item F
+=item F

This file contains a list of tags to server names mappings. When any name
is used on the command line it is checked to see if it is a tag.
@@ -2568,7 +2568,7 @@
included within this tag will be automatically opened if no other tags
are specified on the command line.

-=item F & F<$HOME/.csshrc>
+=item F & F<$HOME/.csshrc>

This file contains configuration overrides - the defaults are as marked.
Default options are overwritten first by the global file, and then by the
@@ -2597,14 +2597,14 @@
=item clusters =

Define a number of cluster tags in addition to (or to replace) tags defined
-in the F file. The format is:
+in the F file. The format is:

clusters =
= host1 host2 host3
= user@host4 user@host5 host6
=

-As with the F file, be sure not to create recursivly nested tags.
+As with the F file, be sure not to create recursivly nested tags.

=item comms = ssh

@@ -2619,7 +2619,7 @@

=item extra_cluster_file =

-Define an extra cluster file in the format of F. Multiple
+Define an extra cluster file in the format of F. Multiple
files can be specified, seperated by commas. Both ~ and $HOME are acceptable
as a to reference the users home directory, i.e.

@@ -2948,7 +2948,7 @@

C<< perl -MX11::Protocol -e 'print $X11::Protocol::VERSION,$/' >>

-C<< cat /etc/csshrc $HOME/.csshrc >>
+C<< cat SYSCONFIGDIR/csshrc $HOME/.csshrc >>

=item *

clusterssh _unstable_ port .patch