Skip to content

Commit

Permalink
prosody: let the RC script work unprivileged
Browse files Browse the repository at this point in the history
This takes advantage of the introduction of the SYSCONFBASE variable.
Tested on NetBSD/amd64.

Bumps PKGREVISION.
  • Loading branch information
khorben committed Aug 29, 2021
1 parent 4cdf318 commit 1e2fa5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions chat/prosody/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.33 2020/05/27 19:37:37 wiz Exp $
# $NetBSD: Makefile,v 1.34 2021/08/29 18:32:29 khorben Exp $
#

DISTNAME= prosody-0.11.4
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= chat
MASTER_SITES= https://prosody.im/downloads/source/

Expand Down
6 changes: 4 additions & 2 deletions chat/prosody/files/prosody.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: prosody.sh,v 1.2 2021/08/29 18:32:29 khorben Exp $
#
# PROVIDE: prosody
# REQUIRE: DAEMON

if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
if [ -f @SYSCONFBASE@/rc.subr ]; then
. @SYSCONFBASE@/rc.subr
fi

name="prosody"
Expand Down

0 comments on commit 1e2fa5c

Please sign in to comment.