pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/geography/gpsd



Module Name:    pkgsrc
Committed By:   khorben
Date:           Fri May 20 19:52:41 UTC 2022

Modified Files:
        pkgsrc/geography/gpsd: Makefile
Added Files:
        pkgsrc/geography/gpsd/files: gpsd.sh

Log Message:
gpsd: provide a RC script

Bumps PKGREVISION.

Tested on NetBSD/amd64.

"ok with this" gdt@


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 pkgsrc/geography/gpsd/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/geography/gpsd/files/gpsd.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/geography/gpsd/Makefile
diff -u pkgsrc/geography/gpsd/Makefile:1.63 pkgsrc/geography/gpsd/Makefile:1.64
--- pkgsrc/geography/gpsd/Makefile:1.63 Thu Apr 28 11:43:14 2022
+++ pkgsrc/geography/gpsd/Makefile      Fri May 20 19:52:41 2022
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.63 2022/04/28 11:43:14 gdt Exp $
+# $NetBSD: Makefile,v 1.64 2022/05/20 19:52:41 khorben Exp $
 
 DISTNAME=      gpsd-3.24
+PKGREVISION=   1
 CATEGORIES=    geography
 MASTER_SITES=  http://download-mirror.savannah.gnu.org/releases/gpsd/
 # will probably switch to https://gitlab.com/gpsd/gpsd/releases
@@ -46,6 +47,8 @@ SCONS_ARGS+=  leapfetch=no
 # scons is hard to understand, so enable debugging always
 SCONS_ARGS+=   --debug=explain,prepare
 
+RCD_SCRIPTS=   gpsd
+
 SUBST_CLASSES+=                pyenv
 SUBST_MESSAGE.pyenv=   Fixing Python path in test script
 # We would choose post-configure, but gpsd's build system blurs

Added files:

Index: pkgsrc/geography/gpsd/files/gpsd.sh
diff -u /dev/null pkgsrc/geography/gpsd/files/gpsd.sh:1.1
--- /dev/null   Fri May 20 19:52:41 2022
+++ pkgsrc/geography/gpsd/files/gpsd.sh Fri May 20 19:52:41 2022
@@ -0,0 +1,32 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: gpsd.sh,v 1.1 2022/05/20 19:52:41 khorben Exp $
+#
+# Interface daemon for GPS receivers
+#
+# PROVIDE: gpsd
+# REQUIRE: DAEMON
+#
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start gpsd:
+#
+# gpsd=YES
+# gpsd_devices=                # List of devices for gpsd to monitor
+#                      #   this variable is required.
+# gpsd_flags=          # Additional options to provide to gpsd
+#                      #   this variable is optional and defaults to "-n".
+
+$_rc_subr_loaded . @SYSCONFBASE@/rc.subr
+
+name="gpsd"
+rcvar=${name}
+command="@PREFIX@/sbin/${name}"
+start_precmd="gpsd_start_precmd"
+
+gpsd_start_precmd()
+{
+       rc_flags="$rc_flags ${gpsd_devices}"
+}
+
+load_rc_config $name
+: ${gpsd_flags:=-n}
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index