aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2007-07-08 20:32:13 +0800
committertrasz <trasz@FreeBSD.org>2007-07-08 20:32:13 +0800
commit7185a4d5d3580e164d6cf0a63c97cbee468591c7 (patch)
tree4f1cc98ee9d726a52c4baf0f377be20dae86dc3b
parentea1115e03cbf317e4c9c822bc76b7e82e9f1eed0 (diff)
downloadfreebsd-ports-gnome-7185a4d5d3580e164d6cf0a63c97cbee468591c7.tar.gz
freebsd-ports-gnome-7185a4d5d3580e164d6cf0a63c97cbee468591c7.tar.zst
freebsd-ports-gnome-7185a4d5d3580e164d6cf0a63c97cbee468591c7.zip
- 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 c826f99461c6..b3a4afa686c0 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 3454a4667a8d..6fc9724d8895 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 4e74f16c4020..512622a0b914 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.
+
---------------------------------------------------------------------