mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
audio/forked-daapd: Remove substitions which are not related to variables
Remove %%PORTNAME%% and %%RC_NAME%% from: - files/forked-daapd.in - files/pkg-message.in Reported by: mat (mentor) Approved by: xxx (mentor) Reported by: mat Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D6329
This commit is contained in:
parent
348a3cb54b
commit
1e328be727
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415051
@ -33,8 +33,6 @@ USE_LDCONFIG= ${LOCALBASE}/lib/forked-daapd
|
||||
CONFIGURE_ARGS+=--localstatedir=/var
|
||||
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
RC_NAME= forked_daapd
|
||||
SUB_LIST= PORTNAME=${PORTNAME} RC_NAME=${RC_NAME}
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
USERS= daapd
|
||||
|
@ -2,34 +2,34 @@
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: %%PORTNAME%%
|
||||
# PROVIDE: forked-daapd
|
||||
# REQUIRE: avahi_daemon dbus
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# %%RC_NAME%%_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable %%PORTNAME%%.
|
||||
# %%RC_NAME%%_config (path): Set to %%PREFIX%%/etc/forked-daapd.conf
|
||||
# forked_daapd_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable forked-daapd.
|
||||
# forked_daapd_config (path): Set to %%PREFIX%%/etc/forked-daapd.conf
|
||||
# by default.
|
||||
# %%RC_NAME%%_flags (str): Set to "" by default
|
||||
# forked_daapd_flags (str): Set to "" by default
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=%%RC_NAME%%
|
||||
name=forked_daapd
|
||||
rcvar=${name}_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${%%RC_NAME%%_enable:="NO"}
|
||||
: ${%%RC_NAME%%_config:="%%PREFIX%%/etc/forked-daapd.conf"}
|
||||
: ${%%RC_NAME%%_flags:=""}
|
||||
: ${forked_daapd_enable:="NO"}
|
||||
: ${forked_daapd_config:="%%PREFIX%%/etc/forked-daapd.conf"}
|
||||
: ${forked_daapd_flags:=""}
|
||||
|
||||
pidfile="/var/run/%%PORTNAME%%.pid"
|
||||
required_files="$%%RC_NAME%%_config"
|
||||
pidfile="/var/run/forked-daapd.pid"
|
||||
required_files="$forked_daapd_config"
|
||||
|
||||
command="%%PREFIX%%/sbin/%%PORTNAME%%"
|
||||
command_args="-P $pidfile -c $%%RC_NAME%%_config $%%RC_NAME%%_flags"
|
||||
command="%%PREFIX%%/sbin/forked-daapd"
|
||||
command_args="-P $pidfile -c $forked_daapd_config $forked_daapd_flags"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
@ -1,21 +1,21 @@
|
||||
%%PORTNAME%% uses FFmpeg for transcoding audio playback.
|
||||
forked-daapd uses FFmpeg for transcoding audio playback.
|
||||
The default ports/pkg build of FFmpeg on FreeBSD has a number
|
||||
of options which could be SET/UNSET to provide support for
|
||||
additional audio codecs.
|
||||
|
||||
If you find %%PORTNAME%% does not support the audio codecs you
|
||||
If you find forked-daapd does not support the audio codecs you
|
||||
require, it is recommended to recompile the multimedia/ffmpeg
|
||||
package from ports with the necessary options ENABLED (SET).
|
||||
|
||||
You should review and edit the %%PORTNAME%% configuration
|
||||
file %%PREFIX%%/etc/%%PORTNAME%%.conf before first use.
|
||||
You should review and edit the forked-daapd configuration
|
||||
file %%PREFIX%%/etc/forked-daapd.conf before first use.
|
||||
|
||||
To automatically start %%PORTNAME%% at boot time:
|
||||
To automatically start forked-daapd at boot time:
|
||||
# sysrc 'dbus_enable=YES'
|
||||
# sysrc 'avahi_daemon_enable=YES'
|
||||
# sysrc '%%RC_NAME%%_enable=YES'
|
||||
# sysrc 'forked_daapd_enable=YES'
|
||||
|
||||
To then manually start %%PORTNAME%% without rebooting:
|
||||
To then manually start forked-daapd without rebooting:
|
||||
# service dbus start
|
||||
# service avahi-daemon start
|
||||
# service %%PORTNAME%% start
|
||||
# service forked-daapd start
|
||||
|
Loading…
Reference in New Issue
Block a user