pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/52861: net/syncthing update
>Number: 52861
>Category: pkg
>Synopsis: Adding an rc file to syncthing.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Dec 24 23:15:00 +0000 2017
>Originator: dziltener%lyrion.ch@localhost
>Release: NetBSD 7.1
>Organization:
>Environment:
System: NetBSD lyrion.ch 7.1 NetBSD 7.1 (GENERIC.201703111743Z) amd64
Architecture: x86_64
Machine: amd64
>Description:
This patch adds an rc file for syncthing.
>How-To-Repeat:
Does not apply here.
>Fix:
syncthing.patch follows:
diff -ENwbur /usr/pkgsrc/net/syncthing/Makefile /usr/pkgsrc/net/syncthing/Makefile
--- /usr/pkgsrc/net/syncthing/Makefile 2017-09-08 22:14:20.000000000 +0200
+++ /usr/pkgsrc/net/syncthing/Makefile 2017-12-24 22:49:35.000000000 +0100
@@ -36,6 +36,8 @@
INSTALLATION_DIRS= bin
+RCD_SCRIPTS= syncthing
+
# Go has very strong notions of how building is supposed to work, and
# paths. Until 0.14, syncthing had symlink workarounds to have
# sources be found via a gopath directory. Then, building failed
diff -ENwbur /usr/pkgsrc/net/syncthing/files/syncthing.sh /usr/pkgsrc/net/syncthing/files/syncthing.sh
--- /usr/pkgsrc/net/syncthing/files/syncthing.sh 1970-01-01 01:00:00.000000000 +0100
+++ /usr/pkgsrc/net/syncthing/files/syncthing.sh 2017-12-24 22:47:14.000000000 +0100
@@ -0,0 +1,19 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+#$NetBSD$
+#
+
+# PROVIDE: syncthing
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="syncthing"
+rcvar=$name
+procname=$name
+pids="$(check_process $procname)"
+command="@PREFIX@/bin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index