diff options
author | plunky <plunky> | 2010-12-01 19:28:25 +0000 |
---|---|---|
committer | plunky <plunky> | 2010-12-01 19:28:25 +0000 |
commit | 232cced75a5d6d32a017c0c20de0b309e63a7d0f (patch) | |
tree | 83a49d7eef589c8a1e783844c2f89e428adbbcef /comms | |
parent | d7f4ec765682415227cb0ea14eec6feae83b2a6e (diff) | |
download | pkgsrc-232cced75a5d6d32a017c0c20de0b309e63a7d0f.tar.gz |
update rc.d script: it is now optional to specify the RFCOMM channel
(bump PKGREVISION)
Diffstat (limited to 'comms')
-rw-r--r-- | comms/obexapp/Makefile | 3 | ||||
-rw-r--r-- | comms/obexapp/files/obexapp.sh | 10 |
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}" |