openbsd-ports/astro/sattrack/patches/patch-run_gettle
ajacoutot f95a4dc560 - use a V version variable
- tweak WRKDIST and WRKSRC and regen patches accordingly
- simplify substitution in pre-configure
no package change
2007-12-18 09:08:24 +00:00

34 lines
750 B
Plaintext

$OpenBSD: patch-run_gettle,v 1.2 2007/12/18 09:08:24 ajacoutot Exp $
--- run/gettle.orig Wed Mar 15 05:26:06 1995
+++ run/gettle Tue Dec 18 09:53:05 2007
@@ -24,18 +24,21 @@
#
#
#
-set ftphost=129.92.1.66
-set satdir=/home/manfred
-set satuser=manfred
+set ftphost=archive.afit.af.mil
+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
+set satdirusr=$satdir
+if (! -d $satdirusr/SatTrack/tle) then
mkdir -p $satdirusr/SatTrack/tle
endif
#