diff options
author | Doug Barton <dougb@FreeBSD.org> | 2006-05-25 07:47:22 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2006-05-25 07:47:22 +0000 |
commit | b1adad3a20cb7e49bfc9e4f053dda6237264a206 (patch) | |
tree | fc7b7f6b5583e08fa1ed65e90107a75b034f205c /print/hplip3/files/hpiod.sh.in | |
parent | Update to 1.17 (diff) |
From the PR:
1. Update to version 0.9.11, the latest from HP.
2. Add WITH_GUI option so that the port can be built without the
py-qt dependency.
3. Fix incorrect broken for 4.x check.
On my own:
4. Tune up the rc.d startup scripts to look more like the example
in the Porter's Handbook, including removal of the spurious
FreeBSD KEYWORD.
PR: ports/97661
Submitted by: "Anish Mistry" <amistry@am-productions.biz> (maintainer)
Notes
Notes:
svn path=/head/; revision=163344
Diffstat (limited to 'print/hplip3/files/hpiod.sh.in')
-rw-r--r-- | print/hplip3/files/hpiod.sh.in | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/print/hplip3/files/hpiod.sh.in b/print/hplip3/files/hpiod.sh.in index 8e2bee4637e9..4852d2568d98 100644 --- a/print/hplip3/files/hpiod.sh.in +++ b/print/hplip3/files/hpiod.sh.in @@ -2,25 +2,24 @@ # PROVIDE: hpiod # REQUIRE: NETWORKING -# KEYWORD: FreeBSD shutdown - -[ -z "${hpiod_enable}" ] && hpiod_enable="NO" +# KEYWORD: shutdown . /etc/rc.subr -prefix=%%PREFIX%% - name=hpiod +rcvar=${name}_enable + +command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" portfile="/var/run/${name}.port" hpiod_user=hplip -command="${prefix}/sbin/${name}" -start_precmd="hpiod_prestart" -rcvar=`set_rcvar` +start_precmd="hpiod_prestart" load_rc_config $name +: ${hpiod_enable="NO"} + hpiod_prestart() { touch ${pidfile} |