diff options
author | Mark Phalan <Mark.Phalan@Sun.COM> | 2009-08-20 02:13:19 -0700 |
---|---|---|
committer | Mark Phalan <Mark.Phalan@Sun.COM> | 2009-08-20 02:13:19 -0700 |
commit | f81dfbde2254c26bfd91dda1ce160868d5639804 (patch) | |
tree | 47c1589edd38dfcb5753a434f530f81bec990463 /usr/src | |
parent | 368517c9b30f21202bd7c9e2c31cd6e5a0fb3aa7 (diff) | |
download | illumos-gate-f81dfbde2254c26bfd91dda1ce160868d5639804.tar.gz |
6861019 BFU needs to be updated for the OpenSSL move out of /usr/sfw
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/tools/scripts/bfu.sh | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/usr/src/tools/scripts/bfu.sh b/usr/src/tools/scripts/bfu.sh index d301b42875..39fe39c165 100644 --- a/usr/src/tools/scripts/bfu.sh +++ b/usr/src/tools/scripts/bfu.sh @@ -7876,6 +7876,54 @@ mondo_loop() { rm -f $root/dev/sr[0-9]* rm -f $root/dev/rsr[0-9]* + # + # The pkg* commands should not be used after this point and before + # archive extraction as libcrypto/libssl may not be available. + # + # Remove old OpenSSL from /usr/sfw. + if [[ -f $root/lib/libcrypto.so.0.9.8 ]] || + archive_file_exists generic.lib "lib/libcrypto.so.0.9.8"; then + + # SUNWopenssl-libraries + rm -f $root/usr/sfw/lib/libcrypto.so + rm -f $root/usr/sfw/lib/libcrypto.so.0.9.8 + rm -f $root/usr/sfw/lib/llib-lcrypto + rm -f $root/usr/sfw/lib/llib-lcrypto.ln + rm -f $root/usr/sfw/lib/libssl.so + rm -f $root/usr/sfw/lib/libssl.so.0.9.8 + rm -f $root/usr/sfw/lib/llib-lssl + rm -f $root/usr/sfw/lib/llib-lssl.ln + rm -f $root/usr/sfw/lib/amd64/libcrypto.so + rm -f $root/usr/sfw/lib/amd64/libcrypto.so.0.9.8 + rm -f $root/usr/sfw/lib/amd64/llib-lcrypto.ln + rm -f $root/usr/sfw/lib/amd64/libssl.so + rm -f $root/usr/sfw/lib/amd64/libssl.so.0.9.8 + rm -f $root/usr/sfw/lib/amd64/llib-lssl.ln + rm -f $root/usr/sfw/lib/sparcv9/libcrypto.so + rm -f $root/usr/sfw/lib/sparcv9/libcrypto.so.0.9.8 + rm -f $root/usr/sfw/lib/sparcv9/llib-lcrypto.ln + rm -f $root/usr/sfw/lib/sparcv9/libssl.so + rm -f $root/usr/sfw/lib/sparcv9/libssl.so.0.9.8 + rm -f $root/usr/sfw/lib/sparcv9/llib-lssl.ln + + # SUNWopenssl-commands + rm -f $root/usr/sfw/bin/CA.pl + + # SUNWopenssl-include + rm -rf $root/usr/sfw/include/openssl + + # SUNWopenssl-man + # Listing the man pages individually would add about 1000 + # lines so it's simpler to pull them out of the package db. + opensslman=$(nawk -F '[ =]'\ + '/usr\/sfw\/share\/man.* [fs] .*SUNWopenssl-man/ {print $1}' \ + $root/var/sadm/install/contents) + for manpage in $opensslman + do + rm -f $root/$manpage + done + fi + # End of pre-archive extraction hacks. if [ $diskless = no -a $zone = global ]; then |