pkgsrc-Changes archive

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

CVS commit: pkgsrc/multimedia/mediatomb



Module Name:    pkgsrc
Committed By:   khorben
Date:           Sun Aug 29 23:14:04 UTC 2021

Modified Files:
        pkgsrc/multimedia/mediatomb: Makefile
        pkgsrc/multimedia/mediatomb/files: mediatomb.sh

Log Message:
mediatomb: let the RC script work unprivileged

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

Bumps PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 pkgsrc/multimedia/mediatomb/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/multimedia/mediatomb/files/mediatomb.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/multimedia/mediatomb/Makefile
diff -u pkgsrc/multimedia/mediatomb/Makefile:1.78 pkgsrc/multimedia/mediatomb/Makefile:1.79
--- pkgsrc/multimedia/mediatomb/Makefile:1.78   Wed Apr 21 13:25:05 2021
+++ pkgsrc/multimedia/mediatomb/Makefile        Sun Aug 29 23:14:04 2021
@@ -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/}
 

Index: pkgsrc/multimedia/mediatomb/files/mediatomb.sh
diff -u pkgsrc/multimedia/mediatomb/files/mediatomb.sh:1.2 pkgsrc/multimedia/mediatomb/files/mediatomb.sh:1.3
--- pkgsrc/multimedia/mediatomb/files/mediatomb.sh:1.2  Mon Jan  5 12:28:32 2009
+++ pkgsrc/multimedia/mediatomb/files/mediatomb.sh      Sun Aug 29 23:14:04 2021
@@ -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



Home | Main Index | Thread Index | Old Index