From 7185a4d5d3580e164d6cf0a63c97cbee468591c7 Mon Sep 17 00:00:00 2001 From: trasz Date: Sun, 8 Jul 2007 12:32:13 +0000 Subject: - Fix rc script to not emit a warning at startup when oss_enable is not set in /etc/rc.conf, and mention oss_enable in pkg-message.in. Approved by: miwi (mentor) --- audio/oss/Makefile | 2 +- audio/oss/files/oss.in | 3 ++- audio/oss/files/pkg-message.in | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/audio/oss/Makefile b/audio/oss/Makefile index c826f99..b3a4afa 100644 --- a/audio/oss/Makefile +++ b/audio/oss/Makefile @@ -7,7 +7,7 @@ PORTNAME= oss DISTVERSION= 4.0-build1003 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio kld MASTER_SITES= http://developer.opensound.com/sources/stable/ DISTNAME= ${PORTNAME}-v${DISTVERSION}-src-gpl diff --git a/audio/oss/files/oss.in b/audio/oss/files/oss.in index 3454a46..6fc9724 100644 --- a/audio/oss/files/oss.in +++ b/audio/oss/files/oss.in @@ -7,7 +7,8 @@ . %%RC_SUBR%% name="oss" -rcvar=${name}_enable +rcvar=`set_rcvar` +oss_enable="${oss_enable:-NO}" stop_cmd="oss_stop" start_cmd="oss_start" diff --git a/audio/oss/files/pkg-message.in b/audio/oss/files/pkg-message.in index 4e74f16..512622a 100644 --- a/audio/oss/files/pkg-message.in +++ b/audio/oss/files/pkg-message.in @@ -4,4 +4,6 @@ This port uses installation procedure that is very different from the one used by 4Front and is not supported by them. All bug reports should go to the port maintainer via the usual PR mechanism. +To load OSS at boot, add oss_enable="YES" to your /etc/rc.conf. + --------------------------------------------------------------------- -- cgit v1.1