NEW: sysutils/clusterit

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

NEW: sysutils/clusterit

Will Maier
.*-

I'd also like to submit this port of ClusterIT for testing. I have
built and tested the port on i386-current, and it works fine.

The port includes two binaries (dvt(1) and rvt(1)) which require X;
as the rest of the port (especially dsh(1)) is quite useful without
X, I've added a no_x11 FLAVOR. I'm unsure of how to handle
pkg/PLIST, since dvt and rvt are only installed when FLAVOR !=
no_x11. Currently, I'm patching Makefile.in to prevent building of
dvt and rvt since passing '--without-x11' to configure doesn't
actually keep it from building them.

Thanks in advance for testing and feedback!

--

o--------------------------{ Will Maier }--------------------------o
| jabber:..[hidden email] | [hidden email] |
| freenode:..............lt_kije | freenode:........#madlug,#wilug |
*------------------[ BSD Unix: Live Free or Die ]------------------*

clusterit.tar.gz (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/clusterit

Will Maier
On Sat, May 27, 2006 at 02:02:50PM -0500, Will Maier wrote:
[...]
> The port includes two binaries (dvt(1) and rvt(1)) which require
> X; as the rest of the port (especially dsh(1)) is quite useful
> without X, I've added a no_x11 FLAVOR. I'm unsure of how to handle
> pkg/PLIST, since dvt and rvt are only installed when FLAVOR !=
> no_x11.

I now understand how pkg/PFRAG.* works; I've fixed the port to
properly handle the X11-only binaries. I've tested the updated
version on i386-current.

Please test and send comments on the updated port.

Thanks!

--

o--------------------------{ Will Maier }--------------------------o
| jabber:..[hidden email] | [hidden email] |
| freenode:..............lt_kije | freenode:........#madlug,#wilug |
*------------------[ BSD Unix: Live Free or Die ]------------------*

clusterit.tgz (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/clusterit

Will Maier
After some feedback from Tobias Ulmer, I've updated the port one
last time (I hope).

This version fixes some libs that I overlooked and cleans up the
FLAVOR patching.

Thanks!

--

o--------------------------{ Will Maier }--------------------------o
| jabber:..[hidden email] | [hidden email] |
| freenode:..............lt_kije | freenode:........#madlug,#wilug |
*------------------[ BSD Unix: Live Free or Die ]------------------*

clusterit.tgz (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/clusterit

Bachman Kharazmi
In reply to this post by Will Maier
Will Maier's clusterit.gz port tested by me on mips, and sparc64 archs.

what I've tested is:
make install clean
make deinstall
read manuals
pkg_add/pkg_delete/pkg_info clusterit-2.4.tgz

Everything worked flawless without any errors.

It is compiled with FLAVOUR=no_x11 on
openbsd 3.9 release for both mips/sparc64 archs.
--
/bkw

Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/clusterit

steven mestdagh
In reply to this post by Will Maier
Will Maier [2006-05-27, 14:02:50]:

> .*-
>
> I'd also like to submit this port of ClusterIT for testing. I have
> built and tested the port on i386-current, and it works fine.
>
> The port includes two binaries (dvt(1) and rvt(1)) which require X;
> as the rest of the port (especially dsh(1)) is quite useful without
> X, I've added a no_x11 FLAVOR. I'm unsure of how to handle
> pkg/PLIST, since dvt and rvt are only installed when FLAVOR !=
> no_x11. Currently, I'm patching Makefile.in to prevent building of
> dvt and rvt since passing '--without-x11' to configure doesn't
> actually keep it from building them.
>
> Thanks in advance for testing and feedback!

i had a very brief look at this, and think it would be more sane if it
used ssh/scp by default instead of rsh/rcp. maybe can you modify that?

steven

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/clusterit

Will Maier
On Sun, Jun 11, 2006 at 11:30:13AM +0200, steven mestdagh wrote:
> i had a very brief look at this, and think it would be more sane if it
> used ssh/scp by default instead of rsh/rcp. maybe can you modify that?

Sure. I agree -- I've never used rsh as the RCMD. Here's a patch
(against the most recent tarball I posted) and updated tarball
(since there are a couple versions of the port floating around).  I
don't have access to a machine with X11 right now, but dsh/pcp test
out fine on i386.

Should the documentation be patched to reflect this change as well?

Thanks for your help!

--

o--------------------------{ Will Maier }--------------------------o
| jabber:..[hidden email] | [hidden email] |
| freenode:..............lt_kije | freenode:........#madlug,#wilug |
*------------------[ BSD Unix: Live Free or Die ]------------------*

diff -urN ../clusterit-old/Makefile ./Makefile
--- ../clusterit-old/Makefile Tue May 30 16:37:05 2006
+++ ./Makefile Sun Jun 11 17:56:45 2006
@@ -25,7 +25,7 @@
 
 .if ${FLAVOR:L:Mno_x11}
 # Don't build dvt/rvt, which require X11
-PATCH_LIST+= no_x11-*
+PATCH_LIST= patch-* no_x11-*
 CONFIGURE_ARGS= --without-x11
 .else
 USE_X11= Yes
diff -urN ../clusterit-old/patches/patch-dsh_dsh_c ./patches/patch-dsh_dsh_c
--- ../clusterit-old/patches/patch-dsh_dsh_c Wed Dec 31 18:00:00 1969
+++ ./patches/patch-dsh_dsh_c Sun Jun 11 17:10:29 2006
@@ -0,0 +1,24 @@
+$OpenBSD$
+--- dsh/dsh.c.orig Sun Jun 11 17:06:15 2006
++++ dsh/dsh.c Sun Jun 11 17:08:58 2006
+@@ -226,9 +226,9 @@ main(int argc, char *argv[])
+     /* we need to find or guess the port number */
+     if (testflag && rshport == 0) {
+ if (!getenv("RCMD_CMD"))
+-    rshport = 514;
+- else if (strcmp("ssh", getenv("RCMD_CMD")) == 0)
+    rshport = 22;
++ else if (strcmp("rsh", getenv("RCMD_CMD")) == 0)
++    rshport = 514;
+ else {
+    (void)fprintf(stderr, "-t argument given, but port number to test "
+  "could not be guessed.  Please set RSHPORT "
+@@ -352,7 +352,7 @@ do_command(char **argv, int fanout, char
+     /* gather the rsh data */
+     rsh = getenv("RCMD_CMD");
+     if (rsh == NULL)
+- rsh = strdup("rsh");
++ rsh = strdup("ssh");
+     if (rsh == NULL)
+ bailout();
+
diff -urN ../clusterit-old/patches/patch-dsh_rseq_c ./patches/patch-dsh_rseq_c
--- ../clusterit-old/patches/patch-dsh_rseq_c Wed Dec 31 18:00:00 1969
+++ ./patches/patch-dsh_rseq_c Sun Jun 11 17:12:22 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- dsh/rseq.c.orig Sun Jun 11 17:12:09 2006
++++ dsh/rseq.c Sun Jun 11 17:12:12 2006
+@@ -324,7 +324,7 @@ do_command(char **argv, int allrun, char
+     /* set up the remote command */
+     rsh = getenv("RCMD_CMD");
+     if (rsh == NULL)
+- rsh = strdup("rsh");
++ rsh = strdup("ssh");
+     if (rsh == NULL)
+ bailout();
+     if (getenv("RCMD_CMD_ARGS") != NULL)
diff -urN ../clusterit-old/patches/patch-dsh_run_c ./patches/patch-dsh_run_c
--- ../clusterit-old/patches/patch-dsh_run_c Wed Dec 31 18:00:00 1969
+++ ./patches/patch-dsh_run_c Sun Jun 11 17:13:23 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- dsh/run.c.orig Sun Jun 11 17:12:44 2006
++++ dsh/run.c Sun Jun 11 17:13:15 2006
+@@ -292,7 +292,7 @@ do_command(char **argv, int allrun, char
+     /* get the rsh data */
+     rsh = getenv("RCMD_CMD");
+     if (rsh == NULL)
+- rsh = strdup("rsh");
++ rsh = strdup("ssh");
+     if (rsh == NULL)
+ bailout();
+     if (getenv("RCMD_CMD_ARGS") != NULL)
diff -urN ../clusterit-old/patches/patch-jsd_jsd_c ./patches/patch-jsd_jsd_c
--- ../clusterit-old/patches/patch-jsd_jsd_c Wed Dec 31 18:00:00 1969
+++ ./patches/patch-jsd_jsd_c Sun Jun 11 17:15:53 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- jsd/jsd.c.orig Sun Jun 11 17:15:18 2006
++++ jsd/jsd.c Sun Jun 11 17:15:29 2006
+@@ -458,7 +458,7 @@ do_bench_command(char *argv, int fanout,
+
+     rsh = getenv("RCMD_CMD");
+     if (rsh == NULL)
+- rsh = strdup("rsh");
++ rsh = strdup("ssh");
+     if (rsh == NULL)
+ bailout();
+     if (getenv("RCMD_CMD_ARGS") != NULL)
diff -urN ../clusterit-old/patches/patch-jsd_jsh_c ./patches/patch-jsd_jsh_c
--- ../clusterit-old/patches/patch-jsd_jsh_c Wed Dec 31 18:00:00 1969
+++ ./patches/patch-jsd_jsh_c Sun Jun 11 17:17:23 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- jsd/jsh.c.orig Sun Jun 11 17:16:28 2006
++++ jsd/jsh.c Sun Jun 11 17:17:19 2006
+@@ -319,7 +319,7 @@ do_command(char **argv, int allrun, char
+     }
+     rsh = getenv("RCMD_CMD");
+     if (rsh == NULL)
+- rsh = strdup("rsh");
++ rsh = strdup("ssh");
+     if (rsh == NULL)
+ bailout();
+
diff -urN ../clusterit-old/patches/patch-pcp_pcp_c ./patches/patch-pcp_pcp_c
--- ../clusterit-old/patches/patch-pcp_pcp_c Wed Dec 31 18:00:00 1969
+++ ./patches/patch-pcp_pcp_c Sun Jun 11 18:11:51 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- pcp/pcp.c.orig Sun Jun 11 18:09:22 2006
++++ pcp/pcp.c Sun Jun 11 18:10:18 2006
+@@ -276,7 +276,7 @@ void do_copy(char **argv, int recurse, i
+
+     rcp = getenv("RCP_CMD");
+     if (rcp == NULL)
+- rcp = strdup("rcp");
++ rcp = strdup("scp");
+     if (rcp == NULL)
+ bailout();
+     (void)snprintf(args, 64, " ");
diff -urN ../clusterit-old/patches/patch-rvt_rvt_c ./patches/patch-rvt_rvt_c
--- ../clusterit-old/patches/patch-rvt_rvt_c Wed Dec 31 18:00:00 1969
+++ ./patches/patch-rvt_rvt_c Sun Jun 11 17:18:30 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- rvt/rvt.c.orig Sun Jun 11 17:17:54 2006
++++ rvt/rvt.c Sun Jun 11 17:18:18 2006
+@@ -166,7 +166,7 @@ char **argv;
+ com_argv = (char**) cmalloc( (i+1) * sizeof(char**) );
+
+ command = getenv("RLOGIN_CMD");
+- if(command == NULL) command = "/usr/bin/rsh";
++ if(command == NULL) command = "/usr/bin/ssh";
+ i = 0;
+ com_argv[i++] = command;
+ if(remote_username != NULL)

clusterit.tgz (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/clusterit

steven mestdagh
Will Maier [2006-06-11, 18:33:54]:

> On Sun, Jun 11, 2006 at 11:30:13AM +0200, steven mestdagh wrote:
> > i had a very brief look at this, and think it would be more sane if it
> > used ssh/scp by default instead of rsh/rcp. maybe can you modify that?
>
> Sure. I agree -- I've never used rsh as the RCMD. Here's a patch
> (against the most recent tarball I posted) and updated tarball
> (since there are a couple versions of the port floating around).  I
> don't have access to a machine with X11 right now, but dsh/pcp test
> out fine on i386.
>
> Should the documentation be patched to reflect this change as well?

Yes.

--
steven

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/clusterit

Will Maier
On Mon, Jun 12, 2006 at 09:01:40AM +0200, steven mestdagh wrote:
> Will Maier [2006-06-11, 18:33:54]:
> > Should the documentation be patched to reflect this change as
> > well?
>
> Yes.

I've attached a diff against the most recent tarball that should fix
the docs as well. I don't think the author will be interested in
these changes, unfortunately, so this will probably stay local to
OpenBSD.

Testing and comments appreciated.

--

o--------------------------{ Will Maier }--------------------------o
| jabber:..[hidden email] | [hidden email] |
| freenode:..............lt_kije | freenode:........#madlug,#wilug |
*------------------[ BSD Unix: Live Free or Die ]------------------*

clusterit.diff (10K) Download Attachment