Browse Source

Fixed googleearth installation, including the broken etc/profile.d/googleearth file

early
Alejandro Mery 18 years ago
parent
commit
1b5630feea
  1. 20
      network/googleearth/googleearth.conf

20
network/googleearth/googleearth.conf

@ -34,19 +34,21 @@ googleearth_extract() {
tail --bytes $filesizes $1 | tar -v $taropt - -C googleearth > untar.txt tail --bytes $filesizes $1 | tar -v $taropt - -C googleearth > untar.txt
} }
install_googleearth(){ makeopt=
makeinstopt=
hook_add postmake 5 'googleearth_install'
googleearth_install() {
# Do the actual installation. # Do the actual installation.
mkdir -pv $root/$prefix/google-earth mkdir -pv $root/$prefix/google-earth
tar -xvf googleearth/googleearth-linux-x86.tar -C $root/$prefix/google-earth tar -xvf googleearth-linux-x86.tar -C $root/$prefix/google-earth
tar -xvf googleearth/googleearth-data.tar -C $root/$prefix/google-earth tar -xvf googleearth-data.tar -C $root/$prefix/google-earth
mkdir -pv $root/$prefix/bin
install -m 755 googleearth/bin/* $root/$prefix/bin
# Install documentation. install -m 755 bin/* $root$bindir/
cp -vf googleearth/*.html $docdir
# Make sure the necessary environment vars will be set.h # Make sure the necessary environment vars will be set.h
echo "export GOOGLEEARTH_DATA_PATH=$root/$prefix/google-earth" > \ cat <<-EOT > $root/etc/profile.d/googleearth
$sysconfdir/profile.d/googleearth
export GOOGLEEARTH_DATA_PATH="/$prefix/google-earth"
EOT
} }

Loading…
Cancel
Save