Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Sep 2018 23:05:18 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Cy Schubert <Cy.Schubert@cschubert.com>, Rene Ladan <rene@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r480950 - in head: . archivers archivers/freeze print print/apsfilter print/hpijs
Message-ID:  <99f141e9-d98c-d41e-5686-344beb3b62d4@grosbein.net>
In-Reply-To: <201809301338.w8UDcNcu066031@slippy.cwsent.com>
References:  <201809301338.w8UDcNcu066031@slippy.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
30.09.2018 20:38, Cy Schubert wrote:

> Maybe cups is the answer. Which brings me to the possibility of 
> deprecating lpr/lpd in base for 13. Who other than me, who uses (used) 
> it any more?

I use lpr/lpd for office applications/xpdf/firefix to print to local USB-connected HP LaserJet 1022
as well as to office network-connected Kyocera FS-6530MFP and previously to Xerox WorkCentre M118.

I prefer not touching CUPS. Please leave lpd alone.

As our Handbook states, we still need only GhostScript plus simple if-filter like this:

#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

IFS="" read -r first_line
first_two_chars=`expr "$first_line" : '\(..\)'`

if [ "$first_two_chars" = "%!" ]; then
  { echo "$first_line"; cat; }
else
  { echo "$first_line"; cat; } | \
  a2ps -1 -B -X koi8-r -i -q --borders no --end-of-line=n --medium=A4 -o -
fi | gs -q -sDEVICE=pxlmono -dBATCH -dSAFER -dNOPAUSE \
            -sPAPERSIZE=a4 -sOutputFile=- -
#EOF

And in /etc/printcap:

lp|Kyocera|Kyocera FS-6530MFP:\
        :sh:lf=/var/log/lpd-errs:\
        :rm=192.168.10.22:ct=180:\
        :if=/usr/local/libexec/if-kyocera:\
        :sd=/var/spool/output/kyocera:\
        :ss=/var/spool/output/kyocera/sent:

dp|Kyocera Duplex:\
        :sh:lf=/var/log/lpd-errs:\
        :rm=192.168.10.22:ct=180:\
        :if=/usr/local/libexec/if-kyocera-duplex:\
        :sd=/var/spool/output/kyocera-d:\
        :ss=/var/spool/output/kyocera-d/sent:

(if-kyocera-duplex adds -dDuplex to gs invocation).




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99f141e9-d98c-d41e-5686-344beb3b62d4>