From owner-svn-ports-head@FreeBSD.ORG Mon Oct 29 12:41:02 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9AC758DE; Mon, 29 Oct 2012 12:41:02 +0000 (UTC) (envelope-from crees@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 830C38FC25; Mon, 29 Oct 2012 12:41:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9TCf292062707; Mon, 29 Oct 2012 12:41:02 GMT (envelope-from crees@svn.freebsd.org) Received: (from crees@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9TCf2g6062704; Mon, 29 Oct 2012 12:41:02 GMT (envelope-from crees@svn.freebsd.org) Message-Id: <201210291241.q9TCf2g6062704@svn.freebsd.org> From: Chris Rees Date: Mon, 29 Oct 2012 12:41:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r306606 - in head/sysutils/uhidd: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 12:41:02 -0000 Author: crees Date: Mon Oct 29 12:41:01 2012 New Revision: 306606 URL: http://svn.freebsd.org/changeset/ports/306606 Log: Style fixes and remove unconditional use of [ Users should see some microseconds shaved off boot :) Approved by: Kai Wang (maintainer) Feature safe: yes Modified: head/sysutils/uhidd/Makefile head/sysutils/uhidd/files/uhidd.in Modified: head/sysutils/uhidd/Makefile ============================================================================== --- head/sysutils/uhidd/Makefile Mon Oct 29 12:18:43 2012 (r306605) +++ head/sysutils/uhidd/Makefile Mon Oct 29 12:41:01 2012 (r306606) @@ -3,6 +3,7 @@ PORTNAME= uhidd PORTVERSION= 0.2.1 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= GOOGLE_CODE \ http://people.freebsd.org/~kaiw/distfiles/ Modified: head/sysutils/uhidd/files/uhidd.in ============================================================================== --- head/sysutils/uhidd/files/uhidd.in Mon Oct 29 12:18:43 2012 (r306605) +++ head/sysutils/uhidd/files/uhidd.in Mon Oct 29 12:41:01 2012 (r306606) @@ -7,30 +7,26 @@ # REQUIRE: DAEMON cleanvar # KEYWORD: nojail shutdown -. /etc/rc.subr - # Usage: # uhidd start ugenX.Y # start uhidd on device 'ugenX.Y' # uhidd stop ugenX.Y # stop uhidd on device 'ugenX.Y' # uhidd start # start uhidd on all ugen device. # uhidd stop # stop all uhidd instances. -name="uhidd" +. /etc/rc.subr + +name=uhidd rcvar=uhidd_enable -command="%%PREFIX%%/sbin/${name}" -start_cmd="uhidd_start" -required_modules="vkbd" -pidprefix="/var/run/uhidd" load_rc_config $name -: ${uhidd_enable="NO"} +: ${uhidd_enable:=NO} -if [ -n "$2" ]; then - pidfile="${pidprefix}.`basename $2`.pid" -else - pidfile= -fi +command=%%PREFIX%%/sbin/${name} +start_cmd=uhidd_start +required_modules=vkbd +pidprefix=/var/run/uhidd +pidfile=${2+$pidprefix.`basename $2`.pid} uhidd_start() {