pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/mediatomb mediatomb: improve the RC script ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4838212f6adf
branches:  trunk
changeset: 457704:4838212f6adf
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Mon Aug 30 21:49:00 2021 +0000

description:
mediatomb: improve the RC script provided

This should now work both with and without rc.subr available, on NetBSD and
with rc.subr from pkgsrc.

While there, update the homepage.

Tested on NetBSD/amd64.

Bumps PKGREVISION.

diffstat:

 multimedia/mediatomb/Makefile           |   6 +++---
 multimedia/mediatomb/files/mediatomb.sh |  14 ++++++++++----
 2 files changed, 13 insertions(+), 7 deletions(-)

diffs (50 lines):

diff -r f8a3c778385a -r 4838212f6adf multimedia/mediatomb/Makefile
--- a/multimedia/mediatomb/Makefile     Mon Aug 30 21:45:50 2021 +0000
+++ b/multimedia/mediatomb/Makefile     Mon Aug 30 21:49:00 2021 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: Makefile,v 1.79 2021/08/29 23:14:04 khorben Exp $
+# $NetBSD: Makefile,v 1.80 2021/08/30 21:49:00 khorben Exp $
 
 DISTNAME=      mediatomb-0.12.1
-PKGREVISION=   57
+PKGREVISION=   58
 CATEGORIES=    multimedia
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=mediatomb/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://mediatomb.cc/
+HOMEPAGE=      https://sourceforge.net/projects/mediatomb/
 COMMENT=       UPnP MediaServer with a web user interface
 LICENSE=       gnu-gpl-v2
 
diff -r f8a3c778385a -r 4838212f6adf multimedia/mediatomb/files/mediatomb.sh
--- a/multimedia/mediatomb/files/mediatomb.sh   Mon Aug 30 21:45:50 2021 +0000
+++ b/multimedia/mediatomb/files/mediatomb.sh   Mon Aug 30 21:49:00 2021 +0000
@@ -1,17 +1,23 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: mediatomb.sh,v 1.3 2021/08/29 23:14:04 khorben Exp $
+# $NetBSD: mediatomb.sh,v 1.4 2021/08/30 21:49:00 khorben Exp $
 #
 # PROVIDE: mediatomb
 # REQUIRE: DAEMON
 # KEYWORD: shutdown
+#
+# You will need to set some variables in @PKG_SYSCONFDIR@/rc.conf to start mediatomb:
+#
+# mediatomb=YES
 
-. @SYSCONFBASE@/rc.subr
+if [ -f @SYSCONFBASE@/rc.subr ]; then
+       . @SYSCONFBASE@/rc.subr
+       load_rc_config_var mediatomb_username mediatomb_username
+       load_rc_config_var mediatomb_groupname mediatomb_groupname
+fi
 
 name="mediatomb"
 rcvar=$name
-load_rc_config_var mediatomb_username mediatomb_username
-load_rc_config_var mediatomb_groupname mediatomb_groupname
 command="@PREFIX@/bin/mediatomb"
 logfile="@VARBASE@/log/${name}.log"
 pidfile="@PKG_HOME@/${name}.pid"



Home | Main Index | Thread Index | Old Index