pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/geography/gpsd gpsd: provide a RC script
details: https://anonhg.NetBSD.org/pkgsrc/rev/bd570e5921be
branches: trunk
changeset: 379629:bd570e5921be
user: khorben <khorben%pkgsrc.org@localhost>
date: Fri May 20 19:52:41 2022 +0000
description:
gpsd: provide a RC script
Bumps PKGREVISION.
Tested on NetBSD/amd64.
"ok with this" gdt@
diffstat:
geography/gpsd/Makefile | 5 ++++-
geography/gpsd/files/gpsd.sh | 32 ++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 1 deletions(-)
diffs (57 lines):
diff -r 459a451ad33e -r bd570e5921be geography/gpsd/Makefile
--- a/geography/gpsd/Makefile Fri May 20 16:35:36 2022 +0000
+++ b/geography/gpsd/Makefile Fri May 20 19:52:41 2022 +0000
@@ -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 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
diff -r 459a451ad33e -r bd570e5921be geography/gpsd/files/gpsd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/gpsd/files/gpsd.sh Fri May 20 19:52:41 2022 +0000
@@ -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