summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2007-07-08 12:32:13 +0000
committertrasz <trasz@FreeBSD.org>2007-07-08 12:32:13 +0000
commit7185a4d5d3580e164d6cf0a63c97cbee468591c7 (patch)
tree4f1cc98ee9d726a52c4baf0f377be20dae86dc3b
parentea1115e03cbf317e4c9c822bc76b7e82e9f1eed0 (diff)
downloadFreeBSD-ports-7185a4d5d3580e164d6cf0a63c97cbee468591c7.zip
FreeBSD-ports-7185a4d5d3580e164d6cf0a63c97cbee468591c7.tar.gz
- 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)
-rw-r--r--audio/oss/Makefile2
-rw-r--r--audio/oss/files/oss.in3
-rw-r--r--audio/oss/files/pkg-message.in2
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.
+
---------------------------------------------------------------------
OpenPOWER on IntegriCloud