mirror of
https://git.freebsd.org/ports.git
synced 2025-07-07 20:39:18 -04:00
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
27 lines
418 B
Bash
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"
|