CVS: cvs.openbsd.org: ports

2014-02-24 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:ports
Changes by: na...@cvs.openbsd.org   2014/02/24 11:29:25

Modified files:
.  : INDEX 

Log message:
sync, 8743



Best practice for CUPS-less foomatic use?

2014-02-24 Thread Josh Grosse
I'm currently using foomatic-rip with lpd(8) for standard print, but find
myself using foomatic-rip directly, without spooling, when I need to set
a print option such as papersize or InputPort (tray).  

I am not using apsfilter, which uses lpr(1)'s -C option to pass print
options, as I am using the printer vendor's supplied PPD file with Foomatic.

I am wondering how others are managing print options with Postscript printers.



Re: Best practice for CUPS-less foomatic use?

2014-02-24 Thread André Stöbe
Josh Grosse wrote:
 I'm currently using foomatic-rip with lpd(8) for standard print, but find
 myself using foomatic-rip directly, without spooling, when I need to set
 a print option such as papersize or InputPort (tray).  
 
 I am not using apsfilter, which uses lpr(1)'s -C option to pass print
 options, as I am using the printer vendor's supplied PPD file with Foomatic.
 
 I am wondering how others are managing print options with Postscript printers.

I had a similar setup some time ago. If I remember correctly, you can
use lpr's -J option to pass options to foomatic-rip.

Regards
André



Re: Best practice for CUPS-less foomatic use?

2014-02-24 Thread Josh Grosse
On Mon, Feb 24, 2014 at 06:36:35PM +0100, Andr?? St??be wrote:

 I had a similar setup some time ago. If I remember correctly, you can
 use lpr's -J option to pass options to foomatic-rip.

Thank you, Andre'.

I haven't found that the -J option works for me.  OTOH, the foomatic-rip -o
operand does work with print options when printing directly.

/etc/rc.conf.local contains:

lpd_flags= 

/etc/printcap is:

lp|printer:\
:lp=:rm=printer:\
:af=/etc/foomatic/hp-lj_300_400_color_m351_m451-ps.ppd:\
:if=/usr/local/bin/foomatic-rip:\
:sh:mx#0:\
:sd=/var/spool/output:\
:lf=/var/log/lpd-errs:


I'm using a recent snapshot that includes patch 1.52 to
usr.sbin/lpr/lpd/printjob.c for remote lpd:

kern.version=OpenBSD 5.5-beta (GENERIC.MP) #239: Fri Feb 21 02:38:36 MST 2014
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP



Re: Best practice for CUPS-less foomatic use?

2014-02-24 Thread Josh Grosse
On Mon, Feb 24, 2014 at 04:51:22PM -0500, Josh Grosse wrote:

 I haven't found that the -J option works for me.  OTOH, the foomatic-rip -o
 operand does work with print options when printing directly.

To be clear, the symptom is that -J option=value has no effect.  No errors
or warnings are produce in lpd-errs.