From 53a54c67460ca1d515eff78cab61892f026a629d Mon Sep 17 00:00:00 2001 From: cphillip Date: Fri, 11 Jan 2002 21:39:35 +0000 Subject: [PATCH] Modify setup-openssh.pl to call metadata and add pkgdata for the gpt setup bundle. --- setup/pkg_data_src.gpt | 37 +++++++++++++++++++++++++++++++++++++ setup/setup-openssh.pl | 16 ++++++++-------- 2 files changed, 45 insertions(+), 8 deletions(-) create mode 100644 setup/pkg_data_src.gpt diff --git a/setup/pkg_data_src.gpt b/setup/pkg_data_src.gpt new file mode 100644 index 0000000..94b81a2 --- /dev/null +++ b/setup/pkg_data_src.gpt @@ -0,0 +1,37 @@ + + + + + + + GSI binary package openssh version 3.0.2p1 with patches (setup) + gsi-openssh + + + + + 3.0.2p1 + + + + what happens if INSTALLDIR_GPTMACRO/setup doesn't exist? + cp setup-openssh INSTALLDIR_GPTMACRO/setup/setup-openssh + cp setup-openssh.pl INSTALLDIR_GPTMACRO/setup/setup-openssh.pl + + + + + setup-openssh + + + + You need to run setup-openssh + + + + + + + + + diff --git a/setup/setup-openssh.pl b/setup/setup-openssh.pl index 9e67f03..639c3c1 100644 --- a/setup/setup-openssh.pl +++ b/setup/setup-openssh.pl @@ -6,14 +6,14 @@ # adapted from 'fixpath', located in the openssh-3.0.2p1 package # -my $gpath = $ENV{GPT_LOCATION}; -if (!defined($gpath)) -{ - $gpath = $ENV{GLOBUS_LCATION}; -} +require Grid::GPT::Setup; + +my $metadata = new Grid::GPT::Setup(package_name => "gsi-openssh-setup"); + +$gpath = $ENV{GLOBUS_LCATION}; if (!defined($gpath)) { - die "GPT_LOCATION or GLOBUS_LOCATION needs to be set before running this script" + die "GLOBUS_LOCATION needs to be set before running this script" } # @@ -90,7 +90,7 @@ sub fixpaths $f =~ /(.*\/)*(.*)$/; $g = "$f.tmp"; - $result = system("cp $f $g"); + $result = system("mv $f $g"); if ($result != 0) { die "Failed to copy $f to $g!\n"; @@ -160,4 +160,4 @@ sub runkeygen fixpaths(); runkeygen(); -exit 0; +$metadata->finish(); -- 2.45.1