1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

K-Track is an graphical satellite prediction Program that runs under KDE.

It's really accurate as it calculates using the NORAD SGP4/SDP4 Models.
It Controls your Rig for doppler compensation / antenna pointing

Written by lx2gt AT users.sourceforge.net

WWW: http://ktrack.sourceforge.net/

- Diane Bruce, VA3DB
db@db.net

PR:		ports/93781
Submitted by:	Diane Bruce <db at db.net>
This commit is contained in:
Ion-Mihai Tetcu 2006-07-09 19:55:57 +00:00
parent 48eea8eed4
commit f5a473f755
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=167299
9 changed files with 174 additions and 0 deletions

View File

@ -45,6 +45,7 @@
SUBDIR += kermit
SUBDIR += klog
SUBDIR += kpsk
SUBDIR += ktrack
SUBDIR += libfec
SUBDIR += libirman
SUBDIR += libticables

48
comms/ktrack/Makefile Normal file
View File

@ -0,0 +1,48 @@
# New ports collection makefile for: ktrack
# Date created: 22 February 2006
# Whom: Diane Bruce <db@db.net>
#
# $FreeBSD$
PORTNAME= ktrack
PORTVERSION= 0.3.0r1
CATEGORIES= comms hamradio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ktrack
DISTNAME= ${PORTNAME}-0.3.0-rc1
MAINTAINER= db@db.net
COMMENT= Amateur Radio satellite tracking and prediction
RUN_DEPENDS= xplanet:${PORTSDIR}/astro/xplanet:install
LIB_DEPENDS= hamlib:${PORTSDIR}/comms/hamlib \
jpeg:${PORTSDIR}/graphics/jpeg
WRKSRC= ${WRKDIR}/${DISTNAME}
USE_BZIP2= yes
USE_KDEBASE_VER=3
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
USE_GETTEXT= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
USE_GCC= 3.3+
.endif
post-patch:
@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/HTML/en/ktrack
${MKDIR} ${PREFIX}/share/doc/HTML/en/ktrack/common
${INSTALL_MAN} ${WRKSRC}/doc/en/index.cache.bz2 ${PREFIX}/share/doc/HTML/en/ktrack/
${INSTALL_MAN} ${WRKSRC}/doc/en/index.docbook ${PREFIX}/share/doc/HTML/en/ktrack/
.endif
.include <bsd.port.post.mk>

3
comms/ktrack/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (ktrack-0.3.0-rc1.tar.bz2) = 032c914ab7316471505265e6a68d9da3
SHA256 (ktrack-0.3.0-rc1.tar.bz2) = 595e4314ae611eac55ad5add46ba4e5c881c29e40c8261bfd5f65df318d35740
SIZE (ktrack-0.3.0-rc1.tar.bz2) = 913764

View File

@ -0,0 +1,11 @@
--- doc/en/Makefile.in.orig Thu Feb 23 20:34:39 2006
+++ doc/en/Makefile.in Thu Feb 23 20:34:53 2006
@@ -372,7 +372,7 @@
#>- install-data-am:
#>+ 1
-install-data-am: install-docs install-nls
+install-data-am:
install-exec-am:

View File

@ -0,0 +1,53 @@
--- ktrack/hamlibwrapper.cpp.orig Sun Jan 18 03:25:00 2004
+++ ktrack/hamlibwrapper.cpp Thu Feb 23 11:23:18 2006
@@ -18,6 +18,7 @@
#include <string.h>
#include <stdlib.h>
#include <kapplication.h>
+#include <math.h>
#include "hamlibwrapper.h"
@@ -100,6 +101,7 @@
// open the rig
if (rig_open(downlinkRig) != RIG_OK) {
retval--;
+ downlinkRig->caps->rig_model=RIG_MODEL_DUMMY;
}
@@ -116,8 +118,9 @@
uplinkRig=rig_init(urig);
uplinkRig->state.rigport.parm.serial.rate=uspeed;
strcpy(downlinkRig->state.rigport.pathname, uport);
- if (rig_open(downlinkRig) != RIG_OK) {
+ if (rig_open(uplinkRig) != RIG_OK) {
retval--;
+ uplinkRig->caps->rig_model=RIG_MODEL_DUMMY;
}
}
@@ -248,13 +251,16 @@
int errorcode;
freq_t frequency=0;
mutex.lock();
- errorcode=rig_get_freq(downlinkRig, downlinkvfo, &frequency);
- if (errorcode!=RIG_OK) {
- fprintf(stderr, "WARNING: Error fetching frequency from Radio! Using default Frequency!\n");
- errorstring=rigerror(errorcode);
- if (errorstring)
- fprintf(stderr, "The reported error was: %s\n", errorstring);
- frequency=433000000;
+ if (downlinkRig->caps->rig_model != RIG_MODEL_DUMMY) {
+ errorcode=rig_get_freq(downlinkRig, downlinkvfo, &frequency);
+ if (errorcode!=RIG_OK) {
+ fprintf(stderr, "WARNING: Error fetching frequency from Radio! Using default Frequency!\n");
+ errorstring=rigerror(errorcode);
+ if (errorstring)
+ fprintf(stderr, "The reported error was: %s\n", errorstring);
+ downlinkRig->caps->rig_model = RIG_MODEL_DUMMY;
+ frequency=433000000;
+ }
}
// sleep on dummy rig - that saves CPU power
if (downlinkRig->caps->rig_model == RIG_MODEL_DUMMY)

View File

@ -0,0 +1,20 @@
--- ktrack/predictionlist.cpp.orig Wed Feb 22 19:58:26 2006
+++ ktrack/predictionlist.cpp Wed Feb 22 19:58:39 2006
@@ -132,7 +132,7 @@
/** No descriptions */
double predictionList::qDateTime2daynum(QDateTime date){
struct tm TM;
- extern int daylight;
+// extern int daylight;
tzset();
TM.tm_sec=date.time().second();
@@ -141,7 +141,7 @@
TM.tm_mday=date.date().day();
TM.tm_mon=date.date().month()-1;
TM.tm_year=date.date().year()-1900;
- TM.tm_isdst=daylight;
+ TM.tm_isdst=0; // daylight;
time_t t = mktime(&TM);
// gmtime_r(&t, &TM);

View File

@ -0,0 +1,11 @@
--- ktrack/rigConfigBase.ui.orig Thu Feb 23 13:17:48 2006
+++ ktrack/rigConfigBase.ui Thu Feb 23 13:17:57 2006
@@ -390,7 +390,7 @@
<cstring>downlinkCheckBox</cstring>
</property>
<property name="text">
- <string>Seperate downlink receiver</string>
+ <string>Separate downlink receiver</string>
</property>
</widget>
<widget class="QGroupBox">

10
comms/ktrack/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
K-Track is an graphical satellite prediction Program that runs under KDE.
It's really accurate as it calculates using the NORAD SGP4/SDP4 Models.
It Controls your Rig for doppler compensation / antenna pointing
Written by lx2gt AT users.sourceforge.net
WWW: http://ktrack.sourceforge.net/
- Diane Bruce, VA3DB
db@db.net

17
comms/ktrack/pkg-plist Normal file
View File

@ -0,0 +1,17 @@
bin/ktrack
share/applnk/Applications/HamRadio/ktrack.desktop
share/apps/ktrack/earth.jpg
share/apps/ktrack/nasa.tle
share/apps/ktrack/night.jpg
share/icons/hicolor/16x16/apps/ktrack.png
share/icons/hicolor/32x32/apps/ktrack.png
share/icons/locolor/16x16/apps/ktrack.png
share/icons/locolor/32x32/apps/ktrack.png
share/locale/de/LC_MESSAGES/ktrack.mo
share/locale/fr/LC_MESSAGES/ktrack.mo
@dirrm share/applnk/Applications/HamRadio
@dirrm share/apps/ktrack
%%PORTDOCS%%share/doc/HTML/en/ktrack/index.cache.bz2
%%PORTDOCS%%share/doc/HTML/en/ktrack/index.docbook
%%PORTDOCS%%@dirrm share/doc/HTML/en/ktrack/common
%%PORTDOCS%%@dirrm share/doc/HTML/en/ktrack