1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Remove a bogus use of USE_RCORDER, and while I'm here move the files

*.sh.in -> *.in, and tune them up.
This commit is contained in:
Doug Barton 2012-08-05 20:46:40 +00:00
parent 0174faf428
commit 6662c6791c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=302134
3 changed files with 21 additions and 20 deletions

View File

@ -19,7 +19,7 @@ PROGRAMS= jscal jstest
MAN1= ${PROGRAMS:S|$|.1|}
MAN4= linux_js.4
PORTDOCS= joystick-api.txt
USE_RCORDER= jscal.sh linux_js.sh
USE_RC_SUBR= jscal linux_js
OPTIONS_DEFINE= LINUX JOY UHID DOCS
OPTIONS_DEFAULT= LINUX JOY UHID

View File

@ -1,18 +1,22 @@
#!/bin/sh
# $FreeBSD$
# $FreeBSD$
#
# PROVIDE: jscal
# REQUIRE: linux_js
# KEYWORD: shutdown
jscal_enable=${jscal_enable-"NO"}
. /etc/rc.subr
name=jscal
rcvar=jscal_enable
load_rc_config $name
jscal_enable=${jscal_enable:-"NO"}
jscal_devices="${jscal_devices:-/dev/input/js*}"
jscal_state="${jscal_state:-/var/db/jscal-state}"
. /etc/rc.subr
name="jscal"
rcvar=jscal_enable
command="%%PREFIX%%/bin/jscal"
start_cmd="jscal_start"
stop_cmd="jscal_stop"
@ -38,5 +42,4 @@ jscal_stop()
done
}
load_rc_config $name
run_rc_command "$1"

View File

@ -1,23 +1,22 @@
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: linux_js
# REQUIRE: LOGIN
# KEYWORD: shutdown
linux_js_enable=${linux_js_enable-"NO"}
. /etc/rc.subr
name="linux_js"
name=linux_js
rcvar=linux_js_enable
start_cmd="linux_js_start"
stop_cmd="linux_js_stop"
linux_js_start()
{
echo "Starting ${name}."
kldload linux_js
}
load_rc_config $name
linux_js_enable=${linux_js_enable:-"NO"}
start_cmd="load_kld -m linux_js"
stop_cmd="linux_js_stop"
linux_js_stop()
{
@ -25,5 +24,4 @@ linux_js_stop()
kldunload linux_js
}
load_rc_config $name
run_rc_command "$1"