Date: Mon, 29 Oct 2012 12:41:02 +0000 (UTC) From: Chris Rees <crees@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r306606 - in head/sysutils/uhidd: . files Message-ID: <201210291241.q9TCf2g6062704@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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() {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210291241.q9TCf2g6062704>