summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorplunky <plunky@pkgsrc.org>2010-12-01 19:28:25 +0000
committerplunky <plunky@pkgsrc.org>2010-12-01 19:28:25 +0000
commit647b66f39cb552e8f1fc449cf4037c9382b14813 (patch)
tree83a49d7eef589c8a1e783844c2f89e428adbbcef
parent5179a19aca27c84c26eaf89b6a342675105e53ac (diff)
downloadpkgsrc-647b66f39cb552e8f1fc449cf4037c9382b14813.tar.gz
update rc.d script: it is now optional to specify the RFCOMM channel
(bump PKGREVISION)
-rw-r--r--comms/obexapp/Makefile3
-rw-r--r--comms/obexapp/files/obexapp.sh10
2 files changed, 7 insertions, 6 deletions
diff --git a/comms/obexapp/Makefile b/comms/obexapp/Makefile
index c44c2a535af..76e5ec3cf11 100644
--- a/comms/obexapp/Makefile
+++ b/comms/obexapp/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.26 2010/11/17 19:14:33 plunky Exp $
+# $NetBSD: Makefile,v 1.27 2010/12/01 19:28:25 plunky Exp $
#
DISTNAME= obexapp-1.4.14
+PKGREVISION= 1
CATEGORIES= comms
MASTER_SITES= http://people.freebsd.org/~emax/obexapp/
diff --git a/comms/obexapp/files/obexapp.sh b/comms/obexapp/files/obexapp.sh
index 1cc3619246f..fa1d92986b4 100644
--- a/comms/obexapp/files/obexapp.sh
+++ b/comms/obexapp/files/obexapp.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: obexapp.sh,v 1.1 2007/03/01 21:39:09 plunky Exp $
+# $NetBSD: obexapp.sh,v 1.2 2010/12/01 19:28:27 plunky Exp $
#
# PROVIDE: obexapp
# REQUIRE: sdpd
@@ -20,11 +20,11 @@ command="@PREFIX@/bin/${name}"
load_rc_config ${name}
-if @TEST@ -z "${obexapp_channel}"; then
- err 1 "Must specify obexapp_channel"
-fi
+command_args="-s -S -r ${obexapp_pathname:-@VARBASE@/spool/obex}"
-command_args="-s -S -C ${obexapp_channel} -r ${obexapp_pathname:-@VARBASE@/spool/obex}"
+if @TEST@ "${obexapp_channel}"; then
+ command_args="${command_args} -C ${obexapp_channel}"
+fi
if @TEST@ "${obexapp_username}"; then
command_args="${command_args} -u ${obexapp_username}"