I know that many people were very frustrated when upstream broke foomatic-rip for LPD users. Thanks to Antoine Jacoutot of OpenBSD many of us will be CUPS free for years to come. I am leaving internet trace for people who would be looking for the info but Antoine documentation which comes with OpenBSD
/usr/local/share/doc/pkg-readmes/cups-filters*
is golden standard.
In the nut shell what I did:
0. Install
foomatic-rip, drivers (in my case
hpijs),
a2ps,
ImageMagick
1. Edit
/etc/printcap as
Code:
lp|HP|HP-PhotoSmart_C5200:\
:lp=/dev/ulpt0:\
:if=/etc/foomatic-rip/script.sh:\
:sh:sd=/var/spool/output:\
:lf=/var/log/lpd-errs:
2. Create
/etc/foomatic-rip.script.sh and make it executable
Code:
#!/bin/sh
/usr/local/bin/a2ps -BRq --columns=1 -o - | \
/usr/local/bin/foomatic-rip -P HP-PhotoSmart_C5200 --ppd \
/etc/foomatic-rip/direct/hp-photosmart_c5200_series-hpijs.ppd
3. Add
hp-photosmart_c5200_series-hpijs.ppd to
/etc/foomatic-rip/direct. You can either find it in the database or use
foomatic-ppdfile to create it.
4. Adjust permission on
ulpt0 and
ugen devices.
5. Start
lpd daemon and be happy camper.