duncs / clusterssh

Cluster SSH - Cluster Admin Via SSH
https://github.com/duncs/clusterssh/wiki
897 stars 79 forks source link

Can't find a way to set instalation prefix as in 3.x #12

Closed denydias closed 10 years ago

denydias commented 10 years ago

Hi, @duncs.

When compiling ClusterSSH 3.x, I could set a prefix installation directory with something like this:

# ./configure --prefix=/usr
# make
# make install DESTDIR=$PKG

How can I get the same with the new 4.x build process? This is particularly useful to make packages good for distros.

levaidaniel commented 10 years ago

You can do it like this, for example:

perl Build.PL \
  prefix=/usr \
  installdirs=vendor \
  destdir=<destination directory>
./Build
./Build test
./Build install \
  --install_path bindoc=/usr/man/man1 \
  --install_path libdoc=/usr/man/man3

This is just an example, you should replace the directories with your values.

denydias commented 10 years ago

Great, @levaidaniel!

The parameters you pointed out worked perfectly in the CLI. I'll now script them properly so I can package ClusterSSH 4.x to Slackware as soon as @duncs solves the failed tests in #11.

Thank you very much!

I'm closing this issue now.

levaidaniel commented 10 years ago

Oh, I see just now that the problem I've reported in #13 is the same as #11. Btw, slackbuilds.org has had a ClusterSSH slackbuild for a while now; you should check that out :)

denydias commented 10 years ago

@levaidaniel, yeah! And you are the maintainer for that SlackBuild! :)

The reason why I have a SlackBuild and not using yours is because the ClusterSSH 4.02 suffers from the issue #7. For that reason, I have my own SlackBuild for 3.28. I'm waiting for a fix for #11 so I can upgrade it for 4.03_02. But as we are stuck in the same place and both in Slackware, I'm going to drop my SlackBuild in favor of your 'official' one as soon as the fix hit the streets.

denydias commented 10 years ago

@levaidaniel, just to let you and everybody know I'm wrong. Your SlackBuild works perfectly! The ClusterSSH 4.02 do not suffer from issue #7. I'm going to drop my SlackBuild now.