diff --git a/astro/gpxloggerd/Makefile b/astro/gpxloggerd/Makefile index cfac10dc5eb1..1a1401d1f2e6 100644 --- a/astro/gpxloggerd/Makefile +++ b/astro/gpxloggerd/Makefile @@ -1,27 +1,27 @@ # New ports collection makefile for: gpxloggerd # Date created: 8 December 2010 # Whom: glebius # # $FreeBSD$ # PORTNAME= gpxloggerd PORTVERSION= 0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= astro MASTER_SITES= LOCAL/glebius MAINTAINER= glebius@FreeBSD.org COMMENT= A daemon that connects to the GPSD daemon and logs GPS traces LIB_DEPENDS= gps.19:${PORTSDIR}/astro/gpsd USE_RC_SUBR= ${PORTNAME} PLIST_FILES= sbin/${PORTNAME} MAN8= ${PORTNAME}.8 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${PREFIX}/man/man8/ .include diff --git a/astro/gpxloggerd/files/gpxloggerd.in b/astro/gpxloggerd/files/gpxloggerd.in index 027b7384c0f6..28b7ada92f1a 100644 --- a/astro/gpxloggerd/files/gpxloggerd.in +++ b/astro/gpxloggerd/files/gpxloggerd.in @@ -1,45 +1,44 @@ #!/bin/sh # # $FreeBSD$ # # PROVIDE: gpxloggerd # REQUIRE: NETWORKING DAEMON cleanvar devfs gpsd # BEFORE: ntpd # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable gpxloggerd: # # gpxloggerd_enable (bool): Set to "NO" by default. # Set it to "YES" to enable gpxloggerd. # # gpxloggerd_host (str): Set to "" by default, which is equal # to "localhost:2947". # Set to host:port if gpsd is not local. # # gpxloggerd_flags (str): Set to "-d" by default. # # gpxloggerd_template (str): Set to "/var/log/%d %B %Y - %H:%M.gpx" # by default. # # See gpxloggerd(8) for more info. . /etc/rc.subr name=gpxloggerd rcvar=`set_rcvar` load_rc_config $name # Set defaults -flags="${gpxloggerd_flags:--d}" template="${gpxloggerd_template:-/var/log/%d %B %Y - %H:%M.gpx}" user="${gpxloggerd_user:-nobody}" group="${gpxloggerd_group:-nobody}" pidfile=/var/run/$name.pid command=%%PREFIX%%/sbin/$name -command_args="${flags} -u ${user}:${group} -p ${pidfile} -f \"${template}\" $gpxloggerd_host" +command_args="-u ${user}:${group} -p ${pidfile} -f \"${template}\" $gpxloggerd_host" run_rc_command "$1"