ports/print/bsd_lpr/files/bsd_lpd.in
Bruce M Simpson ae72c70931 Add port entry for the base system LPR sources.
When world is installed w/ WITHOUT_LPR, they will not be present. Like
the compat packages this allows it to be added back in; this also supports
novel uses like using pfSense to build an embedded print server.

FYI: For raw queue use, bsd lpd's footprint is a few 100k on disk; cups
is ~12MB.

Reviewed by:	dougb
2010-02-08 14:52:39 +00:00

27 lines
418 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: bsd_lpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="bsd_lpd"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/lpd"
required_files="%%PREFIX%%/etc/printcap"
start_precmd="bsd_chkprintcap"
bsd_chkprintcap()
{
if checkyesno bsd_chkprintcap_enable ; then
%%PREFIX%%/sbin/chkprintcap ${chkprintcap_flags}
fi
}
load_rc_config $name
run_rc_command "$1"