Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2016 08:09:20 +0000 (UTC)
From:      Ben Woods <woodsb02@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r415051 - in head/audio/forked-daapd: . files
Message-ID:  <201605120809.u4C89K82017505@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: woodsb02
Date: Thu May 12 08:09:20 2016
New Revision: 415051
URL: https://svnweb.freebsd.org/changeset/ports/415051

Log:
  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

Modified:
  head/audio/forked-daapd/Makefile
  head/audio/forked-daapd/files/forked-daapd.in
  head/audio/forked-daapd/files/pkg-message.in

Modified: head/audio/forked-daapd/Makefile
==============================================================================
--- head/audio/forked-daapd/Makefile	Thu May 12 04:43:28 2016	(r415050)
+++ head/audio/forked-daapd/Makefile	Thu May 12 08:09:20 2016	(r415051)
@@ -33,8 +33,6 @@ USE_LDCONFIG=	${LOCALBASE}/lib/forked-da
 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

Modified: head/audio/forked-daapd/files/forked-daapd.in
==============================================================================
--- head/audio/forked-daapd/files/forked-daapd.in	Thu May 12 04:43:28 2016	(r415050)
+++ head/audio/forked-daapd/files/forked-daapd.in	Thu May 12 08:09:20 2016	(r415051)
@@ -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"

Modified: head/audio/forked-daapd/files/pkg-message.in
==============================================================================
--- head/audio/forked-daapd/files/pkg-message.in	Thu May 12 04:43:28 2016	(r415050)
+++ head/audio/forked-daapd/files/pkg-message.in	Thu May 12 08:09:20 2016	(r415051)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605120809.u4C89K82017505>