Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2018 09:21:05 +0000 (UTC)
From:      Brad Davis <brd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338822 - in head: etc usr.sbin/lpr/lpd
Message-ID:  <201809200921.w8K9L5od080266@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brd
Date: Thu Sep 20 09:21:05 2018
New Revision: 338822
URL: https://svnweb.freebsd.org/changeset/base/338822

Log:
  Move hosts.lpd and printcap to usr.sbin/lpr/lpd/
  
  This leverages CONFS to handle the install
  
  Approved by:	re (blanket, pkgbase), bapt (mentor)
  Differential Revision:	https://reviews.freebsd.org/D17238

Added:
  head/usr.sbin/lpr/lpd/hosts.lpd
     - copied unchanged from r338821, head/etc/hosts.lpd
  head/usr.sbin/lpr/lpd/printcap
     - copied unchanged from r338821, head/etc/printcap
Deleted:
  head/etc/hosts.lpd
  head/etc/printcap
Modified:
  head/etc/Makefile
  head/usr.sbin/lpr/lpd/Makefile

Modified: head/etc/Makefile
==============================================================================
--- head/etc/Makefile	Thu Sep 20 08:03:21 2018	(r338821)
+++ head/etc/Makefile	Thu Sep 20 09:21:05 2018	(r338822)
@@ -22,10 +22,6 @@ BIN1=	\
 
 # NB: keep these sorted by MK_* knobs
 
-.if ${MK_LPR} != "no"
-BIN1+=	hosts.lpd printcap
-.endif
-
 .if ${MK_OPENSSL} != "no"
 SSL=	${SRCTOP}/crypto/openssl/apps/openssl.cnf
 .endif

Modified: head/usr.sbin/lpr/lpd/Makefile
==============================================================================
--- head/usr.sbin/lpr/lpd/Makefile	Thu Sep 20 08:03:21 2018	(r338821)
+++ head/usr.sbin/lpr/lpd/Makefile	Thu Sep 20 09:21:05 2018	(r338822)
@@ -1,6 +1,7 @@
 #	From: @(#)Makefile	8.1 (Berkeley) 6/6/93
 # $FreeBSD$
 
+CONFS=	hosts.lpd printcap
 PROG=	lpd
 MAN=	lpd.8
 SRCS=	lpd.c printjob.c recvjob.c lpdchar.c modes.c

Copied: head/usr.sbin/lpr/lpd/hosts.lpd (from r338821, head/etc/hosts.lpd)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/usr.sbin/lpr/lpd/hosts.lpd	Thu Sep 20 09:21:05 2018	(r338822, copy of r338821, head/etc/hosts.lpd)
@@ -0,0 +1,4 @@
+# $FreeBSD$
+#
+# See lpd(8)
+#machine.domain

Copied: head/usr.sbin/lpr/lpd/printcap (from r338821, head/etc/printcap)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/usr.sbin/lpr/lpd/printcap	Thu Sep 20 09:21:05 2018	(r338822, copy of r338821, head/etc/printcap)
@@ -0,0 +1,54 @@
+#	@(#)printcap	5.3 (Berkeley) 6/30/90
+# $FreeBSD$
+
+#
+# This enables a simple local "raw" printer, hooked up to the first
+# parallel port.  No kind of filtering is done, so everything you pass
+# to the "lpr" command will be printed unmodified.
+#
+# Remember, for further print queues you're going to add, you have
+# to choose different spool directories (the "sd" capability below),
+# otherwise you will greatly confuse lpd.
+#
+# For some advanced printing, have a look at the "apsfilter" package.
+# It plugs into the lpd system, allowing you to print a variety of
+# different file types by converting everything to PostScript(tm)
+# format.  For more information about apsfilter visit
+#
+#	     http://www.apsfilter.org/
+#
+# If you don't have a PostScript(tm) printer, don't panic, but do
+# also install the latest "ghostscript" package for best printer support.
+#
+# Do also refer to the "printing" section of the handbook.
+#
+#	https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing.html
+#
+# A local copy can be found under
+#
+#	/usr/share/doc/handbook/handbook.{html,latin1}.
+#
+# Banner pages are now suppressed by default.  Remove the :sh: capability
+# to turn them back on.
+#
+#lp|local line printer:\
+#	:sh:\
+#	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
+#
+# Sample remote printer.  The physical printer is on machine "lphost".
+# You can perform any kind of local filtering directly.  If you need
+# local filters (e.g. LF -> CR-LF conversion for HP printers), create
+# a filter script that sends the proper escape sequence to the printer
+# and then concatenates stdin to stdout.
+#
+#remote|sample remote printer:\
+#	:sh:\
+#	:rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:\
+#	:if=/usr/local/libexec/if-script:
+#
+# Simple Russian printer with hardware CP866 character set, output filter
+# used for KOI8-R -> CP866 conversion
+#
+#lp|Russian local line printer:\
+#	:sh:of=/usr/libexec/lpr/ru/koi2alt:\
+#	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809200921.w8K9L5od080266>