I know that many people were very frustrated when upstream broke
foomatic-rip for LPD users. Thanks to Antoine Jacoutot 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
/usr/local/share/doc/pkg-readmes/cups-filters-1.0.54p2
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
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
#!/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
4. Adjust permission on ulpt0 and ugen devices.
5. Start lpd daemon and be happy camper.
Cheers,
Predrag