Subject: | addDestination does not support raw queues |
Date: | Tue, 7 Aug 2018 19:05:49 +0000 |
To: | "bug-net-cups [...] rt.cpan.org" <bug-net-cups [...] rt.cpan.org> |
From: | Steve Barnsley <Steve.Barnsley [...] PulteGroup.com> |
We have a cups server that is used to provide print services to several AIX hosts. The physical printers are attached to Windows print servers (there are several hundred printers). The queues in cups are defined with smb::/,,,, URI and they are are defined as raw (no PPD) because the AIX hosts already produce properly formatted PostScript output.
We currently define the printers (they change quite a lot) via the command line with lpadmin. We would like to provide a custom web page for printer administration (providing more functionality than the CUPS UI in some respects [application attributes on the AIX servers need to change in concert with the printer changes] and hiding some CUPS features in other respects).
We have chosen perl (mojolicious) to build the web pages and it looked like Net::CUPS was a natural fit for the CUPS admin component, however, it appears that it isn't possible to add a new destination via Net::CUPS without a PPD file defined. We are putting together a 'do nothing' PPD as a workaround for this but it would be better if Net::CUPS was altered so that passing undef as the $ppd_name parameter would cause it to add the new destination as a raw queue.
If you are open to this change in functionality I am willing to provide patches - I'm quite experienced with perl but would be feeling my way through the .xs piece.
Thanks, Steve.
Show quoted text
________________________________
CONFIDENTIALITY NOTICE: This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you have received this communication in error, please notify the sender immediately by email and delete the message and any file attachments from your computer. Thank you.