diff options
author | khorben <khorben@pkgsrc.org> | 2021-08-30 21:49:00 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2021-08-30 21:49:00 +0000 |
commit | 6e09dfcf2182b4e9a4186bd82a9e4410890c67b4 (patch) | |
tree | 802626ab33927298081eba9f7270911de763f9cb | |
parent | 1095a3e29ce8fbed02b147d4e38d8d001213f516 (diff) | |
download | pkgsrc-6e09dfcf2182b4e9a4186bd82a9e4410890c67b4.tar.gz |
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.
-rw-r--r-- | multimedia/mediatomb/Makefile | 6 | ||||
-rw-r--r-- | multimedia/mediatomb/files/mediatomb.sh | 14 |
2 files changed, 13 insertions, 7 deletions
diff --git a/multimedia/mediatomb/Makefile b/multimedia/mediatomb/Makefile index 48bc4bb62f2..d8cb88eced2 100644 --- a/multimedia/mediatomb/Makefile +++ b/multimedia/mediatomb/Makefile @@ -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 diff --git a/multimedia/mediatomb/files/mediatomb.sh b/multimedia/mediatomb/files/mediatomb.sh index 889ce30da41..0fa4a20bb1f 100644 --- a/multimedia/mediatomb/files/mediatomb.sh +++ b/multimedia/mediatomb/files/mediatomb.sh @@ -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" |