openbsd-ports/astro/sattrack/patches/patch-run_getsts

36 lines
842 B
Plaintext
Raw Normal View History

$OpenBSD: patch-run_getsts,v 1.2 2007/12/18 09:08:24 ajacoutot Exp $
--- run/getsts.orig Tue Jan 14 20:21:06 1997
+++ run/getsts Tue Dec 18 09:53:05 2007
@@ -24,19 +24,22 @@
#
set stsnum=81
set prelaunch=0
-set ftphost=192.149.89.61
-set satdir=/home/manfred
-set satuser=manfred
+set ftphost=spacelink.msfc.nasa.gov
+set satdir=__PREFIX__/lib
+set satuser=sattrack
#
#
#
-set userid=$USER@`hostname`.`domainname`
+set hostdot=`hostname | grep '\.'`
+if ("$hostdot" == "") then
+ set userid=$USER@`hostname`.`domainname`
+else
+ set userid=$USER@`hostname`
+endif
#
-if ($USER == $satuser) then
- set satdirusr=$satdir
- else
- set satdirusr=$HOME
- mkdir -p $HOME/SatTrack/tle
+set satdirusr=$satdir
+if (! -d $satdirusr/SatTrack/tle) then
+ mkdir -p $satdirusr/SatTrack/tle
endif
#
cd $satdirusr/SatTrack/tle