svn commit: r306606 - in head/sysutils/uhidd: . files
Chris Rees
crees at FreeBSD.org
Mon Oct 29 12:41:02 UTC 2012
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()
{
More information about the svn-ports-all
mailing list