|
I originally tried to follow the Arch packaging standards,
but they seem unworkable for this driver.
After some more digging, I have a better understanding of how the CUPS
wrapper works:
1. The CUPS filter script (brother_lpdwrapper_hl3180cdw) copies the
default settings (from .../inf/brhl3180cdwrc) into a temporary file.
2. brcupsconfpt1 is invoked, which, in turn, invokes
brprintconf_hl3180cdw (through the shell, for some reason)
once per option being set.
3. The PostScript is piped into ../lpd/filterhl3180cdw,
which continues the printing process.
Step 2 was the most problematic here. Though brprintconf_hl3180cdw takes
some paths as command line args, /opt/brother/Printer/... seems to be
hard-coded into it. Patching the binary to modify those paths doesn't
seem worth the effort at this point.
|