I believe that in later versions foomatic (now called cups-filters) has deprecated support for lpd.
It still works but you need to create an foomatic wrapper and use it as if= in printcap, parse lpd options and call the original foomatic-rip ... I will show you an example of such foomatic-rip wrapper as soon as I can found it... On Tue, Aug 19, 2014 at 11:25 PM, Predrag Punosevac <punoseva...@gmail.com> wrote: > I had a simple printcap file for printing using lpd and foomatic-rip for > about seven years now but since past release it stop working > > predrag@oko$ uname -a > OpenBSD oko.bagdala2.net 5.6 GENERIC.MP#333 amd64 > > lp|HP|HP Photosmart 5250:\ > :lp=3D/dev/ulpt0:\ > :af=3D/etc/foomatic/HP-PhotoSmart_C5200.ppd:\ > :if=3D/usr/local/bin/foomatic-rip:\ > :sh:sd=3D/var/spool/output:\ > :lf=3D/var/log/lpd-errs: > > I am of course in the daemon group and /etc/ulpt0 is owned by daemon > with permission 664. Spooling directory has correct permission. This is > the only thing I see in log files > > Aug 19 23:10:16 oko lpd[15224]: lp: filter 'f' exited (retcode=3D9) > Aug 19 23:10:16 oko lpd[15224]: mail sent to user predrag about job > stdin on printer lp ((null)) > Aug 19 23:10:16 oko lpd[15224]: lp: job could not be printed > (cfA002oko.bagdala2.net) > > However /tmp/foomatic-rip-mF6GXB.log is a bit more revealing > > foomatic-rip version 1.0.54 running... > called with arguments: '-w132', '-l66', '-i0', '-n', 'predrag', '-j', > 'stdin', '-h', 'oko.bagdala2.net', '/etc/foomatic/lpd/lp.ppd' > No printer definition (option "-P <name>") specified! > > I am getting that even though I replaced my original file with the one > generated by foomatic-configure utility. > > lp|HP|HP PhotoSmart C5200:\ > :ppdfile=3D/etc/foomatic/lpd/lp.ppd:\ > :sd=3D/var/spool/output/lp:\ > :lf=3D/var/log/lpd-errs:\ > :lp=3D/dev/ulpt0:\ > :if=3D/usr/local/libexec/cups/filter/foomatic-rip:\ > :af=3D/etc/foomatic/lpd/lp.ppd:\ > :sh:\ > :mx#0: > > lp.ppd is just renamed original PPD file which I used for many years. I > remember there was a way to generate that file from that but I forgot > how to do it as it was so long time ago.=20 > > The above is obviously caused by options passed to foomatic-rip. I also > dislike the fact that one of the paths involve CUPS. > > Can somebody point to me what am I doing wrong here. I noticed that > /etc/foomatic is no longer created automatically. Also filter.conf file > is no longer needed? > > Thanks! > Predrag