FreeBSD Bugzilla – Attachment 149313 Details for
Bug 194959
multimedia/mediabrowser few suggestions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to mediabrowser port
mediabrowser.patch.txt (text/plain), 2.53 KB, created by
joshruehlig
on 2014-11-12 07:01:23 UTC
(
hide
)
Description:
Patch to mediabrowser port
Filename:
MIME Type:
Creator:
joshruehlig
Created:
2014-11-12 07:01:23 UTC
Size:
2.53 KB
patch
obsolete
>diff -u -r -N mediabrowser-orig/files/mediabrowser.in mediabrowser/files/mediabrowser.in >--- mediabrowser-orig/files/mediabrowser.in 2014-11-11 21:44:29.000000000 -0800 >+++ mediabrowser/files/mediabrowser.in 2014-11-11 23:00:35.000000000 -0800 >@@ -11,6 +11,12 @@ > # > # %%PORTNAME%%_enable: Set to YES to enable %%PORTNAME%% > # Default: NO >+# %%PORTNAME%%_user: The user account %%PORTNAME%% daemon runs as. >+# It uses '%%USER%%' user by default. >+# Do not sets it as empty or it will run as root. >+# %%PORTNAME%%_group: The group account %%PORTNAME%% daemon runs as. >+# It uses '%%GROUP%%' group by default. >+# Do not sets it as empty or it will run as wheel. > # %%PORTNAME%%_data_dir: Directory where %%PORTNAME%% configuration > # data is stored. > # Default: /var/db/%%PORTNAME%% >@@ -21,12 +27,14 @@ > load_rc_config $name > > : ${%%PORTNAME%%_enable:="NO"} >+: ${%%PORTNAME%%_user:="%%USER%%"} >+: ${%%PORTNAME%%_group:="%%GROUP%%"} > : ${%%PORTNAME%%_data_dir:="/var/db/%%PORTNAME%%"} > > pidfile="/var/run/%%PORTNAME%%.pid" > command="/usr/sbin/daemon" > procname="%%LOCALBASE%%/bin/mono" >-command_args="-f -u %%USER%% -p ${pidfile} ${procname} %%PREFIX%%/lib/mediabrowser/MediaBrowser.Server.Mono.exe -ffmpeg %%LOCALBASE%%/bin/ffmpeg -ffprobe %%LOCALBASE%%/bin/ffprobe -programdata ${%%PORTNAME%%_data_dir}" >+command_args="-f -p ${pidfile} ${procname} %%PREFIX%%/lib/mediabrowser/MediaBrowser.Server.Mono.exe -ffmpeg %%LOCALBASE%%/bin/ffmpeg -ffprobe %%LOCALBASE%%/bin/ffprobe -programdata ${%%PORTNAME%%_data_dir}" > > start_precmd=mediabrowser_precmd > mediabrowser_precmd() >@@ -34,9 +42,19 @@ > export LC_ALL="C" > export LANG="C" > >+ if [ ! -e ${pidfile} ]; then >+ install -g ${%%PORTNAME%%_group} -o ${%%PORTNAME%%_user} /dev/null ${pidfile}; >+ fi >+ > if [ ! -d "${%%PORTNAME%%_data_dir}" ]; then >- install -d -g %%GROUP%% -o %%GROUP%% "${%%PORTNAME%%_data_dir}"; >+ install -d -g ${%%PORTNAME%%_group} -o ${%%PORTNAME%%_user} "${%%PORTNAME%%_data_dir}"; > fi > } > >+stop_postcmd=mediabrowser_postcmd >+mediabrowser_postcmd() >+{ >+ rm -f ${pidfile} >+} >+ > run_rc_command "$1" >diff -u -r -N mediabrowser-orig/pkg-message mediabrowser/pkg-message >--- mediabrowser-orig/pkg-message 2014-11-11 21:44:29.000000000 -0800 >+++ mediabrowser/pkg-message 2014-11-11 21:50:03.000000000 -0800 >@@ -4,7 +4,7 @@ > from ports with the lame support option enabled. > > To automatically start MediaBrowser at boot time: >-# echo 'mediabrowser_enable="YES"' >> /etc/rc.conf >+# sysrc mediabrowser_enable="YES" > > To then manually start MediaBrowser without rebooting: > # service mediabrowser start
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194959
:
149308
|
149310
|
149311
|
149312
|
149313
|
149380
|
149381