On 28/01/13(Mon) 00:44, Stefan Sperling wrote:
> On Fri, Jan 25, 2013 at 04:00:51PM +0100, Martin Pieuchot wrote:
> > What about modifying ulpt(4) to upload the correct firmware like
> > uvideo(4) does?
> 
> I've done this, and the printer now works out of the box with lpd(8),
> as long as the foo2zjs port is used as a filter:

Awesome, that's ok mpi@ but obviously the printer ids go in separate
commits ;)

> $ cat /etc/printcap                                  
> #       $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $
> 
> #lp|local line printer:\
> #     :lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
> #rp|remote line printer:\
> #       :lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
> # Entry edited Sun Jan 27 19:58:45 2013 by foomatic-configure.
> # Additional configuration atop /etc/foomatic/lpd/lp.ppd
> lp|local line printer|HP LaserJet 1020:\
>     :af=/etc/foomatic/lpd/lp.ppd:\
>     :lf=/var/log/lpd-errs:\
>     :sd=/var/spool/output/lp:\
>     :ppdfile=/etc/foomatic/lpd/lp.ppd:\
>     :lp=/dev/ulpt0:\
>     :if=/usr/local/bin/foomatic-rip:\
>     :sh:\
>     :mx#0:
> 
> For the record, here's the foomatic-configure line I used (IIRC):
>   # foomatic-configure -n lp -s lpd -p HP-LaserJet_1020 -o PageSize=A4

Maybe you should also mention the foomatic* ports in the ulpt(4) man
page?

And I couldn't find a section on the FAQ about printers. Am I blind?
Do you think it would be useful to at least document how to setup a
printer like you did? Antoine what do you think?

> Diff for ulpt below. The firmware port is attached, and since tech@
> will probably eat the attachment also at http://stsp.name/openbsd/ulpt.tar.gz
> 
> The firmware has some ridiculous licensing conditions:
> 
>   3. Copies and Adaptations.   You may only make copies or adaptations of
>   the Software for archival purposes or when copying or adaptation is an
>   essential step in the authorized Use of the Software. You must reproduce
>   all copyright notices in the original Software on all copies or
>   adaptations. You may not copy the Software onto any public network.
> 
> I'm not sure what "copy onto any public network" is supposed to mean here.
> Does this last clause affect our ability to put a firmware package on
> the firmware mirrors?

I don't understand much about firmware licenses... Maybe someone else
can tell use if it is ok to put them on the mirrors. By the way if you
have a port for your firmware, you can also import it into
sysutils/firmware.

M.

Reply via email to