diff options
author | khorben <khorben@pkgsrc.org> | 2021-08-29 23:14:04 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2021-08-29 23:14:04 +0000 |
commit | 14963bb4d029568316db28c1fd91c3f8f362d8ab (patch) | |
tree | 8318e2962837d5c1bf4432ebf14eef0e5b31bc32 /multimedia | |
parent | 97c1d59293ef6a7de6506cb6acd5c1e90b85e10a (diff) | |
download | pkgsrc-14963bb4d029568316db28c1fd91c3f8f362d8ab.tar.gz |
mediatomb: let the RC script work unprivileged
This takes advantage of the introduction of the SYSCONFBASE variable.
Tested on NetBSD/amd64.
Bumps PKGREVISION.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mediatomb/Makefile | 4 | ||||
-rw-r--r-- | multimedia/mediatomb/files/mediatomb.sh | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/multimedia/mediatomb/Makefile b/multimedia/mediatomb/Makefile index d4a0514efe6..48bc4bb62f2 100644 --- a/multimedia/mediatomb/Makefile +++ b/multimedia/mediatomb/Makefile @@ -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 --git a/multimedia/mediatomb/files/mediatomb.sh b/multimedia/mediatomb/files/mediatomb.sh index ac4f957c54e..889ce30da41 100644 --- a/multimedia/mediatomb/files/mediatomb.sh +++ b/multimedia/mediatomb/files/mediatomb.sh @@ -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 @@ pidfile="@PKG_HOME@/${name}.pid" 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 |