From 1b5630feea4fcd513e1e6b80c87cc6cd4e52e0d7 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 21 Oct 2007 16:01:32 -0300 Subject: [PATCH] Fixed googleearth installation, including the broken etc/profile.d/googleearth file --- network/googleearth/googleearth.conf | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/network/googleearth/googleearth.conf b/network/googleearth/googleearth.conf index b178cc001..aa463c7a3 100644 --- a/network/googleearth/googleearth.conf +++ b/network/googleearth/googleearth.conf @@ -34,19 +34,21 @@ googleearth_extract() { 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. mkdir -pv $root/$prefix/google-earth - tar -xvf googleearth/googleearth-linux-x86.tar -C $root/$prefix/google-earth - tar -xvf googleearth/googleearth-data.tar -C $root/$prefix/google-earth - mkdir -pv $root/$prefix/bin - install -m 755 googleearth/bin/* $root/$prefix/bin + tar -xvf googleearth-linux-x86.tar -C $root/$prefix/google-earth + tar -xvf googleearth-data.tar -C $root/$prefix/google-earth - # Install documentation. - cp -vf googleearth/*.html $docdir + install -m 755 bin/* $root$bindir/ # Make sure the necessary environment vars will be set.h - echo "export GOOGLEEARTH_DATA_PATH=$root/$prefix/google-earth" > \ - $sysconfdir/profile.d/googleearth + cat <<-EOT > $root/etc/profile.d/googleearth + + export GOOGLEEARTH_DATA_PATH="/$prefix/google-earth" + EOT }