svn commit: r480950 - in head: . archivers archivers/freeze print print/apsfilter print/hpijs

Eugene Grosbein eugen at grosbein.net
Sun Sep 30 16:05:34 UTC 2018


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).



More information about the svn-ports-head mailing list