aboutsummaryrefslogtreecommitdiff
path: root/astro/sattrack
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1996-04-09 06:03:52 +0000
committerSatoshi Asami <asami@FreeBSD.org>1996-04-09 06:03:52 +0000
commita159a5cb3cab74fb8f6b6c1bbcb32b154aa699c0 (patch)
tree6276b9197fda5708c198be991a20bc73d784de4c /astro/sattrack
parentd42166c3671c2e3970e697657180252745349265 (diff)
downloadports-a159a5cb3cab74fb8f6b6c1bbcb32b154aa699c0.tar.gz
ports-a159a5cb3cab74fb8f6b6c1bbcb32b154aa699c0.zip
Notes
Diffstat (limited to 'astro/sattrack')
-rw-r--r--astro/sattrack/Makefile18
-rw-r--r--astro/sattrack/distinfo1
-rw-r--r--astro/sattrack/files/patch-aa276
-rw-r--r--astro/sattrack/pkg-comment1
-rw-r--r--astro/sattrack/pkg-descr15
-rw-r--r--astro/sattrack/pkg-plist80
-rw-r--r--astro/sattrack/scripts/post-patch49
7 files changed, 440 insertions, 0 deletions
diff --git a/astro/sattrack/Makefile b/astro/sattrack/Makefile
new file mode 100644
index 000000000000..55826a7436e5
--- /dev/null
+++ b/astro/sattrack/Makefile
@@ -0,0 +1,18 @@
+# New ports collection makefile for: sattrack
+# Version required: 3.1.4
+# Date created: 6 Apr 1996
+# Whom: Brent J. Nordquist <nordquist@platinum.com>
+#
+# $Id$
+#
+
+DISTNAME= sattrack-3.1.4
+CATEGORIES+= misc
+MASTER_SITES= http://ssl.berkeley.edu/isi_www/
+
+MAINTAINER= nordquist@platinum.com
+
+WRKSRC= ${WRKDIR}/SatTrack/src
+MAKE_FLAGS= PREFIX=${PREFIX} -f
+
+.include <bsd.port.mk>
diff --git a/astro/sattrack/distinfo b/astro/sattrack/distinfo
new file mode 100644
index 000000000000..0b2d8824f4af
--- /dev/null
+++ b/astro/sattrack/distinfo
@@ -0,0 +1 @@
+MD5 (sattrack-3.1.4.tar.gz) = bb3f605e5c30c09c46b0b10854f147cd
diff --git a/astro/sattrack/files/patch-aa b/astro/sattrack/files/patch-aa
new file mode 100644
index 000000000000..36cc56c8abad
--- /dev/null
+++ b/astro/sattrack/files/patch-aa
@@ -0,0 +1,276 @@
+diff -c -r -P ../run/getsts ../../SatTrack-FreeBSD/run/getsts
+*** ../run/getsts Wed Mar 29 00:10:16 1995
+--- ../../SatTrack-FreeBSD/run/getsts Sat Apr 6 22:09:38 1996
+***************
+*** 28,46 ****
+ set stsnum=71
+ set prelaunch=1
+ set mir=1
+! set ftphost=192.149.89.61
+! set satdir=/home/manfred
+! set satuser=manfred
+ #
+ #
+ #
+! set userid=$USER@`hostname`.`domainname`
+ #
+! if ($USER == $satuser) then
+! set satdirusr=$satdir
+! else
+! set satdirusr=$HOME
+! mkdir -p $HOME/SatTrack/tle
+ endif
+ #
+ cd $satdirusr/SatTrack/tle
+--- 28,44 ----
+ set stsnum=71
+ set prelaunch=1
+ set mir=1
+! set ftphost=spacelink.msfc.nasa.gov
+! set satdir=/usr/local/lib
+! set satuser=sattrack
+ #
+ #
+ #
+! set userid=$USER@`hostname`
+ #
+! set satdirusr=$satdir
+! if (! -d $satdiruser/SatTrack/tle) then
+! mkdir -p $satdirusr/SatTrack/tle
+ endif
+ #
+ cd $satdirusr/SatTrack/tle
+diff -c -r -P ../run/gettle ../../SatTrack-FreeBSD/run/gettle
+*** ../run/gettle Wed Mar 15 04:26:06 1995
+--- ../../SatTrack-FreeBSD/run/gettle Sat Apr 6 21:20:43 1996
+***************
+*** 24,41 ****
+ #
+ #
+ #
+! set ftphost=129.92.1.66
+! set satdir=/home/manfred
+! set satuser=manfred
+ #
+ #
+ #
+! set userid=$USER@`hostname`.`domainname`
+ #
+! if ($USER == $satuser) then
+! set satdirusr=$satdir
+! else
+! set satdirusr=$HOME
+ mkdir -p $satdirusr/SatTrack/tle
+ endif
+ #
+--- 24,39 ----
+ #
+ #
+ #
+! set ftphost=archive.afit.af.mil
+! set satdir=/usr/local/lib
+! set satuser=sattrack
+ #
+ #
+ #
+! set userid=$USER@`hostname`
+ #
+! set satdirusr=$satdir
+! if (! -d $satdiruser/SatTrack/tle) then
+ mkdir -p $satdirusr/SatTrack/tle
+ endif
+ #
+diff -c -r -P ../src/Makefile ../../SatTrack-FreeBSD/src/Makefile
+*** ../src/Makefile Fri Aug 25 17:39:13 1995
+--- ../../SatTrack-FreeBSD/src/Makefile Sat Apr 6 21:58:28 1996
+***************
+*** 92,101 ****
+
+ # Sun-4 (SPARCstation 5 or 10 with Solaris 2.x, using 'gcc' only)
+ #
+! CPU = Sun-4/Solaris
+! CC_CMACH = -O3 -DSVR4 -Wall
+! CC_LMACH =
+! CC = gcc
+
+ # Apollo 700 (HP Apollo 9000 Series 700 with HPUX)
+ #
+--- 92,101 ----
+
+ # Sun-4 (SPARCstation 5 or 10 with Solaris 2.x, using 'gcc' only)
+ #
+! #CPU = Sun-4/Solaris
+! #CC_CMACH = -O3 -DSVR4 -Wall
+! #CC_LMACH =
+! #CC = gcc
+
+ # Apollo 700 (HP Apollo 9000 Series 700 with HPUX)
+ #
+***************
+*** 148,157 ****
+
+ # i386 (i386 with FreeBSD)
+ #
+! #CPU = i386/FreeBSD
+! #CC_CMACH = -O -DFREEBSD -DIOCTL
+! #CC_LMACH =
+! #CC = gcc
+
+ #
+ #-------------------------------------------------------------------------------
+--- 148,157 ----
+
+ # i386 (i386 with FreeBSD)
+ #
+! CPU = i386/FreeBSD
+! CC_CMACH = -O -DFREEBSD -DIOCTL
+! CC_LMACH =
+! CC = gcc
+
+ #
+ #-------------------------------------------------------------------------------
+***************
+*** 193,199 ****
+ #CC_CUSR = -DREVERSEVIDEO -DXWINDOW
+ #CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DXWINDOW
+
+! CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DSUNTRANSITS -DXWINDOW
+
+ #
+ #-------------------------------------------------------------------------------
+--- 193,199 ----
+ #CC_CUSR = -DREVERSEVIDEO -DXWINDOW
+ #CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DXWINDOW
+
+! CC_CUSR = -DREVERSEVIDEO -DSUNTRANSITS -DXWINDOW
+
+ #
+ #-------------------------------------------------------------------------------
+***************
+*** 210,216 ****
+ # but should be accessible by other users as well.
+ #
+
+! #HOME = /home/manfred
+
+ #
+ #-------------------------------------------------------------------------------
+--- 210,217 ----
+ # but should be accessible by other users as well.
+ #
+
+! HOME = ../..
+! CC_CUSR += -DSATDIR=\"$(PREFIX)/lib\"
+
+ #
+ #-------------------------------------------------------------------------------
+***************
+*** 221,226 ****
+--- 222,231 ----
+ SRC = $(HOME)/SatTrack/src
+ OBJ = $(HOME)/SatTrack/obj
+ RUN = $(HOME)/SatTrack/run
++ DATA = $(HOME)/SatTrack/data
++ PRED = $(HOME)/SatTrack/pred
++ TLE = $(HOME)/SatTrack/tle
++ DOC = $(HOME)/SatTrack/doc
+
+ INC = $(SRC)/include
+
+***************
+*** 283,294 ****
+ #X11 = /usr/include
+ #X11 = /usr/local/include
+ #X11 = /usr/include/X11
+! X11 = /usr/openwin/include
+
+! LX11 = -lX11 -lXt # X11R5
+ #LX11 = -L/usr/openwin/lib -lX11 -lXt
+
+ #LX11 = -lX11 -lXt -lICE -lSM # X11R6
+ #LX11 = -L/usr/openwin/lib -lX11 -lXt -lICE -lSM
+
+ #CC_CXINC =
+--- 288,301 ----
+ #X11 = /usr/include
+ #X11 = /usr/local/include
+ #X11 = /usr/include/X11
+! #X11 = /usr/openwin/include
+! X11 = /usr/X11R6/include
+
+! #LX11 = -lX11 -lXt # X11R5
+ #LX11 = -L/usr/openwin/lib -lX11 -lXt
+
+ #LX11 = -lX11 -lXt -lICE -lSM # X11R6
++ LX11 = -L/usr/X11R6/lib -lX11 -lXt -lICE -lSM
+ #LX11 = -L/usr/openwin/lib -lX11 -lXt -lICE -lSM
+
+ #CC_CXINC =
+***************
+*** 319,324 ****
+--- 326,355 ----
+ cd $(RUN) ; \
+ /bin/rm -f fixchecksum makeamsat makepassesx maketles maketlex \
+ satfilter sattrack xdemo
++
++ install:
++ -@mkdir -p $(PREFIX)/lib/SatTrack/data
++ cd $(DATA) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/data
++ -@mkdir $(PREFIX)/lib/SatTrack/pred
++ cd $(PRED) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/pred
++ -@mkdir $(PREFIX)/lib/SatTrack/tle
++ cd $(TLE) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/tle
++ -@mkdir -p $(PREFIX)/share/doc/SatTrack
++ cd $(DOC) ; find . -print | cpio -pudm $(PREFIX)/share/doc/SatTrack
++ -@mkdir -p $(PREFIX)/bin
++ install -c -s -m 755 $(RUN)/fixchecksum $(PREFIX)/bin/fixchecksum
++ install -c -m 755 $(RUN)/getsts $(PREFIX)/bin/getsts
++ install -c -m 755 $(RUN)/gettle $(PREFIX)/bin/gettle
++ install -c -s -m 755 $(RUN)/makeamsat $(PREFIX)/bin/makeamsat
++ install -c -s -m 755 $(RUN)/makepassesx $(PREFIX)/bin/makepassesx
++ install -c -s -m 755 $(RUN)/maketles $(PREFIX)/bin/maketles
++ install -c -s -m 755 $(RUN)/maketlex $(PREFIX)/bin/maketlex
++ install -c -m 755 $(RUN)/passes $(PREFIX)/bin/passes
++ install -c -m 755 $(RUN)/passesx $(PREFIX)/bin/passesx
++ install -c -s -m 755 $(RUN)/satfilter $(PREFIX)/bin/satfilter
++ install -c -s -m 755 $(RUN)/sattrack $(PREFIX)/bin/sattrack
++ install -c -m 755 $(RUN)/transits $(PREFIX)/bin/transits
++ install -c -s -m 755 $(RUN)/xdemo $(PREFIX)/bin/xsattrackdemo
+
+ #
+ #-------------------------------------------------------------------------------
+diff -c -r -P ../src/include/sattrack.h ../../SatTrack-FreeBSD/src/include/sattrack.h
+*** ../src/include/sattrack.h Thu Feb 15 17:11:49 1996
+--- ../../SatTrack-FreeBSD/src/include/sattrack.h Sat Apr 6 21:45:26 1996
+***************
+*** 55,67 ****
+ /* */
+ /******************************************************************************/
+
+! #define SATDIR "/usr1/manfred" /* directory where SatTrack */
+ /* lives; used if HOMEDIR is */
+ /* undefined in the Makefile */
+
+ #define DATA "SatTrack/data" /* SatTrack sub-directories */
+ #define PRED "SatTrack/pred"
+! #define RUN "SatTrack/run"
+ #define TLE "SatTrack/tle"
+ #define SRC "SatTrack/src"
+ #define INC "SatTrack/src/include"
+--- 55,69 ----
+ /* */
+ /******************************************************************************/
+
+! #ifndef SATDIR
+! #define SATDIR "/usr/local/lib" /* directory where SatTrack */
+ /* lives; used if HOMEDIR is */
+ /* undefined in the Makefile */
++ #endif
+
+ #define DATA "SatTrack/data" /* SatTrack sub-directories */
+ #define PRED "SatTrack/pred"
+! #define RUN "../bin"
+ #define TLE "SatTrack/tle"
+ #define SRC "SatTrack/src"
+ #define INC "SatTrack/src/include"
+Only in ../src: patch
diff --git a/astro/sattrack/pkg-comment b/astro/sattrack/pkg-comment
new file mode 100644
index 000000000000..98ffa10ab6f1
--- /dev/null
+++ b/astro/sattrack/pkg-comment
@@ -0,0 +1 @@
+Satellite tracking program.
diff --git a/astro/sattrack/pkg-descr b/astro/sattrack/pkg-descr
new file mode 100644
index 000000000000..66ea1f5f58b5
--- /dev/null
+++ b/astro/sattrack/pkg-descr
@@ -0,0 +1,15 @@
+This is a port of SatTrack version 3.1, written by manfred Bester.
+SatTrack is a satellite tracking program. It provides two different
+live displays, for single or multiple satellites, and two different
+orbit prediction facilities. Cursor controls used in both live
+displays are compatible with the VT100 standard, which allows the
+program to be run basically from any terminal. An X Window color
+graphics display with the typical world map tracking chart and a
+number of important features has been added in this version. The
+orbit prediction can be run either interactively or in a batch
+mode. In the latter case all necessary parameters are specified
+on the command line.
+
+Port to FreeBSD 2.1 by
+Brent J. Nordquist (nordquist@platinum.com)
+Sat Apr 6 22:29:02 1996
diff --git a/astro/sattrack/pkg-plist b/astro/sattrack/pkg-plist
new file mode 100644
index 000000000000..cd7f5f7a6430
--- /dev/null
+++ b/astro/sattrack/pkg-plist
@@ -0,0 +1,80 @@
+bin/fixchecksum
+bin/getsts
+bin/gettle
+bin/makeamsat
+bin/makepassesx
+bin/maketles
+bin/maketlex
+bin/passes
+bin/passesx
+bin/satfilter
+bin/sattrack
+bin/transits
+bin/xsattrackdemo
+share/doc/SatTrack/skyview_1.gif
+share/doc/SatTrack/skyview_2.gif
+share/doc/SatTrack/skyview_3.gif
+share/doc/SatTrack/skyview_4.gif
+share/doc/SatTrack/worldmap_1.gif
+share/doc/SatTrack/skyview_5.gif
+share/doc/SatTrack/worldmap_2.gif
+share/doc/SatTrack/worldmap_3.gif
+share/doc/SatTrack/sattrack.doc
+share/doc/SatTrack/COPYRIGHT
+share/doc/SatTrack/info.tle.general
+share/doc/SatTrack/info.cities
+share/doc/SatTrack/info.cities.japan
+share/doc/SatTrack/info.cities.canada
+share/doc/SatTrack/info.tle.shuttle
+share/doc/SatTrack/info.freqs.p3d
+share/doc/SatTrack/info.TrakBox.TS-790.JR1EDE
+share/doc/SatTrack/xmenu_1.gif
+lib/SatTrack/data/cities.dat
+lib/SatTrack/data/index.dat
+lib/SatTrack/data/modes.dat
+lib/SatTrack/data/satlist_all.dat
+lib/SatTrack/data/satlist_am.dat
+lib/SatTrack/data/satlist_com.dat
+lib/SatTrack/data/satlist_glo.dat
+lib/SatTrack/data/satlist_gor.dat
+lib/SatTrack/data/satlist_gps.dat
+lib/SatTrack/data/satlist_mir.dat
+lib/SatTrack/data/README_DATA
+lib/SatTrack/data/satlist_pbbs.dat
+lib/SatTrack/data/satlist_sci.dat
+lib/SatTrack/data/satlist_tv.dat
+lib/SatTrack/data/satlist_vis.dat
+lib/SatTrack/data/satlist_wx.dat
+lib/SatTrack/data/tlelist.dat
+lib/SatTrack/data/satlist_rb.dat
+lib/SatTrack/data/satlist_wxall.dat
+lib/SatTrack/data/satlist_mwo.dat
+lib/SatTrack/data/batch.dat
+lib/SatTrack/data/satlist_leom.dat
+lib/SatTrack/data/satlist_leop.dat
+lib/SatTrack/data/satlist_leoe.dat
+lib/SatTrack/data/satlist_nasa.dat
+lib/SatTrack/data/satlist_ir.dat
+lib/SatTrack/data/defaults0.dat
+lib/SatTrack/data/satlist_geost.dat
+lib/SatTrack/data/satlist_noaa.dat
+lib/SatTrack/data/satlist_demo.dat
+lib/SatTrack/pred/README_PRED
+lib/SatTrack/tle/debris.dat
+lib/SatTrack/tle/gorizont.dat
+lib/SatTrack/tle/mir-92.dat
+lib/SatTrack/tle/mir-93.dat
+lib/SatTrack/tle/p3d.dat
+lib/SatTrack/tle/sts-70.dat
+lib/SatTrack/tle/sts.dat
+lib/SatTrack/tle/test.dat
+lib/SatTrack/tle/tle.bak
+lib/SatTrack/tle/tle.dat
+lib/SatTrack/tle/mir-94.dat
+lib/SatTrack/tle/tlex.dat
+lib/SatTrack/tle/tvro.dat
+lib/SatTrack/tle/visual.dat
+lib/SatTrack/tle/README_TLE
+lib/SatTrack/tle/tles.dat
+lib/SatTrack/tle/sts-69.dat
+lib/SatTrack/tle/sts-72.dat
diff --git a/astro/sattrack/scripts/post-patch b/astro/sattrack/scripts/post-patch
new file mode 100644
index 000000000000..5f3f68f10fc9
--- /dev/null
+++ b/astro/sattrack/scripts/post-patch
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# post-patch for sattrack-3.1.4
+# modify bin scripts to point to correct install dir
+#
+# script by Brent Nordquist (nordquist@platinum.com)
+# Sun Apr 7 00:08:56 1996
+#
+if [ -z "$WRKDIR" ]; then
+ WRKDIR="$1"
+fi
+RUN="$WRKDIR/SatTrack/run"
+if [ -z "$WRKDIR" -o ! -d "$RUN" ]; then
+ echo $0: bad work directory $RUN 1>&2
+ exit 1
+fi
+cd $RUN
+if [ -z "$PREFIX" ]; then
+ PREFIX="$2"
+fi
+if [ -z "$PREFIX" ]; then
+ echo $0: PREFIX not given 1>&2
+ exit 2
+fi
+
+do_subst()
+{
+ if [ ! -r $1 ]; then
+ echo $0: cannot find file $1 1>&2
+ exit 3
+ fi
+ sed "s@set satdir=.*\$@set satdir=$PREFIX/lib@" <$1 >$1.$$
+ if [ $? != 0 ]; then
+ echo $0: $1 sed failure 1>&2
+ rm -f $1.$$
+ exit 4
+ fi
+ cat $1.$$ >$1
+ if [ $? != 0 ]; then
+ echo $0: $1 cat failure 1>&2
+ rm -f $1
+ mv $1.$$ $1
+ exit 5
+ fi
+ rm -f $1.$$
+}
+
+do_subst getsts
+do_subst gettle