summaryrefslogtreecommitdiffstats
path: root/pki/base/setup
diff options
context:
space:
mode:
authorjdennis <jdennis@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-11-19 20:53:52 +0000
committerjdennis <jdennis@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-11-19 20:53:52 +0000
commitc668eaa9b9cc165063cc8df11a6a38730b96849b (patch)
tree772510e359e0c3782a81e066e16e6c1084b813bb /pki/base/setup
parent9623e3e47d623bc13967e6616736235a7ada5417 (diff)
downloadpki-c668eaa9b9cc165063cc8df11a6a38730b96849b.tar.gz
pki-c668eaa9b9cc165063cc8df11a6a38730b96849b.tar.xz
pki-c668eaa9b9cc165063cc8df11a6a38730b96849b.zip
Remove support for other OS's
The modifications to the install scripts have been Linux specific. So much has changed it's reasonable to assume the special case code for other OS's (e.g. Solaris and Windows) is not likely to be correct any more. As a consequence there isn't much sense in keeping this OS specific code. To support other OS's the scripts would really need to be ported to the target OS and it probably would be best to do this cleanly by starting fresh and incrementally adding back in OS specific exceptions. Note: Only OS specific code which obviously needed porting after the update to the scripts was removed. The OS specific code which was "generic" has been preserved. Plus, management has stated the other OS's are no longer supported. git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1553 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/setup')
-rwxr-xr-xpki/base/setup/pkicommon42
-rwxr-xr-xpki/base/setup/pkicreate89
2 files changed, 22 insertions, 109 deletions
diff --git a/pki/base/setup/pkicommon b/pki/base/setup/pkicommon
index 9f00971f..d070b634 100755
--- a/pki/base/setup/pkicommon
+++ b/pki/base/setup/pkicommon
@@ -133,48 +133,6 @@ if ($^O eq "linux") {
# IPv4: Retrieve hostname using Sys::Hostname
$hostname = hostname;
}
-} elsif ($^O eq "solaris") {
- $default_hardware_platform = `uname -p`;
- $default_hardware_platform =~ s/\s+$//g;
- chomp($default_hardware_platform);
-
- if (($default_hardware_platform eq "sparc") &&
- (-d "/usr/lib/sparcv9/")) {
- $default_hardware_platform = "sparcv9";
- }
-
- if ($default_hardware_platform eq "sparc") {
- # 32-bit Solaris
- $default_system_binaries = "/bin";
- $default_system_libraries = "/lib";
- $default_system_user_binaries = "/usr/bin";
- $default_system_user_libraries = "/usr/lib";
- $default_system_jni_java_path = "/usr/lib/java";
- } elsif ($default_hardware_platform eq "sparcv9") {
- # 64-bit Solaris
- $default_system_binaries = "/bin";
- $default_system_libraries = "/lib/sparcv9";
- $default_system_user_binaries = "/usr/bin";
- $default_system_user_libraries = "/usr/lib/sparcv9";
- $default_system_jni_java_path = "/usr/lib/java";
- } else {
- print(STDERR
- "ERROR: Unsupported '$^O' hardware platform "
- . "'$default_hardware_platform'!\n");
- print("\n");
- exit 255;
- }
-
- # Retrieve hostname
- # (unfortunately, pkgadd doesn't process all environment variables)
- if (-f "/tmp/PKI_HOSTNAME") {
- # IPv6: Retrieve hostname from file
- $hostname = `cat /tmp/PKI_HOSTNAME`;
- $is_IPv6 = 1;
- } else {
- # IPv4: Retrieve hostname using Sys::Hostname
- $hostname = hostname;
- }
} else {
print(STDERR
"ERROR: Unsupported platform '$^O'!\n");
diff --git a/pki/base/setup/pkicreate b/pki/base/setup/pkicreate
index fcfdda0e..49eafac6 100755
--- a/pki/base/setup/pkicreate
+++ b/pki/base/setup/pkicreate
@@ -90,16 +90,6 @@ if (defined($ENV{'DONT_RUN_PKICREATE'})) {
}
}
-# additional option to not run this script on Solaris
-# (unfortunately, pkgadd doesn't process all environment variables)
-if ($^O eq "solaris") {
- if (-f "/tmp/DONT_RUN_PKICREATE") {
- print(STDERR "File DONT_RUN_PKICREATE exists. Exiting.\n");
- print(STDOUT "\n");
- exit 0;
- }
-}
-
# untaint called subroutines
if (($^O ne 'Windows_NT') && ($^O ne 'MSWin32')) {
$> = $<; # set effective user ID to real UID
@@ -124,8 +114,6 @@ my $ARGS = ($#ARGV + 1);
my $pki_flavor = "";
if ($^O eq "linux") {
$pki_flavor = "pki";
-} elsif ($^O eq "solaris") {
- $pki_flavor = "pki";
} else {
print(STDERR
"ERROR: Unsupported platform '$^O'!\n");
@@ -623,49 +611,23 @@ if ($^O eq "linux") {
# Supported hardware token PKCS #11 modules
%supported_sec_modules_hash = ("lunasa",
- "/usr/lunasa/lib/libCryptoki2.so",
- "nfast",
- "/opt/nfast/toolkits/pkcs11/libcknfast.so"
-);
+ "/usr/lunasa/lib/libCryptoki2.so",
+ "nfast",
+ "/opt/nfast/toolkits/pkcs11/libcknfast.so"
+ );
} elsif ($default_hardware_platform eq "x86_64") {
# 64-bit Linux
# Supported hardware token PKCS #11 modules
%supported_sec_modules_hash = ("lunasa",
- "/usr/lunasa/lib/libCryptoki2.so",
- "nfast",
- "/opt/nfast/toolkits/pkcs11/libcknfast.so"
-);
- } else {
- print(STDERR
- "ERROR: Unsupported '$^O' hardware platform "
- . "'$default_hardware_platform'!\n");
- print("\n");
- exit 255;
- }
-} elsif ($^O eq "solaris") {
- if ($default_hardware_platform eq "sparc") {
- # 32-bit Solaris
-
- # Supported hardware token PKCS #11 modules
- %supported_sec_modules_hash = ("lunasa",
- "/usr/lunasa/lib/libCryptoki2.so",
- "nfast",
- "/opt/nfast/toolkits/pkcs11/libcknfast-32.so"
-);
- } elsif ($default_hardware_platform eq "sparcv9") {
- # 64-bit Solaris
-
- # Supported hardware token PKCS #11 modules
- %supported_sec_modules_hash = ("lunasa",
- "/usr/lunasa/lib/libCryptoki2.so",
- "nfast",
- "/opt/nfast/toolkits/pkcs11/libcknfast-64.so"
-);
+ "/usr/lunasa/lib/libCryptoki2.so",
+ "nfast",
+ "/opt/nfast/toolkits/pkcs11/libcknfast.so"
+ );
} else {
print(STDERR
- "ERROR: Unsupported '$^O' hardware platform "
- . "'$default_hardware_platform'!\n");
+ "ERROR: Unsupported '$^O' hardware platform "
+ . "'$default_hardware_platform'!\n");
print("\n");
exit 255;
}
@@ -1454,10 +1416,8 @@ sub initialize_subsystem_paths()
. "/" . $etc_base_subsystem_dir;
$logs_subsystem_path = $pki_subsystem_path
. "/" . $logs_base_subsystem_dir;
- if ($^O eq "linux") {
- $setup_subsystem_path = $pki_subsystem_path
- . "/" . $setup_base_subsystem_dir;
- }
+ $setup_subsystem_path = $pki_subsystem_path
+ . "/" . $setup_base_subsystem_dir;
$pki_registry_path = $default_registry_path
. "/" . $pki_flavor;
@@ -1635,15 +1595,13 @@ sub initialize_instance_symlink_paths()
sub initialize_subdirectory_paths()
{
## Initialize subdirectory paths (subsystem independent)
- $pki_cfg_subsystem_file_path = $conf_subsystem_path
- . "/" . $pki_cfg_base_name;
- if ($^O eq "linux") {
- $setup_config_instance_file_path = $setup_config_area
- . "/" . $pki_instance_name
- . "-" . $setup_config_name;
- $setup_config_subsystem_file_path = $setup_subsystem_path
- . "/" . $setup_config_name;
- }
+ $pki_cfg_subsystem_file_path = $conf_subsystem_path
+ . "/" . $pki_cfg_base_name;
+ $setup_config_instance_file_path = $setup_config_area
+ . "/" . $pki_instance_name
+ . "-" . $setup_config_name;
+ $setup_config_subsystem_file_path = $setup_subsystem_path
+ . "/" . $setup_config_name;
$pki_registry_initscript = get_registry_initscript_name($subsystem_type);
@@ -2400,8 +2358,8 @@ LoadModule nss_module /opt/fortitude/modules.local/libmodnss.so
# process "config.desktop" template
return 0 if !process_file_template("setup_config",
$setup_config_subsystem_file_path,
- $setup_config_instance_file_path,
- \%slot_hash);
+ $setup_config_instance_file_path,
+ \%slot_hash);
}
@@ -3095,10 +3053,7 @@ ASK_AGAIN:
print(STDOUT "Installation information recorded in $logfile.\n");
- # Activate this instance
- if ($^O eq "linux") {
- $pki_registry_initscript_command = "/sbin/service $pki_registry_initscript restart $pki_instance_name";
- }
+ $pki_registry_initscript_command = "/sbin/service $pki_registry_initscript restart $pki_instance_name";
$command = "${pki_registry_initscript_command}";
run_command($command);