aboutsummaryrefslogtreecommitdiff
path: root/graphics/sane-backends
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2012-03-19 23:33:15 +0000
committerDoug Barton <dougb@FreeBSD.org>2012-03-19 23:33:15 +0000
commit018f02b917be354c53e6a655a909e6cb5e854871 (patch)
tree75fe0d3b96731963165b62f3960d6be512dbf3b4 /graphics/sane-backends
parentdc117bd953d58e28a11af60e05780d15a2a57146 (diff)
downloadports-018f02b917be354c53e6a655a909e6cb5e854871.tar.gz
ports-018f02b917be354c53e6a655a909e6cb5e854871.zip
Notes
Diffstat (limited to 'graphics/sane-backends')
-rw-r--r--graphics/sane-backends/Makefile2
-rw-r--r--graphics/sane-backends/files/saned.in30
2 files changed, 15 insertions, 17 deletions
diff --git a/graphics/sane-backends/Makefile b/graphics/sane-backends/Makefile
index 67040f81b1fb..088b5eccac05 100644
--- a/graphics/sane-backends/Makefile
+++ b/graphics/sane-backends/Makefile
@@ -7,7 +7,7 @@
PORTNAME= sane-backends
PORTVERSION= 1.0.22
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://alioth.debian.org/frs/download.php/3503/ \
ftp://ftp2.sane-project.org/pub/sane/%SUBDIR%/
diff --git a/graphics/sane-backends/files/saned.in b/graphics/sane-backends/files/saned.in
index cfee7fc8fcc5..4977aa77a4eb 100644
--- a/graphics/sane-backends/files/saned.in
+++ b/graphics/sane-backends/files/saned.in
@@ -1,37 +1,35 @@
#!/bin/sh
-#
+
# $FreeBSD$
#
# PROVIDE: saned
-# REQUIRE: LOGIN netif routing mountcritlocal
-# BEFORE: NETWORKING
-#
-# A sample saned startup script.
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
#
-# Add the following line to /etc/rc.conf to enable saned:
+# Add the following line to /etc/rc.conf[.local] to enable saned:
# saned_enable="YES"
-#
. /etc/rc.subr
-name="saned"
+name=saned
rcvar=saned_enable
-command="%%PREFIX%%/sbin/${name}"
-start_precmd=${name}_prestart
+load_rc_config saned
+
+: ${saned_enable:="NO"}
+: ${saned_uid:="saned"}
+
+command="%%PREFIX%%/sbin/saned"
+
+start_precmd=saned_prestart
saned_prestart()
{
case "${saned_flags}" in
- *-a\ *) err "saned_flags includes the -a option. Please use saned_uid instead." ;;
+ *-a\ *) err 1 'saned_flags includes the -a option. Please use saned_uid instead' ;;
esac
}
-load_rc_config $name
-
-: ${saned_enable="NO"}
-: ${saned_uid="saned"}
-
command_args="-a $saned_uid"
run_rc_command "$1"