FIXUPHACK 857 B

123456789101112131415161718192021222324252627
  1. LIBCRYPTO="`ls -1 usr/lib/libcrypto.so.* 2>/dev/null | head -n 1`"
  2. if [ "$LIBCRYPTO" ];then
  3. LIBCRYPTO="`basename $LIBCRYPTO`"
  4. ln -s $LIBCRYPTO usr/lib/libcrypto.so.0
  5. ln -s $LIBCRYPTO usr/lib/libcrypto.so.0.9.7
  6. ln -s $LIBCRYPTO usr/lib/libcrypto.so.0.9.8 #110619 fix for mageia 1
  7. else
  8. LIBCRYPTO="`ls -1 lib/libcrypto.so.* | head -n 1`"
  9. LIBCRYPTO="`basename $LIBCRYPTO`"
  10. ln -s $LIBCRYPTO lib/libcrypto.so.0
  11. ln -s $LIBCRYPTO lib/libcrypto.so.0.9.7
  12. fi
  13. LIBSSL="`ls -1 usr/lib/libssl.so.* 2>/dev/null | head -n 1`"
  14. if [ "$LIBSSL" ];then
  15. LIBSSL="`basename $LIBSSL`"
  16. ln -s $LIBSSL usr/lib/libssl.so.0
  17. ln -s $LIBSSL usr/lib/libssl.so.0.9.7
  18. ln -s $LIBSSL usr/lib/libssl.so.0.9.8 #110619 fix for mageia 1
  19. else
  20. LIBSSL="`ls -1 lib/libssl.so.* | head -n 1`"
  21. LIBSSL="`basename $LIBSSL`"
  22. ln -s $LIBSSL lib/libssl.so.0
  23. ln -s $LIBSSL lib/libssl.so.0.9.7
  24. fi