diff options
Diffstat (limited to 'comms/predict/files')
-rw-r--r-- | comms/predict/files/Makefile | 30 | ||||
-rw-r--r-- | comms/predict/files/patch-clients_earthtrack_earthtrack.c | 16 | ||||
-rw-r--r-- | comms/predict/files/patch-kepupdate | 28 | ||||
-rw-r--r-- | comms/predict/files/patch-predict.c | 18 | ||||
-rw-r--r-- | comms/predict/files/predict.h | 1 | ||||
-rw-r--r-- | comms/predict/files/vocalizer.h | 1 |
6 files changed, 62 insertions, 32 deletions
diff --git a/comms/predict/files/Makefile b/comms/predict/files/Makefile deleted file mode 100644 index a6882e222993..000000000000 --- a/comms/predict/files/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -default: all -all: predict vocalizer/vocalizer - -LIBS = ${LDFLAGS} -pthread -lm -lncursesw -predict: predict.c predict.h - ${CC} ${CFLAGS} -o predict predict.c ${LIBS} - -vocalizer/vocalizer: vocalizer/vocalizer.c vocalizer/vocalizer.h - ${CC} ${CFLAGS} -I${LOCALBASE}/include -o vocalizer/vocalizer vocalizer/vocalizer.c -L${LOCALBASE}/lib ${LIBS} -lasound - -clean: - rm -f *.o predict *core *~ \#* *.txt vocalizer/vocalizer - -install: - mkdir -p ${STAGEDIR}${PREFIX}/share/predict/ - mkdir ${STAGEDIR}${PREFIX}/share/predict/default - mkdir ${STAGEDIR}${PREFIX}/share/predict/vocalizer - install -m 0644 default/predict.db ${STAGEDIR}${PREFIX}/share/predict/default - install -m 0644 default/predict.qth ${STAGEDIR}${PREFIX}/share/predict/default - install -m 0644 default/predict.tle ${STAGEDIR}${PREFIX}/share/predict/default - install -m 0644 vocalizer/*.wav ${STAGEDIR}${PREFIX}/share/predict/vocalizer - install predict ${STAGEDIR}${PREFIX}/bin - strip ${STAGEDIR}${PREFIX}/bin/predict - install vocalizer/vocalizer ${STAGEDIR}${PREFIX}/bin - strip ${STAGEDIR}${PREFIX}/bin/vocalizer - -install.man: - install -m 0644 docs/man/predict.1 ${STAGEDIR}${PREFIX}/share/man/man1 - -.PHONY: clean build diff --git a/comms/predict/files/patch-clients_earthtrack_earthtrack.c b/comms/predict/files/patch-clients_earthtrack_earthtrack.c new file mode 100644 index 000000000000..a377d10f9a40 --- /dev/null +++ b/comms/predict/files/patch-clients_earthtrack_earthtrack.c @@ -0,0 +1,16 @@ +--- clients/earthtrack/earthtrack.c.orig 2023-06-10 19:16:02 UTC ++++ clients/earthtrack/earthtrack.c +@@ -53,13 +53,6 @@ FILE *markerfd=NULL, *greatarcfd=NULL; + HALFPI=1.570796326794896, deg2rad=1.74532925199e-02; + FILE *markerfd=NULL, *greatarcfd=NULL; + +-void handler(void) +-{ +- /* This is a function that is called when the response function +- times out. This is in case the server fails to respond. */ +- +- signal(SIGALRM,handler); +-} + + int connectsock(char *host, char *service, char *protocol) + { diff --git a/comms/predict/files/patch-kepupdate b/comms/predict/files/patch-kepupdate new file mode 100644 index 000000000000..4eecf9d367df --- /dev/null +++ b/comms/predict/files/patch-kepupdate @@ -0,0 +1,28 @@ +--- 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 diff --git a/comms/predict/files/patch-predict.c b/comms/predict/files/patch-predict.c new file mode 100644 index 000000000000..aa2b5f72d56e --- /dev/null +++ b/comms/predict/files/patch-predict.c @@ -0,0 +1,18 @@ +--- predict.c.orig 2023-08-05 15:33:14 UTC ++++ predict.c +@@ -30,6 +30,7 @@ + #include <assert.h> + #include <sys/types.h> + #include <sys/socket.h> ++#include <sys/stat.h> + #include <netinet/in.h> + #include <netdb.h> + #include <unistd.h> +@@ -6839,7 +6840,6 @@ void NewUser (void) + + void NewUser (void) + { +- int *mkdir(); + + Banner(); + attrset(COLOR_PAIR(3)|A_BOLD); diff --git a/comms/predict/files/predict.h b/comms/predict/files/predict.h deleted file mode 100644 index e0d913cbd353..000000000000 --- a/comms/predict/files/predict.h +++ /dev/null @@ -1 +0,0 @@ -char *predictpath={"%%PREFIX%%/share/predict/"}, soundcard=1, *version={"2.2.3"}; diff --git a/comms/predict/files/vocalizer.h b/comms/predict/files/vocalizer.h deleted file mode 100644 index 1cf9ae955aab..000000000000 --- a/comms/predict/files/vocalizer.h +++ /dev/null @@ -1 +0,0 @@ -char *path={"%%PREFIX%%/share/predict/vocalizer/"}; |