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.
This commit is contained in:
parent
ab5b8a94a4
commit
5bd8a3c351
2 changed files with 13 additions and 7 deletions
|
@ -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
|
||||
HOMEPAGE= http://mediatomb.cc/
|
||||
HOMEPAGE= https://sourceforge.net/projects/mediatomb/
|
||||
COMMENT= UPnP MediaServer with a web user interface
|
||||
LICENSE= gnu-gpl-v2
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue