pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/fwknop fwknop: let the RC script work unprivileged
details: https://anonhg.NetBSD.org/pkgsrc/rev/fcbb166ab885
branches: trunk
changeset: 769093:fcbb166ab885
user: khorben <khorben%pkgsrc.org@localhost>
date: Sun Nov 07 18:37:02 2021 +0000
description:
fwknop: let the RC script work unprivileged
This takes advantage of the introduction of the SYSCONFBASE variable.
Tested on NetBSD/amd64.
Bumps PKGREVISION.
diffstat:
net/fwknop/Makefile | 3 ++-
net/fwknop/files/fwknopd.sh | 6 +++---
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r a1c3f80ab6a2 -r fcbb166ab885 net/fwknop/Makefile
--- a/net/fwknop/Makefile Sun Nov 07 17:21:19 2021 +0000
+++ b/net/fwknop/Makefile Sun Nov 07 18:37:02 2021 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2021/05/29 22:39:45 khorben Exp $
+# $NetBSD: Makefile,v 1.5 2021/11/07 18:37:02 khorben Exp $
DISTNAME= fwknop-2.6.10
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=mrash/}
diff -r a1c3f80ab6a2 -r fcbb166ab885 net/fwknop/files/fwknopd.sh
--- a/net/fwknop/files/fwknopd.sh Sun Nov 07 17:21:19 2021 +0000
+++ b/net/fwknop/files/fwknopd.sh Sun Nov 07 18:37:02 2021 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: fwknopd.sh,v 1.1 2021/05/29 22:39:46 khorben Exp $
+# $NetBSD: fwknopd.sh,v 1.2 2021/11/07 18:37:03 khorben Exp $
#
# Startup script for fwknopd
#
@@ -8,14 +8,14 @@
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
-# You will need to set some variables in /etc/rc.conf to start fwknopd:
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start fwknopd:
#
# fwknopd=YES
#
# Optionally, "fwknopd_flags" contains additional parameters for the service.
# See fwknopd(8) for possible options.
-. /etc/rc.subr
+$_rc_subr_loaded . @SYSCONFBASE@/rc.subr
name="fwknopd"
rcvar=${name}
Home |
Main Index |
Thread Index |
Old Index