Index: head/astro/gpxloggerd/Makefile =================================================================== --- head/astro/gpxloggerd/Makefile (revision 562241) +++ head/astro/gpxloggerd/Makefile (revision 562242) @@ -1,27 +1,25 @@ # Created by: Gleb Smirnoff # $FreeBSD$ PORTNAME= gpxloggerd -PORTVERSION= 0.2.3 -PORTREVISION= 1 +PORTVERSION= 0.2.4 CATEGORIES= astro USE_GITHUB= yes GH_ACCOUNT= glebius MAINTAINER= glebius@FreeBSD.org COMMENT= Daemon that connects to the GPSD daemon and logs GPS traces LIB_DEPENDS= libgps.so:astro/gpsd USE_RC_SUBR= ${PORTNAME} PLIST_FILES= sbin/${PORTNAME} \ man/man8/${PORTNAME}.8.gz LDFLAGS+= -lm -MAKE_ARGS= NO_WERROR=yes do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin/ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${PREFIX}/man/man8/ .include Index: head/astro/gpxloggerd/distinfo =================================================================== --- head/astro/gpxloggerd/distinfo (revision 562241) +++ head/astro/gpxloggerd/distinfo (revision 562242) @@ -1,2 +1,3 @@ -SHA256 (glebius-gpxloggerd-0.2.3_GH0.tar.gz) = de87f5a754c4c9bf386bfbf01df4cf50df1269b5339d7f415387826f418fd4e9 -SIZE (glebius-gpxloggerd-0.2.3_GH0.tar.gz) = 7504 +TIMESTAMP = 1611261551 +SHA256 (glebius-gpxloggerd-0.2.4_GH0.tar.gz) = 6c2dcde3618a6a14ec9b1c51478f1e819fce8dbe40620718ad43ddde17aa9e7f +SIZE (glebius-gpxloggerd-0.2.4_GH0.tar.gz) = 7828 Index: head/astro/gpxloggerd/files/patch-gpxloggerd.c =================================================================== --- head/astro/gpxloggerd/files/patch-gpxloggerd.c (revision 562241) +++ head/astro/gpxloggerd/files/patch-gpxloggerd.c (nonexistent) @@ -1,48 +0,0 @@ ---- gpxloggerd.c.orig 2020-03-05 17:50:39 UTC -+++ gpxloggerd.c -@@ -114,7 +114,9 @@ print_fix(struct gps_data_t *gpsdata) - fix->latitude, fix->longitude); - if (!isnan(fix->altitude)) - fprintf(logfile, " %.f\n", fix->altitude); -- fprintf(logfile, " \n", unix_to_iso8601(fix->time, -+// See https://gitlab.com/gpsd/gpsd/-/blob/master/gps.h#L70 -+// Replaced by now_to_iso8601 -+ fprintf(logfile, " \n", now_to_iso8601( - tbuf, sizeof(tbuf))); - if (verbose) { - switch (fix->mode) { -@@ -171,6 +173,11 @@ opennewfile(char *template) - print_gpx_header(); - } - -+static double timespec_to_double(struct timespec ts) -+{ -+ return ((double)(ts.tv_sec) + ((double)(ts.tv_nsec) / 1e9)); -+} -+ - static void - process(struct gps_data_t *gpsdata) - { -@@ -189,10 +196,10 @@ process(struct gps_data_t *gpsdata) - return; - - move = 0; /* stupid old gcc */ -- t = (time_t )floor(fix->time); -- ot = (time_t )floor(ofix.time); -+ t = (time_t )floor(timespec_to_double(fix->time)); -+ ot = (time_t )floor(timespec_to_double(ofix.time)); - if (minbearing) -- pt = (time_t )floor(pfix.time); -+ pt = (time_t )floor(timespec_to_double(pfix.time)); - else - pt = ot; - -@@ -521,7 +528,7 @@ reopen: - if (FD_ISSET(signal_fd[0], &fds)) - process_signal(); - if (FD_ISSET(gpsdata.gps_fd, &fds)) { -- n = gps_read(&gpsdata); -+ n = gps_read(&gpsdata, NULL, 0); - if (n < 0) { - syslog(LOG_ERR, "gps_read(): %m, reopening"); - gps_close(&gpsdata); Property changes on: head/astro/gpxloggerd/files/patch-gpxloggerd.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property