OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../googleearth/googleearth.conf
  5. # Copyright (C) 2007 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. # comes as script with a bzip2 at the end so we need to find out
  15. # how many bytes the archive is and then extract it using tail
  16. install_googleearth(){
  17. if [ $prefix_auto = 1 ] ; then
  18. prefix="opt/google"
  19. fi
  20. googleebin="archdir/GoogleEarthLinux-*.bin"
  21. binsize=$(strings $googleebin |grep "filesizes="|head -n 1|sed 's,[^0-9],,g')
  22. mkdir googleearth
  23. tail --bytes $binsize $googleebin | tar -xjf - -C googleearth
  24. if [ ! -d $root/$prefix/google-earth ];then
  25. mkdir -pv $root/$prefix/google-earth
  26. fi
  27. tar -xvf googleearth/googleearth-linux-x86.tar -C $root/$prefix/google-earth
  28. tar -xvf googleearth/googleearth-data.tar -C $root/$prefix/google-earth
  29. if [ ! -d $root/$prefix/bin ];then
  30. mkdir -v $root/$prefix/bin
  31. fi
  32. install -m 755 googleearth/bin/* $root/$prefix/bin
  33. cp -vf googleearth/*.html $docdir
  34. echo "export GOOGLEEARTH_DATA_PATH=$root/$prefix/google-earth" > \
  35. $sysconfdir/profile.d/googleearth
  36. }
  37. autoextract=0
  38. custmain="install_googleearth"