]> andersk Git - gssapi-openssh.git/commitdiff
o Add relative paths to the beginning of the original package build
authorcphillip <cphillip>
Mon, 15 Apr 2002 22:11:08 +0000 (22:11 +0000)
committercphillip <cphillip>
Mon, 15 Apr 2002 22:11:08 +0000 (22:11 +0000)
      steps.

setup/pkg_data_src.gpt
setup/setup-openssh.pl

index dbf2551176caa034bfa77072a02461c1b6317c4d..4bfc0ec55dd634a8e60bde9469f0c7a2ef6d53f8 100644 (file)
       <COMMENT> things break, that's what </COMMENT>
 
       <Build_Step>mkdir -p INSTALLDIR_GPTMACRO/setup/globus</Build_Step>
-      <Build_Step>cp setup-openssh INSTALLDIR_GPTMACRO/setup/globus/setup-openssh</Build_Step>
-      <Build_Step>cp setup-openssh.pl INSTALLDIR_GPTMACRO/setup/globus/setup-openssh.pl</Build_Step>
-      <Build_Step>cp ssh_config INSTALLDIR_GPTMACRO/setup/globus/ssh_config</Build_Step>
-      <Build_Step>cp sshd_config INSTALLDIR_GPTMACRO/setup/globus/sshd_config</Build_Step>
-      <Build_Step>cp moduli INSTALLDIR_GPTMACRO/setup/globus/moduli</Build_Step>
+      <Build_Step>cp ./setup-openssh INSTALLDIR_GPTMACRO/setup/globus/setup-openssh</Build_Step>
+      <Build_Step>cp ./setup-openssh.pl INSTALLDIR_GPTMACRO/setup/globus/setup-openssh.pl</Build_Step>
+      <Build_Step>cp ./ssh_config INSTALLDIR_GPTMACRO/setup/globus/ssh_config</Build_Step>
+      <Build_Step>cp ./sshd_config INSTALLDIR_GPTMACRO/setup/globus/sshd_config</Build_Step>
+      <Build_Step>cp ./moduli INSTALLDIR_GPTMACRO/setup/globus/moduli</Build_Step>
 
       <Build_Step>mkdir -p INSTALLDIR_GPTMACRO/share/gsi-openssh/contrib</Build_Step>
 
index 05d393635e1c9e76800f57578bb657902e71e6f1..d703bf30dbf2e259c831f60103e10ccafaf6115f 100644 (file)
@@ -331,6 +331,65 @@ sub fixpaths
     return 0;
 }
 
+sub fixGlobusLocation
+{
+    $data = readFile($initfile);
+    $data =~ s|@GLOBUS_LOCATION@|$gpath|g;
+    writeFile($data);
+}
+
+### readFile( $filename )
+#
+# reads and returns $filename's contents
+#
+
+sub readFile
+{
+    my ($filename) = @_;
+    my $data;
+
+    open (IN, "$filename") || die "Can't open '$filename': $!";
+    $/ = undef;
+    $data = <IN>;
+    $/ = "\n";
+    close(IN);
+
+    return $data;
+}
+
+### writeFile( $filename, $fileinput )
+#
+# create the inputs to the ssl program at $filename, appending the common name to the
+# stream in the process
+#
+
+sub writeFile
+{
+    my ($filename, $fileinput) = @_;
+
+    #
+    # test for a valid $filename
+    #
+
+    if ( !defined($filename) || (length($filename) lt 1) )
+    {
+        die "Filename is undefined";
+    }
+
+    if ( ( -e "$filename" ) && ( ! -w "$filename" ) )
+    {
+        die "Cannot write to filename '$filename'";
+    }
+
+    #
+    # write the output to $filename
+    #
+
+    open(OUT, ">$filename");
+    print OUT "$fileinput";
+    close(OUT);
+}
+
 print "---------------------------------------------------------------\n";
 print "Hi, I'm the setup script for the gsi_openssh package!  There\n";
 print "are some last minute details that I've got to set straight\n";
This page took 0.044201 seconds and 5 git commands to generate.