From 31797f7ac01f319089f624d4912bf2137329a2d7 Mon Sep 17 00:00:00 2001 From: Michael Scheidell Date: Wed, 25 Apr 2012 22:14:19 +0000 Subject: - Correct previous commit: rplay.in sb rplayd.in, rename file, fix Makefile PR: ports/166658 Submitted by: scheidell@ (me) --- audio/rplay/Makefile | 2 +- audio/rplay/files/rplay.in | 28 ---------------------------- audio/rplay/files/rplayd.in | 28 ++++++++++++++++++++++++++++ audio/rplay/pkg-plist | 2 +- 4 files changed, 30 insertions(+), 30 deletions(-) delete mode 100644 audio/rplay/files/rplay.in create mode 100644 audio/rplay/files/rplayd.in (limited to 'audio/rplay') diff --git a/audio/rplay/Makefile b/audio/rplay/Makefile index 95724f59904b..6bcbd3485681 100644 --- a/audio/rplay/Makefile +++ b/audio/rplay/Makefile @@ -29,7 +29,7 @@ INFO= RPLAY RPTP librplay rplayd .include -USE_RC_SUBR= rplay +USE_RC_SUBR= rplayd .if ${ARCH} == "amd64" # pr ports/166658 mentions a problem with amd64. if it happens on i386, you can delete this conditional diff --git a/audio/rplay/files/rplay.in b/audio/rplay/files/rplay.in deleted file mode 100644 index ead8508d4049..000000000000 --- a/audio/rplay/files/rplay.in +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: rplayd -# REQUIRE: LOGIN -# KEYWORD: shutdown - -# -# Add the following lines to /etc/rc.conf to enable rplayd -# -#rplayd_enable="YES" -# - -. /etc/rc.subr - -name=rplayd -rcvar=rplayd_enable - -load_rc_config $name - -# set defaults: -: ${rplayd_enable:="NO"} - -command=%%PREFIX%%/sbin/${name} - -run_rc_command "$1" diff --git a/audio/rplay/files/rplayd.in b/audio/rplay/files/rplayd.in new file mode 100644 index 000000000000..ead8508d4049 --- /dev/null +++ b/audio/rplay/files/rplayd.in @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: rplayd +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable rplayd +# +#rplayd_enable="YES" +# + +. /etc/rc.subr + +name=rplayd +rcvar=rplayd_enable + +load_rc_config $name + +# set defaults: +: ${rplayd_enable:="NO"} + +command=%%PREFIX%%/sbin/${name} + +run_rc_command "$1" diff --git a/audio/rplay/pkg-plist b/audio/rplay/pkg-plist index a82707c36a3b..9531f1a77638 100644 --- a/audio/rplay/pkg-plist +++ b/audio/rplay/pkg-plist @@ -1,4 +1,4 @@ -@unexec rm -f %D/etc/rc.d/rplay.sh* +@unexec rm -f %D/etc/rc.d/rplayd.sh* @unexec if cmp %D/etc/rplay.hosts.sample %D/etc/rplay.hosts 2>/dev/null; then rm -f %D/etc/rplay.hosts; fi etc/rplay.hosts.sample @unexec if cmp %D/etc/rplay.conf.sample %D/etc/rplay.conf 2>/dev/null; then rm -f %D/etc/rplay.conf; fi -- cgit v1.2.3