ports/comms/predict/files/patch-kepupdate
Diane Bruce 730d2d9c02 comms/predict: update to 2.3.1
[upstream changes]
Release 2.3.1:
By John A. Magliacane <kd2bd@amsat.org> (05-Aug-2023):

* Fixed a bug that caused the "Upcoming Passes" list in Multi-Satellite
  tracking mode to occasionally produce erroneous results if one or
  more satellites in the database had decayed from orbit.

* The Vocalizer feature was modified to prevent it from being executed
  by a user keyboard command until after the current speech announcement
  has terminated.

* The earthtrack compilation script was modified to prevent the
  "undefined reference" errors some users experienced during the
  linking phase of the compilation process.

* All references to www.celestrak.com in the "kepupdate" script have
  been changed to celestrak.org due to the site's name change.

* Several other small coding changes were made.

----------------------------------------------------------------------------

[db changes]

- Upstream does not come with a proper build infrastructure hence
  build is done in our port Makefile now instead of copied Makefile.
- portlint and portfmt ran clearly as did poudriere.
- Added earthtrack, kepupdate and moontracker binaries
  but did not add gsat which should be a separate port IMO

PR:		277986
Reported by:	Andrey Korobkov <alster@vinterdalen.se>
2024-04-04 16:30:18 -04:00

28 lines
1,006 B
Text

--- kepupdate.orig 2024-03-27 16:31:40 UTC
+++ kepupdate
@@ -1,20 +1,19 @@
-#!/bin/bash
+#!/bin/sh
#
# Invoke as kepupdate -q in crontab scripts to keep the update "quiet".
#
dir=$HOME/.predict
-wget -qr https://www.amsat.org/tle/current/nasabare.txt -O $dir/amateur.txt
-wget -qr https://celestrak.org/NORAD/elements/visual.txt -O $dir/visual.txt
-wget -qr https://celestrak.org/NORAD/elements/weather.txt -O $dir/weather.txt
+fetch https://www.amsat.org/tle/current/nasabare.txt -o $dir/amateur.txt
+fetch https://celestrak.org/NORAD/elements/visual.txt -o $dir/visual.txt
+fetch https://celestrak.org/NORAD/elements/weather.txt -o $dir/weather.txt
cat $dir/amateur.txt $dir/visual.txt $dir/weather.txt > $dir/keps.tle
if [ -e $dir/keps.tle ]; then
predict -u $dir/keps.tle
-
- if [[ $1 != "-q" ]] && [[ $1 != "-quiet" ]] && [[ $1 != "--quiet" ]]; then
+ if [ $1 ] && [ $1 != "-q" ] && [ $1 != "-quiet" ] && [ $1 != "--quiet" ]; then
echo "PREDICT's Keps have been updated!"
fi
fi