summaryrefslogtreecommitdiffstats
path: root/pki/base/ra
diff options
context:
space:
mode:
authormharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-11-07 02:07:44 +0000
committermharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-11-07 02:07:44 +0000
commit551ac1bf0836ec7ee873be112fe2beb4fb799a5a (patch)
tree7c420ef1a92c8a4692b8eb53bbb8ad004c4d6fae /pki/base/ra
parent8b7fac3f033143cd6bf53d94be8c398982a3af21 (diff)
downloadpki-551ac1bf0836ec7ee873be112fe2beb4fb799a5a.tar.gz
pki-551ac1bf0836ec7ee873be112fe2beb4fb799a5a.tar.xz
pki-551ac1bf0836ec7ee873be112fe2beb4fb799a5a.zip
Bugzilla Bug #533233 - Remove "pki*" scripts from pki-native-tools . . .
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@812 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/ra')
-rwxr-xr-xpki/base/ra/apache/apachectl2
-rwxr-xr-xpki/base/ra/etc/init.d/httpd21
-rwxr-xr-xpki/base/ra/lib/perl/PKI/Base/Conf.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/AdminAuthPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/AdminPanel.pm24
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/AgentAuthPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/AuthDBPanel.pm22
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/BasePanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/CAInfoPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/CertInfo.pm4
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/CertPrettyPrintPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/CertRequestPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/Common.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/Config.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/ConfigHSMLoginPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/ConfigHSMPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/DRMInfoPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/DatabasePanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/DisplayCertChain2Panel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/DisplayCertChainPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/DonePanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/GlobalVar.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/ImportAdminCertPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/Login.pm4
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/LoginPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/ModulePanel.pm4
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/Modutil.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/NamePanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/ReqCertInfo.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/SecurityDomainPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/SizePanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/SubsystemTypePanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/TKSInfoPanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/WelcomePanel.pm2
-rwxr-xr-xpki/base/ra/lib/perl/PKI/RA/wizard.pm4
-rwxr-xr-xpki/base/ra/lib/perl/Template/Velocity.pm2
-rwxr-xr-xpki/base/ra/scripts/nss_pcache44
37 files changed, 103 insertions, 82 deletions
diff --git a/pki/base/ra/apache/apachectl b/pki/base/ra/apache/apachectl
index d5474740e..7d9e24491 100755
--- a/pki/base/ra/apache/apachectl
+++ b/pki/base/ra/apache/apachectl
@@ -27,7 +27,7 @@ LD_LIBRARY_PATH=[SECURITY_LIBRARIES]:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
# see if httpd is linked with the openldap libraries - we need to override them
-OS=`pkiname`
+OS=`uname -s`
if [ $OS = "Linux" ]; then
hasopenldap=0
diff --git a/pki/base/ra/etc/init.d/httpd b/pki/base/ra/etc/init.d/httpd
index 40b551086..4f18cd136 100755
--- a/pki/base/ra/etc/init.d/httpd
+++ b/pki/base/ra/etc/init.d/httpd
@@ -38,26 +38,17 @@ if [ $? -ne 0 ] ; then
exit 255
fi
-# Check to insure that at least one PKI subsystem
-# currently resides on this system.
-if [ ! -x /usr/bin/pkiarch ] ||
- [ ! -x /usr/bin/pkiflavor ] ||
- [ ! -x /usr/bin/pkiname ]; then
- echo "This machine is missing all PKI subsystems!"
- exit 255
-fi
-
# Check to insure that this script's associated PKI
# subsystem currently resides on this system.
SUBSYSTEM_TYPE=[SUBSYSTEM_TYPE]
-if [ ! -d /usr/share/`pkiflavor`/${SUBSYSTEM_TYPE} ] ; then
+if [ ! -d /usr/share/pki/${SUBSYSTEM_TYPE} ] ; then
echo "This machine is missing the '${SUBSYSTEM_TYPE}' subsystem!"
exit 255
fi
# Obtain the operating system upon which this script is being executed
-OS=`pkiname`
-ARCHITECTURE=`pkiarch`
+OS=`uname -s`
+ARCHITECTURE=""
# Time to wait in seconds, before killing process
#
@@ -73,11 +64,17 @@ if [ ${OS} = "Linux" ] ; then
echo "Must be 'root' to execute '$0'!"
exit 1
fi
+ ARCHITECTURE=`uname -i`
elif [ ${OS} = "SunOS" ] ; then
if [ `/usr/xpg4/bin/id -u` -ne 0 ] ; then
echo "Must be 'root' to execute '$0'!"
exit 1
fi
+ ARCHITECTURE=`uname -p`
+ if [ "${ARCHITECTURE}" = "sparc" ] &&
+ [ -d "/usr/lib/sparcv9/" ] ; then
+ ARCHITECTURE="sparcv9"
+ fi
else
echo "Unsupported OS '${OS}'!"
exit 1
diff --git a/pki/base/ra/lib/perl/PKI/Base/Conf.pm b/pki/base/ra/lib/perl/PKI/Base/Conf.pm
index 7783eb8c6..895ab28a3 100755
--- a/pki/base/ra/lib/perl/PKI/Base/Conf.pm
+++ b/pki/base/ra/lib/perl/PKI/Base/Conf.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/AdminAuthPanel.pm b/pki/base/ra/lib/perl/PKI/RA/AdminAuthPanel.pm
index 4c30859c1..656dc2d5e 100755
--- a/pki/base/ra/lib/perl/PKI/RA/AdminAuthPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/AdminAuthPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/AdminPanel.pm b/pki/base/ra/lib/perl/PKI/RA/AdminPanel.pm
index e08032913..6cf1c69c4 100755
--- a/pki/base/ra/lib/perl/PKI/RA/AdminPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/AdminPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
@@ -168,16 +168,24 @@ sub update
my $tmp = "/tmp/addAgents-$$.ldif";
- my $flavor = `pkiflavor`;
+ my $flavor = "pki";
$flavor =~ s/\n//g;
my $mozldap_path = "/usr/lib/mozldap";
- my $arch = `pkiarch`;
- $arch =~ s/\n//g;
- if ($arch eq "x86_64") {
- $mozldap_path = "/usr/lib64/mozldap";
- } elsif ($arch eq "sparcv9") {
- $mozldap_path = "/usr/lib/sparcv9/mozldap6";
+ my $arch = "";
+ if ($^O eq "linux") {
+ $arch = `uname -i`;
+ $arch =~ s/\n//g;
+ if ($arch eq "x86_64") {
+ $mozldap_path = "/usr/lib64/mozldap";
+ }
+ } elsif ($^O eq "solaris") {
+ $arch=`uname -p`;
+ $arch =~ s/\n//g;
+ if( ( $arch eq "sparc" ) &&
+ ( -d "/usr/lib/sparcv9/" ) ) {
+ $mozldap_path = "/usr/lib/sparcv9/mozldap6";
+ }
}
# $admincert =~ s/\//\\\//g;
diff --git a/pki/base/ra/lib/perl/PKI/RA/AgentAuthPanel.pm b/pki/base/ra/lib/perl/PKI/RA/AgentAuthPanel.pm
index 257b925ae..1ada5ad54 100755
--- a/pki/base/ra/lib/perl/PKI/RA/AgentAuthPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/AgentAuthPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/AuthDBPanel.pm b/pki/base/ra/lib/perl/PKI/RA/AuthDBPanel.pm
index 9442035a6..0be17a388 100755
--- a/pki/base/ra/lib/perl/PKI/RA/AuthDBPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/AuthDBPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
@@ -90,12 +90,20 @@ sub update
# try to do a ldapsearch
my $tmp = "/tmp/file$$";
my $mozldap_path = "/usr/lib/mozldap";
- my $arch = `pkiarch`;
- $arch =~ s/\n//g;
- if ($arch eq "x86_64") {
- $mozldap_path = "/usr/lib64/mozldap";
- } elsif ($arch eq "sparcv9") {
- $mozldap_path = "/usr/lib/sparcv9/mozldap6";
+ my $arch = "";
+ if ($^O eq "linux") {
+ $arch = `uname -i`;
+ $arch =~ s/\n//g;
+ if ($arch eq "x86_64") {
+ $mozldap_path = "/usr/lib64/mozldap";
+ }
+ } elsif ($^O eq "solaris") {
+ $arch=`uname -p`;
+ $arch =~ s/\n//g;
+ if( ( $arch eq "sparc" ) &&
+ ( -d "/usr/lib/sparcv9/" ) ) {
+ $mozldap_path = "/usr/lib/sparcv9/mozldap6";
+ }
}
&PKI::RA::Wizard::debug_log("AuthDBPanel: invoking $mozldap_path/ldapsearch");
my $status = system("$mozldap_path/ldapsearch -h '$host' " .
diff --git a/pki/base/ra/lib/perl/PKI/RA/BasePanel.pm b/pki/base/ra/lib/perl/PKI/RA/BasePanel.pm
index 09b1d4b74..5cb4d7697 100755
--- a/pki/base/ra/lib/perl/PKI/RA/BasePanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/BasePanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/CAInfoPanel.pm b/pki/base/ra/lib/perl/PKI/RA/CAInfoPanel.pm
index d06e3daca..7e20e222d 100755
--- a/pki/base/ra/lib/perl/PKI/RA/CAInfoPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/CAInfoPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/CertInfo.pm b/pki/base/ra/lib/perl/PKI/RA/CertInfo.pm
index e4cc6328f..d1a8c3817 100755
--- a/pki/base/ra/lib/perl/PKI/RA/CertInfo.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/CertInfo.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
@@ -90,7 +90,7 @@ sub get_nickname
&PKI::RA::Wizard::debug_log("CertInfo: get_nickname");
my $nickname = $::config->get("preop.cert.$self->{tag}.nickname");
- my $flavor = `pkiflavor`;
+ my $flavor = "pki";
$flavor =~ s/\n//g;
if ($nickname ne "") {
diff --git a/pki/base/ra/lib/perl/PKI/RA/CertPrettyPrintPanel.pm b/pki/base/ra/lib/perl/PKI/RA/CertPrettyPrintPanel.pm
index c7eee3884..cf58d2327 100755
--- a/pki/base/ra/lib/perl/PKI/RA/CertPrettyPrintPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/CertPrettyPrintPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/CertRequestPanel.pm b/pki/base/ra/lib/perl/PKI/RA/CertRequestPanel.pm
index ab58610ec..51eb1d400 100755
--- a/pki/base/ra/lib/perl/PKI/RA/CertRequestPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/CertRequestPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/Common.pm b/pki/base/ra/lib/perl/PKI/RA/Common.pm
index 40b0bd6b2..8deab8c6c 100755
--- a/pki/base/ra/lib/perl/PKI/RA/Common.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/Common.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/Config.pm b/pki/base/ra/lib/perl/PKI/RA/Config.pm
index 6dab970bd..f1ace5b03 100755
--- a/pki/base/ra/lib/perl/PKI/RA/Config.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/Config.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/ConfigHSMLoginPanel.pm b/pki/base/ra/lib/perl/PKI/RA/ConfigHSMLoginPanel.pm
index 87e85dc5c..bf74890cc 100755
--- a/pki/base/ra/lib/perl/PKI/RA/ConfigHSMLoginPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/ConfigHSMLoginPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/ConfigHSMPanel.pm b/pki/base/ra/lib/perl/PKI/RA/ConfigHSMPanel.pm
index ed39cec0f..095ed5879 100755
--- a/pki/base/ra/lib/perl/PKI/RA/ConfigHSMPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/ConfigHSMPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/DRMInfoPanel.pm b/pki/base/ra/lib/perl/PKI/RA/DRMInfoPanel.pm
index 924fe0cb9..fadd7727c 100755
--- a/pki/base/ra/lib/perl/PKI/RA/DRMInfoPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/DRMInfoPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/DatabasePanel.pm b/pki/base/ra/lib/perl/PKI/RA/DatabasePanel.pm
index fe37de723..e469e51f8 100755
--- a/pki/base/ra/lib/perl/PKI/RA/DatabasePanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/DatabasePanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/DisplayCertChain2Panel.pm b/pki/base/ra/lib/perl/PKI/RA/DisplayCertChain2Panel.pm
index 5d209e065..46c8a2902 100755
--- a/pki/base/ra/lib/perl/PKI/RA/DisplayCertChain2Panel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/DisplayCertChain2Panel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/DisplayCertChainPanel.pm b/pki/base/ra/lib/perl/PKI/RA/DisplayCertChainPanel.pm
index 6c691eeb4..7789aaaba 100755
--- a/pki/base/ra/lib/perl/PKI/RA/DisplayCertChainPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/DisplayCertChainPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/DonePanel.pm b/pki/base/ra/lib/perl/PKI/RA/DonePanel.pm
index 87af739dd..c76f35c98 100755
--- a/pki/base/ra/lib/perl/PKI/RA/DonePanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/DonePanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/GlobalVar.pm b/pki/base/ra/lib/perl/PKI/RA/GlobalVar.pm
index bf7fae600..388a41349 100755
--- a/pki/base/ra/lib/perl/PKI/RA/GlobalVar.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/GlobalVar.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/ImportAdminCertPanel.pm b/pki/base/ra/lib/perl/PKI/RA/ImportAdminCertPanel.pm
index 80cbd523f..4ab51f1b7 100755
--- a/pki/base/ra/lib/perl/PKI/RA/ImportAdminCertPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/ImportAdminCertPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/Login.pm b/pki/base/ra/lib/perl/PKI/RA/Login.pm
index efd88827c..875df1a31 100755
--- a/pki/base/ra/lib/perl/PKI/RA/Login.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/Login.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
@@ -92,7 +92,7 @@ package PKI::RA::Login;
$PKI::RA::Login::VERSION = '1.00';
# read configuration file
-my $flavor = `pkiflavor`;
+my $flavor = "pki";
$flavor =~ s/\n//g;
my $pkiroot = $ENV{PKI_ROOT};
diff --git a/pki/base/ra/lib/perl/PKI/RA/LoginPanel.pm b/pki/base/ra/lib/perl/PKI/RA/LoginPanel.pm
index 211127401..66f40acfe 100755
--- a/pki/base/ra/lib/perl/PKI/RA/LoginPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/LoginPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/ModulePanel.pm b/pki/base/ra/lib/perl/PKI/RA/ModulePanel.pm
index 955c054bf..87ce056bc 100755
--- a/pki/base/ra/lib/perl/PKI/RA/ModulePanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/ModulePanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
@@ -49,7 +49,7 @@ sub new {
$self->{"update"} = \&update;
$self->{"panelvars"} = \&display;
- my $flavor = `pkiflavor`;
+ my $flavor = "pki";
$flavor =~ s/\n//g;
my $pkiroot = $ENV{PKI_ROOT};
diff --git a/pki/base/ra/lib/perl/PKI/RA/Modutil.pm b/pki/base/ra/lib/perl/PKI/RA/Modutil.pm
index 017978ba4..82c66e87d 100755
--- a/pki/base/ra/lib/perl/PKI/RA/Modutil.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/Modutil.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/NamePanel.pm b/pki/base/ra/lib/perl/PKI/RA/NamePanel.pm
index 221f93263..124d2f4b8 100755
--- a/pki/base/ra/lib/perl/PKI/RA/NamePanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/NamePanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/ReqCertInfo.pm b/pki/base/ra/lib/perl/PKI/RA/ReqCertInfo.pm
index 75fba5c42..51c22cd24 100755
--- a/pki/base/ra/lib/perl/PKI/RA/ReqCertInfo.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/ReqCertInfo.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/SecurityDomainPanel.pm b/pki/base/ra/lib/perl/PKI/RA/SecurityDomainPanel.pm
index 857f3a976..eb2631a9b 100755
--- a/pki/base/ra/lib/perl/PKI/RA/SecurityDomainPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/SecurityDomainPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/SizePanel.pm b/pki/base/ra/lib/perl/PKI/RA/SizePanel.pm
index 3a1ba77d6..f55dc41e9 100755
--- a/pki/base/ra/lib/perl/PKI/RA/SizePanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/SizePanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/SubsystemTypePanel.pm b/pki/base/ra/lib/perl/PKI/RA/SubsystemTypePanel.pm
index 4a0869420..3d946bca0 100755
--- a/pki/base/ra/lib/perl/PKI/RA/SubsystemTypePanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/SubsystemTypePanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/TKSInfoPanel.pm b/pki/base/ra/lib/perl/PKI/RA/TKSInfoPanel.pm
index 6a4f6b16e..ddf1124a9 100755
--- a/pki/base/ra/lib/perl/PKI/RA/TKSInfoPanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/TKSInfoPanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/WelcomePanel.pm b/pki/base/ra/lib/perl/PKI/RA/WelcomePanel.pm
index 43935530c..c88c138be 100755
--- a/pki/base/ra/lib/perl/PKI/RA/WelcomePanel.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/WelcomePanel.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/lib/perl/PKI/RA/wizard.pm b/pki/base/ra/lib/perl/PKI/RA/wizard.pm
index f6038de48..ecfe6dd3c 100755
--- a/pki/base/ra/lib/perl/PKI/RA/wizard.pm
+++ b/pki/base/ra/lib/perl/PKI/RA/wizard.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
@@ -89,7 +89,7 @@ package PKI::RA::Wizard;
$PKI::RA::Wizard::VERSION = '1.00';
# read configuration file
-my $flavor = `pkiflavor`;
+my $flavor = "pki";
$flavor =~ s/\n//g;
my $pkiroot = $ENV{PKI_ROOT};
diff --git a/pki/base/ra/lib/perl/Template/Velocity.pm b/pki/base/ra/lib/perl/Template/Velocity.pm
index cbfe8a588..848de65fd 100755
--- a/pki/base/ra/lib/perl/Template/Velocity.pm
+++ b/pki/base/ra/lib/perl/Template/Velocity.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/pkiperl
+#!/usr/bin/perl
#
# --- BEGIN COPYRIGHT BLOCK ---
# This program is free software; you can redistribute it and/or modify
diff --git a/pki/base/ra/scripts/nss_pcache b/pki/base/ra/scripts/nss_pcache
index 3e67881b9..bf978b48b 100755
--- a/pki/base/ra/scripts/nss_pcache
+++ b/pki/base/ra/scripts/nss_pcache
@@ -30,28 +30,36 @@ if [ $? -ne 0 ] ; then
exit 255
fi
-PLATFORM=`pkiarch`
+OS=`uname -s`
-if [ $PLATFORM = "i386" ]; then
- # 32-bit Linux
- LD_LIBRARY_PATH=/usr/lib/dirsec:/usr/lib:$LD_LIBRARY_PATH
-elif [ $PLATFORM = "x86_64" ]; then
- # 64-bit Linux
- LD_LIBRARY_PATH=/usr/lib64/dirsec:/usr/lib64:/usr/lib:$LD_LIBRARY_PATH
-elif [ $PLATFORM = "sparc" ]; then
- # 32-bit Solaris
- LD_LIBRARY_PATH=/usr/lib/dirsec:/usr/lib:$LD_LIBRARY_PATH
-elif [ $PLATFORM = "sparcv9" ]; then
- # 64-bit Solaris
- LD_LIBRARY_PATH=/usr/lib/sparcv9/dirsec:/usr/lib/sparcv9:/usr/lib/dirsec:/usr/lib:$LD_LIBRARY_PATH
+if [ $OS = "Linux" ]; then
+ PLATFORM=`uname -i`
+ if [ $PLATFORM = "i386" ]; then
+ # 32-bit Linux
+ LD_LIBRARY_PATH=/usr/lib/dirsec:/usr/lib:$LD_LIBRARY_PATH
+ elif [ $PLATFORM = "x86_64" ]; then
+ # 64-bit Linux
+ LD_LIBRARY_PATH=/usr/lib64/dirsec:/usr/lib64:/usr/lib:$LD_LIBRARY_PATH
+ fi
+ export LD_LIBRARY_PATH
+elif [ $OS = "SunOS" ]; then
+ PLATFORM=`uname -p`
+ if [ "${PLATFORM}" = "sparc" ] &&
+ [ -d "/usr/lib/sparcv9/" ] ; then
+ PLATFORM="sparcv9"
+ fi
+ if [ $PLATFORM = "sparc" ]; then
+ # 32-bit Solaris
+ LD_LIBRARY_PATH=/usr/lib/dirsec:/usr/lib:$LD_LIBRARY_PATH
+ elif [ $PLATFORM = "sparcv9" ]; then
+ # 64-bit Solaris
+ LD_LIBRARY_PATH=/usr/lib/sparcv9/dirsec:/usr/lib/sparcv9:/usr/lib/dirsec:/usr/lib:$LD_LIBRARY_PATH
+ fi
+ export LD_LIBRARY_PATH
fi
-export LD_LIBRARY_PATH
-DIST=`pkidist`
FORTITUDE_DIR=/usr/sbin
-if [ $DIST = "el4" ]; then
- FORTITUDE_DIR=/opt/fortitude/bin
-elif [ $DIST = "sol9" ]; then
+if [ $OS = "SunOS" ]; then
FORTITUDE_DIR=/opt/fortitude/bin
fi