pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/mediatomb mediatomb: let the RC script work...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0062276da934
branches: trunk
changeset: 457587:0062276da934
user: khorben <khorben%pkgsrc.org@localhost>
date: Sun Aug 29 23:14:04 2021 +0000
description:
mediatomb: let the RC script work unprivileged
This takes advantage of the introduction of the SYSCONFBASE variable.
Tested on NetBSD/amd64.
Bumps PKGREVISION.
diffstat:
multimedia/mediatomb/Makefile | 4 ++--
multimedia/mediatomb/files/mediatomb.sh | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r c7f765ef47a6 -r 0062276da934 multimedia/mediatomb/Makefile
--- a/multimedia/mediatomb/Makefile Sun Aug 29 22:38:58 2021 +0000
+++ b/multimedia/mediatomb/Makefile Sun Aug 29 23:14:04 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.78 2021/04/21 13:25:05 adam Exp $
+# $NetBSD: Makefile,v 1.79 2021/08/29 23:14:04 khorben Exp $
DISTNAME= mediatomb-0.12.1
-PKGREVISION= 56
+PKGREVISION= 57
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mediatomb/}
diff -r c7f765ef47a6 -r 0062276da934 multimedia/mediatomb/files/mediatomb.sh
--- a/multimedia/mediatomb/files/mediatomb.sh Sun Aug 29 22:38:58 2021 +0000
+++ b/multimedia/mediatomb/files/mediatomb.sh Sun Aug 29 23:14:04 2021 +0000
@@ -1,12 +1,12 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: mediatomb.sh,v 1.2 2009/01/05 12:28:32 jmcneill Exp $
+# $NetBSD: mediatomb.sh,v 1.3 2021/08/29 23:14:04 khorben Exp $
#
-
# PROVIDE: mediatomb
# REQUIRE: DAEMON
+# KEYWORD: shutdown
-. /etc/rc.subr
+. @SYSCONFBASE@/rc.subr
name="mediatomb"
rcvar=$name
@@ -18,7 +18,7 @@
command_args="-d -u ${mediatomb_username:-@MEDIATOMB_USER@} -g ${mediatomb_groupname:-@MEDIATOMB_USER@} -m @PKG_HOME@ -P ${pidfile} -l ${logfile} -c @PKG_SYSCONFDIR@/config.xml"
extra_commands="reload"
-if [ -f /etc/rc.subr ]; then
+if [ -f @SYSCONFBASE@/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
Home |
Main Index |
Thread Index |
Old Index