pap v1.00 ----------------------- ################################################################ # # Welcome to the CUPS PAP backend. A colleague downloaded a # Shell script off the net that was supposed to do all of # this, and it didn't work very well... # At all, actually. So I decided to whip up my own in Perl. # This is that script. I have done some optimization based on # the CUPS "Writing Backends" document as provided w/ version # 1.1.17. # # It works with CUPS 1.1.17 or newer, # possibly older, I don't know - as well as any modern # (1.4b2+) version of Netatalk upto and probably surpassing # the 1.6.0 release. # # This software is to be considered public domain. Do with it as # you will. # # Written 5/Dec/2002 by Matthew Keller # ################################################################ # # INSTALLATION (by the aforementioned "colleague") # # Requirements: Perl and netatalk. If you don't know what # those are, I think you're in over you're head... # # Save this script as /usr/lib/cups/backend/papbackend # (....or wherever you have the other backends if you # aren't running a stock install of CUPS). Make sure it is # executable! # Then, make sure the entry for the AppleTalk printer in # /etc/cups/printers.conf is declared with a URI thus: # # DeviceURI papbackend://"Printer Name"@"Some Zone" # # THE QUOTES ARE IMPORTANT AND NECESSARY if you have spaces # in your Printer Name or your Zone Name. If you have no # zones on your network, then "Printer Name"@* should work. # # *NOTE: The URI can also be declared in the CUPS web interface # and will get properly entered in printers.conf if you do it # that way. But it gets mangled when viewing printer # properties via the web interface. This is OK, though I # don't know why CUPS does this! As long as it's OK in # printers.conf, that's all that matters. # # -- 6/Dec/2002 by Romeyn prescott # ############################################################### # # Rewrote "zero argument" print statement to support device # discovery mode, the way CUPS sees what backends are # available and understands how to present the URI when # adding a printer. May help with display bugs (not likely) # This works as of CUPS 1.1.19. # # -- 11/Dec/2003 by Jeff Hardy # ###############################################################