pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/py-octoprint py-octoprint: let the RC script wor...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c286eac2b2e2
branches:  trunk
changeset: 457583:c286eac2b2e2
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Sun Aug 29 20:00:43 2021 +0000

description:
py-octoprint: let the RC script work unprivileged

This takes advantage of the introduction of the SYSCONFBASE variable.
Tested on NetBSD/amd64.

Bumps PKGREVISION.

diffstat:

 print/py-octoprint/Makefile           |  3 ++-
 print/py-octoprint/files/octoprint.sh |  6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 22b3cf554551 -r c286eac2b2e2 print/py-octoprint/Makefile
--- a/print/py-octoprint/Makefile       Sun Aug 29 18:38:53 2021 +0000
+++ b/print/py-octoprint/Makefile       Sun Aug 29 20:00:43 2021 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2021/08/05 13:08:08 adam Exp $
+# $NetBSD: Makefile,v 1.4 2021/08/29 20:00:43 khorben Exp $
 
 DISTNAME=      ${GITHUB_PROJECT}-${PKGVERSION_NOREV}
 PKGNAME=       ${PYPKGPREFIX}-octoprint-1.6.1
+PKGREVISION=   1
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=OctoPrint/}
 GITHUB_PROJECT=        OctoPrint
diff -r 22b3cf554551 -r c286eac2b2e2 print/py-octoprint/files/octoprint.sh
--- a/print/py-octoprint/files/octoprint.sh     Sun Aug 29 18:38:53 2021 +0000
+++ b/print/py-octoprint/files/octoprint.sh     Sun Aug 29 20:00:43 2021 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: octoprint.sh,v 1.2 2021/05/30 21:53:11 khorben Exp $
+# $NetBSD: octoprint.sh,v 1.3 2021/08/29 20:00:43 khorben Exp $
 #
 # Startup script for OctoPrint
 #
@@ -8,11 +8,11 @@
 # REQUIRE: DAEMON
 # KEYWORD: shutdown
 #
-# You will need to set some variables in /etc/rc.conf to start OctoPrint:
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start OctoPrint:
 #
 # octoprint=YES
 
-$_rc_subr_loaded . /etc/rc.subr
+$_rc_subr_loaded . @SYSCONFBASE@/rc.subr
 
 name="octoprint"
 rcvar=${name}



Home | Main Index | Thread Index | Old Index