
Code: Select all
E [30/Jul/2012:23:06:31 +0200] [Job 337] Files have gone away!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 32!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 33!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 34!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 35!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 36!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 37!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 38!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 39!
E [30/Jul/2012:23:06:31 +0200] [Job 338] Files have gone away!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 41!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 42!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 43!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 44!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 45!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 46!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 47!
E [30/Jul/2012:23:06:31 +0200] Missing <Job #> directive on line 48!
Code: Select all
Add Printer USB_Printer_1_with_status_readback_for_Canon_IJ Error
Unable to add printer:
Bad device-uri scheme "cnijusb".

Aha. Seems I was looking in the wrong place earlier?tclover wrote:@frostschutz:
cups filters dir is `/usr/libexec/cups/filer' where you should find `pstocnaonij3' and backend are stored in `/usr/libexec/cups/backend' where you should find `cnijusb3' (net backend is `cnijnet3').
Code: Select all
$$ /usr/libexec/cups $ ls */*
backend/cnijusb3 cgi-bin/printers.cgi filter/pstops
backend/http daemon/cups-deviced filter/rastertodymo
backend/https daemon/cups-driverd filter/rastertoepson
backend/ipp daemon/cups-exec filter/rastertoescpx
backend/ipps daemon/cups-lpd filter/rastertohp
backend/lpd daemon/cups-polld filter/rastertolabel
backend/parallel filter/bannertops filter/rastertopclx
backend/serial filter/commandtoescpx filter/rastertopwg
backend/snmp filter/commandtopclx filter/texttops
backend/socket filter/commandtops monitor/bcp
backend/usb filter/gziptoany monitor/tbcp
cgi-bin/admin.cgi filter/imagetops notifier/dbus
cgi-bin/classes.cgi filter/imagetoraster notifier/mailto
cgi-bin/help.cgi filter/pdftops notifier/rss
cgi-bin/jobs.cgi filter/pstocanonij3
Code: Select all
direct cnijusb:/dev/usb/lp0 "Canon MX370 series" "USB Printer #1 with status readback for Canon IJ"
direct cnijusb:/dev/usb/lp1 "Canon MX370 series FAX" "USB Printer #2 with status readback for Canon IJ"
Code: Select all
Unable to add printer: Bad device-uri scheme "cnijusb".

Code: Select all
ls -l /dev/usb
total 0
crw-rw-r-- 1 root lp 180, 0 Jul 31 12:44 lp0
crw-rw-r-- 1 root lp 180, 1 Jul 31 12:44 lp1

Code: Select all
I [31/Jul/2012:13:06:52 +0200] [Job 355] Started backend /usr/libexec/cups/backend/cnijusb3 (PID 1137)
E [31/Jul/2012:13:06:52 +0200] [Job 355] Illegal backend: Success
D [31/Jul/2012:13:06:52 +0200] [Job 355] pstocanonij: /usr/bin/gs -sstdout=%stderr -r600 -g4958x7016 -q -dNOPROMPT -dSAFER -sDEVICE=ppmraw -sOutputFile=%stdout -| /usr/local/bin/cifmx370 --imageres 600 --papersize a4 --media plain --paperload front2 --bbox 9,14,586,834 --fit
D [31/Jul/2012:13:06:52 +0200] [Job 355] /bin/sh: /usr/local/bin/cifmx370: No such file or directory
Code: Select all
I [31/Jul/2012:13:23:43 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:23:45 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:23:47 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:23:49 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:23:51 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:23:53 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:23:55 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:23:57 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:23:59 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:24:01 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:24:03 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:24:05 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:24:07 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:24:09 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:24:11 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:24:13 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:24:15 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:24:17 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4
I [31/Jul/2012:13:24:19 +0200] [Job 357] STS:USB MX370 00 IVFUFE 100 B 100 D 4

Code: Select all
|-cupsd(1794)---cnijusb(1799)---lgmonmx370(1802)-+-lgmonmx370(1839)
| `-lgmonmx370(1840)
Code: Select all
# strace -p 1799
Process 1799 attached
wait4(1802,
# strace -p 1840
Process 1840 attached
pause(
# strace -p 1802
Process 1802 attached
pause(
Code: Select all
# strace -p 1839
Process 1839 attached
restart_syscall(<... resuming interrupted call ...>) = 0
rt_sigprocmask(SIG_BLOCK, [TERM], NULL, 8) = 0
read(1, "<?xml version=\"1.0\" encoding=\"ut"..., 4096) = 984
write(2, "INFO:STS:USB MX370 00 "..., 129) = 129
rt_sigprocmask(SIG_UNBLOCK, [TERM], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({2, 0}, 0x7fffd4809500) = 0
rt_sigprocmask(SIG_BLOCK, [TERM], NULL, 8) = 0
read(1, "<?xml version=\"1.0\" encoding=\"ut"..., 4096) = 984
write(2, "INFO:STS:USB MX370 00 "..., 129) = 129

Code: Select all
# lpadmin -p <printer> -o usb-unidir-default=trueCode: Select all
# lpadmin -p Canon_MP560_series -o usb-unidir-default=trueCode: Select all
# grep unidir /etc/cups/printers.conf
Option usb-unidir true
#Code: Select all
<Printer Canon_MP560_series>
UUID urn:uuid:b3a780c3-3948-3a03-7f84-bf0eea8c6ba0
Info Canon MP560 series
Location My office upstairs
MakeModel Canon MP560 series Ver.3.20
DeviceURI usb://Canon/MP560%20series?serial=1653C4&interface=1
State Idle
StateTime 1348284757
Type 8425500
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
Option usb-unidir true
</Printer>Code: Select all
static const struct quirk_printer_struct quirk_printers[] = {
{ 0x03f0, 0x0004, USBLP_QUIRK_BIDIR }, /* HP DeskJet 895C */
{ 0x03f0, 0x0104, USBLP_QUIRK_BIDIR }, /* HP DeskJet 880C */
{ 0x03f0, 0x0204, USBLP_QUIRK_BIDIR }, /* HP DeskJet 815C */
{ 0x03f0, 0x0304, USBLP_QUIRK_BIDIR }, /* HP DeskJet 810C/812C */
{ 0x03f0, 0x0404, USBLP_QUIRK_BIDIR }, /* HP DeskJet 830C */
{ 0x03f0, 0x0504, USBLP_QUIRK_BIDIR }, /* HP DeskJet 885C */
{ 0x03f0, 0x0604, USBLP_QUIRK_BIDIR }, /* HP DeskJet 840C */
{ 0x03f0, 0x0804, USBLP_QUIRK_BIDIR }, /* HP DeskJet 816C */
{ 0x03f0, 0x1104, USBLP_QUIRK_BIDIR }, /* HP Deskjet 959C */
{ 0x0409, 0xefbe, USBLP_QUIRK_BIDIR }, /* NEC Picty900 (HP OEM) */
{ 0x0409, 0xbef4, USBLP_QUIRK_BIDIR }, /* NEC Picty760 (HP OEM) */
{ 0x0409, 0xf0be, USBLP_QUIRK_BIDIR }, /* NEC Picty920 (HP OEM) */
{ 0x0409, 0xf1be, USBLP_QUIRK_BIDIR }, /* NEC Picty800 (HP OEM) */
{ 0x0482, 0x0010, USBLP_QUIRK_BIDIR }, /* Kyocera Mita FS 820,
by zut <kernel@zut.de> */
{ 0x04a9, 0x10a2, USBLP_QUIRK_BIDIR }, /* Canon, Inc. PIXMA iP4200
Printer, http://www.cups.org/str.php?L4155 */
{ 0x04a9, 0x10b6, USBLP_QUIRK_BIDIR }, /* Canon, Inc. PIXMA iP4300
Printer, https://bugs.launchpad.net/bugs/1032385 */
{ 0x04a9, 0x1721, USBLP_QUIRK_BIDIR }, /* Canon, Inc. MP210
https://bugzilla.redhat.com/show_bug.cgi?id=847923#c53 */
{ 0x04a9, 0x170c, USBLP_QUIRK_BIDIR }, /* Canon, Inc. MP500
Printer, https://bugs.launchpad.net/bugs/1032456 */
{ 0x04a9, 0x1717, USBLP_QUIRK_BIDIR }, /* Canon, Inc. MP510
Printer, https://bugs.launchpad.net/bugs/1050009 */
{ 0x04a9, 0x173d, USBLP_QUIRK_BIDIR }, /* Canon, Inc. MP550
Printer, http://www.cups.org/str.php?L4155 */
{ 0x04a9, 0x173e, USBLP_QUIRK_BIDIR }, /* Canon, Inc. MP560
Printer, http://www.cups.org/str.php?L4155 */
{ 0x04f9, 0x001a, USBLP_QUIRK_NO_REATTACH }, /* Brother Industries, Ltd
HL-1430 Laser Printer,
https://bugs.launchpad.net/bugs/1038695 */
{ 0x04f9, 0x000d, USBLP_QUIRK_BIDIR |
USBLP_QUIRK_NO_REATTACH }, /* Brother Industries, Ltd
HL-1440 Laser Printer,
https://bugs.launchpad.net/bugs/1000253 */
{ 0x06bc, 0x000b, USBLP_QUIRK_NO_REATTACH }, /* Oki Data Corp.
Okipage 14ex Printer,
https://bugs.launchpad.net/bugs/872483 */
{ 0x06bc, 0x01c7, USBLP_QUIRK_NO_REATTACH }, /* Oki Data Corp. B410d,
https://bugs.launchpad.net/bugs/872483 */
{ 0x04b8, 0x0001, USBLP_QUIRK_BIDIR }, /* Seiko Epson Corp. Stylus Color 740 / Photo 750,
http://bugs.debian.org/697970 */
{ 0x04b8, 0x0202, USBLP_QUIRK_BAD_CLASS }, /* Seiko Epson Receipt
Printer M129C */
{ 0x067b, 0x2305, USBLP_QUIRK_BIDIR |
USBLP_QUIRK_NO_REATTACH |
USBLP_QUIRK_RESET },
{ 0x0924, 0x3ce9, USBLP_QUIRK_NO_REATTACH }, /* Xerox Phaser 3124
https://bugzilla.redhat.com/show_bug.cgi?id=867392 */
{ 0x0924, 0x4293, USBLP_QUIRK_NO_REATTACH }, /* Xerox WorkCentre 3210
https://bugs.launchpad.net/bugs/1102470 */
/* Prolific Technology, Inc. PL2305 Parallel Port
(USB -> Parallel adapter), https://bugs.launchpad.net/bugs/987485 */
{ 0x04e8, 0x0000, USBLP_QUIRK_RESET }, /* All Samsung devices,
https://bugs.launchpad.net/bugs/1032456 */
{ 0x0a5f, 0x0000, USBLP_QUIRK_BIDIR }, /* All Zebra devices,
https://bugs.launchpad.net/bugs/1001028 */
/* Canon */
{ 0x04a9, 0x304a, USBLP_QUIRK_BLACKLIST }, /* Canon CP-10 */
{ 0x04a9, 0x3063, USBLP_QUIRK_BLACKLIST }, /* Canon CP-100 */
{ 0x04a9, 0x307c, USBLP_QUIRK_BLACKLIST }, /* Canon CP-200 */
{ 0x04a9, 0x307d, USBLP_QUIRK_BLACKLIST }, /* Canon CP-300 */
{ 0x04a9, 0x30bd, USBLP_QUIRK_BLACKLIST }, /* Canon CP-220 */
{ 0x04a9, 0x30be, USBLP_QUIRK_BLACKLIST }, /* Canon CP-330 */
{ 0x04a9, 0x30f6, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP400 */
{ 0x04a9, 0x310b, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP600 */
{ 0x04a9, 0x3127, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP710 */
{ 0x04a9, 0x3128, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP510 */
{ 0x04a9, 0x3141, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY ES1 */
{ 0x04a9, 0x3142, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP730 */
{ 0x04a9, 0x3143, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP720 */
{ 0x04a9, 0x3170, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP750 */
{ 0x04a9, 0x3171, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP740 */
{ 0x04a9, 0x3185, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY ES2 */
{ 0x04a9, 0x3186, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY ES20 */
{ 0x04a9, 0x31aa, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP770 */
{ 0x04a9, 0x31ab, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP760 */
{ 0x04a9, 0x31b0, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY ES30 */
{ 0x04a9, 0x31dd, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP780 */
{ 0x04a9, 0x31ee, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY ES40 */
{ 0x04a9, 0x3214, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP800 */
{ 0x04a9, 0x3255, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP900 */
{ 0x04a9, 0x3256, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP810 */
{ 0x04a9, 0x30F5, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY CP500 */
{ 0x04a9, 0x31AF, USBLP_QUIRK_BLACKLIST }, /* Canon SELPHY ES3 */
/* MISSING PIDs: CP520, CP530, CP790 */
{ 0, 0 }
};Code: Select all
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.24.13, but GTK+ (2.24.10)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: Cannot find GTK: Is gtk-config in path?
Code: Select all
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DUSE_LIB_GLASE -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -O2 -Wall -c support.c
bjcupsmon_ui.c: In function ‘freezeText’:
bjcupsmon_ui.c:1558:13: warning: variable ‘widget’ set but not used [-Wunused-but-set-variable]
bjcupsmon_main.c: In function ‘initApplication’:
bjcupsmon_main.c:496:97: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
bjcupsmon_main.c:531:92: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
bjcupsmon_main.c:374:15: warning: variable ‘Odev’ set but not used [-Wunused-but-set-variable]
bjcupsmon_main.c: In function ‘updateUI’:
bjcupsmon_main.c:679:10: warning: variable ‘retx’ set but not used [-Wunused-but-set-variable]
bjcupsmon_main.c:618:14: warning: variable ‘Odev’ set but not used [-Wunused-but-set-variable]
bjcupsmon_cups.c: In function ‘checkPrinterState’:
bjcupsmon_cups.c:219:11: error: dereferencing pointer to incomplete type
bjcupsmon_cups.c:220:11: error: dereferencing pointer to incomplete type
bjcupsmon_cups.c:229:17: error: dereferencing pointer to incomplete type
bjcupsmon_cups.c:234:44: error: dereferencing pointer to incomplete type
.
.
.
bjcupsmon_cups.c:693:30: error: dereferencing pointer to incomplete type
bjcupsmon_cups.c:702:31: error: dereferencing pointer to incomplete type
make[2]: *** [bjcupsmon_cups.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-drivers-3.90/work/cnijfilter-source-3.90-1/mx520/cngpijmon/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-drivers-3.90/work/cnijfilter-source-3.90-1/mx520/cngpijmon/src'Code: Select all
<Printer Canon-MG5300-series_18-0C-AC-C5-F8-02>
UUID urn:uuid:f4d24ca5-ce10-3bab-701e-bb52e7d0f5a1
Info Canon MG5300 series
Location Local Printer
MakeModel Canon MG5300 series Ver.3.60
DeviceURI cnijnet:/18-0C-AC-C5-F8-02
State Idle
StateTime 1379162780
Type 8425500
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Code: Select all
*PPD-Adobe: "4.3"
*% CUPS add-on PPD file for Canon Inkjet Printer Driver.
*% Copyright CANON INC. 2001-2011
*% All Rights Reserved.
*%
*% This program is free software; you can redistribute it and/or modify
*% it under the terms of the GNU General Public License as published by
*% the Free Software Foundation; version 2 of the License.
*%
*% This program is distributed in the hope that it will be useful,
*% but WITHOUT ANY WARRANTY; without even the implied warranty of
*% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*% GNU General Public License for more details.
*%
*% You should have received a copy of the GNU General Public License
*% along with this program; if not, write to the Free Software
*% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*FileVersion: "1.0"
*FormatVersion: "4.3"
*LanguageEncoding: ISOLatin1
*LanguageVersion: English
*Manufacturer: "Canon"
*ModelName: "Canon MG5300 series"
*NickName: "Canon MG5300 series Ver.3.60"
*PCFileName: "CNMG5300.PPD"
*Product: "(mg5300)"
*PSVersion: "(3010.000) 550"
*PSVersion: "(3010.000) 651"
*PSVersion: "(3010.000) 705"
*PSVersion: "(3010.000) 715"
*ShortNickName: "MG5300"
*ColorDevice: True
*DefaultColorSpace: RGB
*Throughput: "1"
*LandscapeOrientation: Plus90
*LanguageLevel: "3"
*FileSystem: False
*TTRasterizer: Type42
*cupsFilter: "application/vnd.cups-postscript 0 pstocanonij"
*cupsManualCopies: True
*cupsModelNumber: 389
*cupsVersion: 1.1
*MaxMediaWidth: "612"
*MaxMediaHeight: "1917"
*CenterRegistered: False
*HWMargins: 9.64 14.17 9.64 8.50
*LeadingEdge Short: ""
*DefaultLeadingEdge: Short
*VariablePaperSize: True
*ParamCustomPageSize Width: 1 points 155.91 612.00
*ParamCustomPageSize Height: 2 points 257.96 1916.23
*ParamCustomPageSize WidthOffset: 3 points 0 0
*ParamCustomPageSize HeightOffset: 4 points 0 0
*ParamCustomPageSize Orientation: 5 int 1 1
*CustomPageSize True: "pop pop pop <</PageSize [5 -2 roll] /ImagingBBox null>>setpagedevice"
*OpenUI *Resolution/Output Resolution: PickOne
*DefaultResolution: 600dpi
*Resolution 600dpi/600 dpi: "<</HWResolution[600 600]>>setpagedevice"
*CloseUI: *Resolution
*OpenUI *ColorModel/Color Model: PickOne
*DefaultColorModel: rgb
*ColorModel rgb/RGB: "<</cupsColorOrder 0/cupsColorSpace 1/cupsCompression 0/cupsBitsPerColor 8>>setpagedevice"
*CloseUI: *ColorModel
*OpenUI *PageSize/Page Size: PickOne
*DefaultPageSize: A4
*PageSize Letter/Letter [8.50"x11.00" 215.9x279.4mm]: "<</CNPageSizeName(Letter)/PageSize[612 792]/ImagingBBox null>>setpagedevice"
*PageSize Letter.bl/Letter(borderless) [8.50"x11.00" 215.9x279.4mm]: "<</CNPageSizeName(Letter.bl)/PageSize[612 792]/ImagingBBox null>>setpagedevice"
*PageSize Legal/Legal [8.50"x14.00" 215.9x355.6mm]: "<</CNPageSizeName(Legal)/PageSize[612 1008]/ImagingBBox null>>setpagedevice"
*PageSize A5/A5 [5.83"x8.27" 148.0x210.0mm]: "<</CNPageSizeName(A5)/PageSize[420 595]/ImagingBBox null>>setpagedevice"
*PageSize A4/A4 [8.27"x11.69" 210.0x297.0mm]: "<</CNPageSizeName(A4)/PageSize[595 842]/ImagingBBox null>>setpagedevice"
*PageSize A4.bl/A4(borderless) [8.27"x11.69" 210.0x297.0mm]: "<</CNPageSizeName(A4.bl)/PageSize[595 842]/ImagingBBox null>>setpagedevice"
*PageSize B5/B5 [7.17"x10.12" 182.0x257.0mm]: "<</CNPageSizeName(B5)/PageSize[516 729]/ImagingBBox null>>setpagedevice"
*PageSize 4X6/4"x6" [4.00"x6.00" 101.6x152.4mm]: "<</CNPageSizeName(4X6)/PageSize[288 432]/ImagingBBox null>>setpagedevice"
*PageSize 4X6.bl/4"x6"(borderless) [4.00"x6.00" 101.6x152.4mm]: "<</CNPageSizeName(4X6.bl)/PageSize[288 432]/ImagingBBox null>>setpagedevice"
*PageSize 4X8/4"x8" [4.00"x8.00" 101.6x203.2mm]: "<</CNPageSizeName(4X8)/PageSize[288 576]/ImagingBBox null>>setpagedevice"
*PageSize 4X8.bl/4"x8"(borderless) [4.00"x8.00" 101.6x203.2mm]: "<</CNPageSizeName(4X8.bl)/PageSize[288 576]/ImagingBBox null>>setpagedevice"
*PageSize 5X7/5"x7" [5.00"x7.00" 127.0x177.8mm]: "<</CNPageSizeName(5X7)/PageSize[360 504]/ImagingBBox null>>setpagedevice"
*PageSize 5X7.bl/5"x7"(borderless) [5.00"x7.00" 127.0x177.8mm]: "<</CNPageSizeName(5X7.bl)/PageSize[360 504]/ImagingBBox null>>setpagedevice"
*PageSize 8X10/8"x10" [8.00"x10.00" 203.2x254.0mm]: "<</CNPageSizeName(8X10)/PageSize[576 720]/ImagingBBox null>>setpagedevice"
*PageSize 8X10.bl/8"x10"(borderless) [8.00"x10.00" 203.2x254.0mm]: "<</CNPageSizeName(8X10.bl)/PageSize[576 720]/ImagingBBox null>>setpagedevice"
*PageSize l/L [3.50"x5.00" 89.0x127.0mm]: "<</CNPageSizeName(l)/PageSize[252 360]/ImagingBBox null>>setpagedevice"
*PageSize l.bl/L(borderless) [3.50"x5.00" 89.0x127.0mm]: "<</CNPageSizeName(l.bl)/PageSize[252 360]/ImagingBBox null>>setpagedevice"
*PageSize 2l/2L [5.00"x7.01" 127.0x178.0mm]: "<</CNPageSizeName(2l)/PageSize[360 505]/ImagingBBox null>>setpagedevice"
*PageSize 2l.bl/2L(borderless) [5.00"x7.01" 127.0x178.0mm]: "<</CNPageSizeName(2l.bl)/PageSize[360 505]/ImagingBBox null>>setpagedevice"
*PageSize postcard/Hagaki [3.94"x5.83" 100.0x148.0mm]: "<</CNPageSizeName(postcard)/PageSize[283 420]/ImagingBBox null>>setpagedevice"
*PageSize postcard.bl/Hagaki(borderless) [3.94"x5.83" 100.0x148.0mm]: "<</CNPageSizeName(postcard.bl)/PageSize[283 420]/ImagingBBox null>>setpagedevice"
*PageSize postdbl/Hagaki 2 [7.87"x5.83" 200.0x148.0mm]: "<</CNPageSizeName(postdbl)/PageSize[567 420]/ImagingBBox null>>setpagedevice"
*PageSize envelop10p/Comm. Env. #10 [4.12"x9.50" 104.8x241.3mm]: "<</CNPageSizeName(envelop10p)/PageSize[297 684]/ImagingBBox null>>setpagedevice"
*PageSize envelopdlp/DL Env. [4.33"x8.66" 110.0x220.0mm]: "<</CNPageSizeName(envelopdlp)/PageSize[312 624]/ImagingBBox null>>setpagedevice"
*PageSize envj4p/Youkei 4 [4.13"x9.25" 105.0x235.0mm]: "<</CNPageSizeName(envj4p)/PageSize[298 666]/ImagingBBox null>>setpagedevice"
*PageSize envj6p/Youkei 6 [3.86"x7.48" 98.0x190.0mm]: "<</CNPageSizeName(envj6p)/PageSize[278 539]/ImagingBBox null>>setpagedevice"
*PageSize businesscard/Card [2.16"x3.58" 55.0x91.0mm]: "<</CNPageSizeName(businesscard)/PageSize[156 258]/ImagingBBox null>>setpagedevice"
*PageSize businesscard.bl/Card(borderless) [2.16"x3.58" 55.0x91.0mm]: "<</CNPageSizeName(businesscard.bl)/PageSize[156 258]/ImagingBBox null>>setpagedevice"
*PageSize wide/Wide [4.00"x7.11" 101.6x180.6mm]: "<</CNPageSizeName(wide)/PageSize[288 512]/ImagingBBox null>>setpagedevice"
*PageSize wide.bl/Wide(borderless) [4.00"x7.11" 101.6x180.6mm]: "<</CNPageSizeName(wide.bl)/PageSize[288 512]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageSize
*OpenUI *PageRegion: PickOne
*DefaultPageRegion: A4
*PageRegion Letter/Letter [8.50"x11.00" 215.9x279.4mm]: "<</CNPageSizeName(Letter)/PageSize[612 792]/ImagingBBox null>>setpagedevice"
*PageRegion Letter.bl/Letter(borderless) [8.50"x11.00" 215.9x279.4mm]: "<</CNPageSizeName(Letter.bl)/PageSize[612 792]/ImagingBBox null>>setpagedevice"
*PageRegion Legal/Legal [8.50"x14.00" 215.9x355.6mm]: "<</CNPageSizeName(Legal)/PageSize[612 1008]/ImagingBBox null>>setpagedevice"
*PageRegion A5/A5 [5.83"x8.27" 148.0x210.0mm]: "<</CNPageSizeName(A5)/PageSize[420 595]/ImagingBBox null>>setpagedevice"
*PageRegion A4/A4 [8.27"x11.69" 210.0x297.0mm]: "<</CNPageSizeName(A4)/PageSize[595 842]/ImagingBBox null>>setpagedevice"
*PageRegion A4.bl/A4(borderless) [8.27"x11.69" 210.0x297.0mm]: "<</CNPageSizeName(A4.bl)/PageSize[595 842]/ImagingBBox null>>setpagedevice"
*PageRegion B5/B5 [7.17"x10.12" 182.0x257.0mm]: "<</CNPageSizeName(B5)/PageSize[516 729]/ImagingBBox null>>setpagedevice"
*PageRegion 4X6/4"x6" [4.00"x6.00" 101.6x152.4mm]: "<</CNPageSizeName(4X6)/PageSize[288 432]/ImagingBBox null>>setpagedevice"
*PageRegion 4X6.bl/4"x6"(borderless) [4.00"x6.00" 101.6x152.4mm]: "<</CNPageSizeName(4X6.bl)/PageSize[288 432]/ImagingBBox null>>setpagedevice"
*PageRegion 4X8/4"x8" [4.00"x8.00" 101.6x203.2mm]: "<</CNPageSizeName(4X8)/PageSize[288 576]/ImagingBBox null>>setpagedevice"
*PageRegion 4X8.bl/4"x8"(borderless) [4.00"x8.00" 101.6x203.2mm]: "<</CNPageSizeName(4X8.bl)/PageSize[288 576]/ImagingBBox null>>setpagedevice"
*PageRegion 5X7/5"x7" [5.00"x7.00" 127.0x177.8mm]: "<</CNPageSizeName(5X7)/PageSize[360 504]/ImagingBBox null>>setpagedevice"
*PageRegion 5X7.bl/5"x7"(borderless) [5.00"x7.00" 127.0x177.8mm]: "<</CNPageSizeName(5X7.bl)/PageSize[360 504]/ImagingBBox null>>setpagedevice"
*PageRegion 8X10/8"x10" [8.00"x10.00" 203.2x254.0mm]: "<</CNPageSizeName(8X10)/PageSize[576 720]/ImagingBBox null>>setpagedevice"
*PageRegion 8X10.bl/8"x10"(borderless) [8.00"x10.00" 203.2x254.0mm]: "<</CNPageSizeName(8X10.bl)/PageSize[576 720]/ImagingBBox null>>setpagedevice"
*PageRegion l/L [3.50"x5.00" 89.0x127.0mm]: "<</CNPageSizeName(l)/PageSize[252 360]/ImagingBBox null>>setpagedevice"
*PageRegion l.bl/L(borderless) [3.50"x5.00" 89.0x127.0mm]: "<</CNPageSizeName(l.bl)/PageSize[252 360]/ImagingBBox null>>setpagedevice"
*PageRegion 2l/2L [5.00"x7.01" 127.0x178.0mm]: "<</CNPageSizeName(2l)/PageSize[360 505]/ImagingBBox null>>setpagedevice"
*PageRegion 2l.bl/2L(borderless) [5.00"x7.01" 127.0x178.0mm]: "<</CNPageSizeName(2l.bl)/PageSize[360 505]/ImagingBBox null>>setpagedevice"
*PageRegion postcard/Hagaki [3.94"x5.83" 100.0x148.0mm]: "<</CNPageSizeName(postcard)/PageSize[283 420]/ImagingBBox null>>setpagedevice"
*PageRegion postcard.bl/Hagaki(borderless) [3.94"x5.83" 100.0x148.0mm]: "<</CNPageSizeName(postcard.bl)/PageSize[283 420]/ImagingBBox null>>setpagedevice"
*PageRegion postdbl/Hagaki 2 [7.87"x5.83" 200.0x148.0mm]: "<</CNPageSizeName(postdbl)/PageSize[567 420]/ImagingBBox null>>setpagedevice"
*PageRegion envelop10p/Comm. Env. #10 [4.12"x9.50" 104.8x241.3mm]: "<</CNPageSizeName(envelop10p)/PageSize[297 684]/ImagingBBox null>>setpagedevice"
*PageRegion envelopdlp/DL Env. [4.33"x8.66" 110.0x220.0mm]: "<</CNPageSizeName(envelopdlp)/PageSize[312 624]/ImagingBBox null>>setpagedevice"
*PageRegion envj4p/Youkei 4 [4.13"x9.25" 105.0x235.0mm]: "<</CNPageSizeName(envj4p)/PageSize[298 666]/ImagingBBox null>>setpagedevice"
*PageRegion envj6p/Youkei 6 [3.86"x7.48" 98.0x190.0mm]: "<</CNPageSizeName(envj6p)/PageSize[278 539]/ImagingBBox null>>setpagedevice"
*PageRegion businesscard/Card [2.16"x3.58" 55.0x91.0mm]: "<</CNPageSizeName(businesscard)/PageSize[156 258]/ImagingBBox null>>setpagedevice"
*PageRegion businesscard.bl/Card(borderless) [2.16"x3.58" 55.0x91.0mm]: "<</CNPageSizeName(businesscard.bl)/PageSize[156 258]/ImagingBBox null>>setpagedevice"
*PageRegion wide/Wide [4.00"x7.11" 101.6x180.6mm]: "<</CNPageSizeName(wide)/PageSize[288 512]/ImagingBBox null>>setpagedevice"
*PageRegion wide.bl/Wide(borderless) [4.00"x7.11" 101.6x180.6mm]: "<</CNPageSizeName(wide.bl)/PageSize[288 512]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageRegion
*OpenUI *MediaType/Media Type: PickOne
*DefaultMediaType: plain
*MediaType plain/Plain Paper: "<</MediaType(plain)>>setpagedevice"
*MediaType glossygold/Photo Paper Plus Glossy II: "<</MediaType(glossygold)>>setpagedevice"
*MediaType proplatinum/Photo Paper Pro Platinum: "<</MediaType(proplatinum)>>setpagedevice"
*MediaType semigloss/Photo Paper Plus Semi-gloss: "<</MediaType(semigloss)>>setpagedevice"
*MediaType glossypaper/Glossy Photo Paper: "<</MediaType(glossypaper)>>setpagedevice"
*MediaType matte/Matte Photo Paper: "<</MediaType(matte)>>setpagedevice"
*MediaType envelope/Envelope: "<</MediaType(envelope)>>setpagedevice"
*MediaType postcardaddress/Hagaki A: "<</MediaType(postcardaddress)>>setpagedevice"
*MediaType ijpostcard/Ink Jet Hagaki: "<</MediaType(ijpostcard)>>setpagedevice"
*MediaType glossypost/Hagaki K: "<</MediaType(glossypost)>>setpagedevice"
*MediaType postcard/Hagaki: "<</MediaType(postcard)>>setpagedevice"
*MediaType highres/High Resolution Paper: "<</MediaType(highres)>>setpagedevice"
*MediaType tshirt/T-Shirt Transfers: "<</MediaType(tshirt)>>setpagedevice"
*MediaType otherphoto/Other Photo Paper: "<</MediaType(otherphoto)>>setpagedevice"
*CloseUI: *MediaType
*OpenUI *InputSlot/Paper Source: PickOne
*DefaultInputSlot: auto
*InputSlot auto/Automatically Select: "<</MediaPosition 0>>setpagedevice"
*InputSlot asf/Rear Tray: "<</MediaPosition 0>>setpagedevice"
*InputSlot cassette/Cassette: "<</MediaPosition 1>>setpagedevice"
*InputSlot continuous/Continuous Autofeed: "<</MediaPosition 0>>setpagedevice"
*CloseUI: *InputSlot
*OpenUI *CNExtension/Amount of Extension: PickOne
*DefaultCNExtension: 2
*CNExtension 0/0: "<</CNExtension(0)>>setpagedevice"
*CNExtension 1/1: "<</CNExtension(1)>>setpagedevice"
*CNExtension 2/2: "<</CNExtension(2)>>setpagedevice"
*CNExtension 3/3: "<</CNExtension(3)>>setpagedevice"
*CloseUI: *CNExtension
*DefaultImageableArea: A4
*ImageableArea Letter: "18.14 14.17 594.14 783.50"
*ImageableArea Letter.bl: "0 0 612 792"
*ImageableArea Legal: "18.14 14.17 594.14 999.50"
*ImageableArea A5: "9.64 14.17 409.89 586.77"
*ImageableArea A4: "9.64 14.17 585.64 833.39"
*ImageableArea A4.bl: "0 0 595 842"
*ImageableArea B5: "9.64 14.17 506.27 720.00"
*ImageableArea 4X6: "9.64 14.17 278.36 423.50"
*ImageableArea 4X6.bl: "0 0 288 432"
*ImageableArea 4X8: "9.64 14.17 278.36 567.50"
*ImageableArea 4X8.bl: "0 0 288 576"
*ImageableArea 5X7: "9.64 14.17 350.36 495.50"
*ImageableArea 5X7.bl: "0 0 360 504"
*ImageableArea 8X10: "9.64 14.17 566.36 711.50"
*ImageableArea 8X10.bl: "0 0 576 720"
*ImageableArea l: "9.64 14.17 242.65 351.50"
*ImageableArea l.bl: "0 0 252 360"
*ImageableArea 2l: "9.64 14.17 350.36 496.06"
*ImageableArea 2l.bl: "0 0 360 505"
*ImageableArea postcard: "9.64 14.17 273.83 411.02"
*ImageableArea postcard.bl: "0 0 283 420"
*ImageableArea postdbl: "9.64 14.17 557.29 411.02"
*ImageableArea envelop10p: "9.64 106.02 287.35 675.50"
*ImageableArea envelopdlp: "9.64 106.02 302.17 615.12"
*ImageableArea envj4p: "9.64 106.02 288.00 657.64"
*ImageableArea envj6p: "9.64 106.02 268.16 530.08"
*ImageableArea businesscard: "9.64 14.17 146.27 249.45"
*ImageableArea businesscard.bl: "0 0 156 258"
*ImageableArea wide: "9.64 14.17 278.36 503.49"
*ImageableArea wide.bl: "0 0 288 512"
*DefaultPaperDimension: A4
*PaperDimension Letter: "612 792"
*PaperDimension Letter.bl: "613 793"
*PaperDimension Legal: "612 1008"
*PaperDimension A5: "420 595"
*PaperDimension A4: "595 842"
*PaperDimension A4.bl: "596 843"
*PaperDimension B5: "516 729"
*PaperDimension 4X6: "288 432"
*PaperDimension 4X6.bl: "289 433"
*PaperDimension 4X8: "288 576"
*PaperDimension 4X8.bl: "289 577"
*PaperDimension 5X7: "360 504"
*PaperDimension 5X7.bl: "361 505"
*PaperDimension 8X10: "576 720"
*PaperDimension 8X10.bl: "577 721"
*PaperDimension l: "252 360"
*PaperDimension l.bl: "253 361"
*PaperDimension 2l: "360 505"
*PaperDimension 2l.bl: "361 506"
*PaperDimension postcard: "283 420"
*PaperDimension postcard.bl: "284 421"
*PaperDimension postdbl: "567 420"
*PaperDimension envelop10p: "297 684"
*PaperDimension envelopdlp: "312 624"
*PaperDimension envj4p: "298 666"
*PaperDimension envj6p: "278 539"
*PaperDimension businesscard: "156 258"
*PaperDimension businesscard.bl: "157 259"
*PaperDimension wide: "288 512"
*PaperDimension wide.bl: "289 513"
*OpenUI *Duplex/Duplex Printing: PickOne
*DefaultDuplex: None
*Duplex None/OFF: "<</Duplex false>>setpagedevice"
*Duplex DuplexNoTumble/ON (Long Side Stapling): "<</Duplex true/Tumble false>>setpagedevice"
*Duplex DuplexTumble/ON (Short Side Stapling): "<</Duplex true/Tumble true>>setpagedevice"
*CloseUI: *Duplex
*UIConstraints: *InputSlot cassette *PageSize Legal
*UIConstraints: *PageSize Legal *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize 4X6
*UIConstraints: *PageSize 4X6 *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize 4X6.bl
*UIConstraints: *PageSize 4X6.bl *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize 4X8
*UIConstraints: *PageSize 4X8 *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize 4X8.bl
*UIConstraints: *PageSize 4X8.bl *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize 5X7
*UIConstraints: *PageSize 5X7 *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize 5X7.bl
*UIConstraints: *PageSize 5X7.bl *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize 8X10
*UIConstraints: *PageSize 8X10 *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize 8X10.bl
*UIConstraints: *PageSize 8X10.bl *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize l
*UIConstraints: *PageSize l *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize l.bl
*UIConstraints: *PageSize l.bl *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize 2l
*UIConstraints: *PageSize 2l *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize 2l.bl
*UIConstraints: *PageSize 2l.bl *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize postcard
*UIConstraints: *PageSize postcard *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize postcard.bl
*UIConstraints: *PageSize postcard.bl *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize postdbl
*UIConstraints: *PageSize postdbl *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize envelop10p
*UIConstraints: *PageSize envelop10p *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize envelopdlp
*UIConstraints: *PageSize envelopdlp *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize envj4p
*UIConstraints: *PageSize envj4p *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize envj6p
*UIConstraints: *PageSize envj6p *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize businesscard
*UIConstraints: *PageSize businesscard *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize businesscard.bl
*UIConstraints: *PageSize businesscard.bl *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize wide
*UIConstraints: *PageSize wide *InputSlot cassette
*UIConstraints: *InputSlot cassette *PageSize wide.bl
*UIConstraints: *PageSize wide.bl *InputSlot cassette
*UIConstraints: *InputSlot continuous *PageSize Legal
*UIConstraints: *PageSize Legal *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize 4X6
*UIConstraints: *PageSize 4X6 *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize 4X6.bl
*UIConstraints: *PageSize 4X6.bl *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize 4X8
*UIConstraints: *PageSize 4X8 *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize 4X8.bl
*UIConstraints: *PageSize 4X8.bl *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize 5X7
*UIConstraints: *PageSize 5X7 *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize 5X7.bl
*UIConstraints: *PageSize 5X7.bl *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize 8X10
*UIConstraints: *PageSize 8X10 *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize 8X10.bl
*UIConstraints: *PageSize 8X10.bl *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize l
*UIConstraints: *PageSize l *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize l.bl
*UIConstraints: *PageSize l.bl *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize 2l
*UIConstraints: *PageSize 2l *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize 2l.bl
*UIConstraints: *PageSize 2l.bl *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize postcard
*UIConstraints: *PageSize postcard *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize postcard.bl
*UIConstraints: *PageSize postcard.bl *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize postdbl
*UIConstraints: *PageSize postdbl *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize envelop10p
*UIConstraints: *PageSize envelop10p *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize envelopdlp
*UIConstraints: *PageSize envelopdlp *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize envj4p
*UIConstraints: *PageSize envj4p *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize envj6p
*UIConstraints: *PageSize envj6p *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize businesscard
*UIConstraints: *PageSize businesscard *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize businesscard.bl
*UIConstraints: *PageSize businesscard.bl *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize wide
*UIConstraints: *PageSize wide *InputSlot continuous
*UIConstraints: *InputSlot continuous *PageSize wide.bl
*UIConstraints: *PageSize wide.bl *InputSlot continuous
*UIConstraints: *Duplex *MediaType glossygold
*UIConstraints: *MediaType glossygold *Duplex
*UIConstraints: *Duplex *MediaType proplatinum
*UIConstraints: *MediaType proplatinum *Duplex
*UIConstraints: *Duplex *MediaType semigloss
*UIConstraints: *MediaType semigloss *Duplex
*UIConstraints: *Duplex *MediaType glossypaper
*UIConstraints: *MediaType glossypaper *Duplex
*UIConstraints: *Duplex *MediaType matte
*UIConstraints: *MediaType matte *Duplex
*UIConstraints: *Duplex *MediaType envelope
*UIConstraints: *MediaType envelope *Duplex
*UIConstraints: *Duplex *MediaType ijpostcard
*UIConstraints: *MediaType ijpostcard *Duplex
*UIConstraints: *Duplex *MediaType glossypost
*UIConstraints: *MediaType glossypost *Duplex
*UIConstraints: *Duplex *MediaType highres
*UIConstraints: *MediaType highres *Duplex
*UIConstraints: *Duplex *MediaType tshirt
*UIConstraints: *MediaType tshirt *Duplex
*UIConstraints: *Duplex *MediaType otherphoto
*UIConstraints: *MediaType otherphoto *Duplex
*UIConstraints: *Duplex *PageSize Letter.bl
*UIConstraints: *PageSize Letter.bl *Duplex
*UIConstraints: *Duplex *PageSize Legal
*UIConstraints: *PageSize Legal *Duplex
*UIConstraints: *Duplex *PageSize A4.bl
*UIConstraints: *PageSize A4.bl *Duplex
*UIConstraints: *Duplex *PageSize 4X6
*UIConstraints: *PageSize 4X6 *Duplex
*UIConstraints: *Duplex *PageSize 4X6.bl
*UIConstraints: *PageSize 4X6.bl *Duplex
*UIConstraints: *Duplex *PageSize 4X8
*UIConstraints: *PageSize 4X8 *Duplex
*UIConstraints: *Duplex *PageSize 4X8.bl
*UIConstraints: *PageSize 4X8.bl *Duplex
*UIConstraints: *Duplex *PageSize 5X7
*UIConstraints: *PageSize 5X7 *Duplex
*UIConstraints: *Duplex *PageSize 5X7.bl
*UIConstraints: *PageSize 5X7.bl *Duplex
*UIConstraints: *Duplex *PageSize 8X10
*UIConstraints: *PageSize 8X10 *Duplex
*UIConstraints: *Duplex *PageSize 8X10.bl
*UIConstraints: *PageSize 8X10.bl *Duplex
*UIConstraints: *Duplex *PageSize l
*UIConstraints: *PageSize l *Duplex
*UIConstraints: *Duplex *PageSize l.bl
*UIConstraints: *PageSize l.bl *Duplex
*UIConstraints: *Duplex *PageSize 2l
*UIConstraints: *PageSize 2l *Duplex
*UIConstraints: *Duplex *PageSize 2l.bl
*UIConstraints: *PageSize 2l.bl *Duplex
*UIConstraints: *Duplex *PageSize postcard.bl
*UIConstraints: *PageSize postcard.bl *Duplex
*UIConstraints: *Duplex *PageSize postdbl
*UIConstraints: *PageSize postdbl *Duplex
*UIConstraints: *Duplex *PageSize envelop10p
*UIConstraints: *PageSize envelop10p *Duplex
*UIConstraints: *Duplex *PageSize envelopdlp
*UIConstraints: *PageSize envelopdlp *Duplex
*UIConstraints: *Duplex *PageSize envj4p
*UIConstraints: *PageSize envj4p *Duplex
*UIConstraints: *Duplex *PageSize envj6p
*UIConstraints: *PageSize envj6p *Duplex
*UIConstraints: *Duplex *PageSize businesscard
*UIConstraints: *PageSize businesscard *Duplex
*UIConstraints: *Duplex *PageSize businesscard.bl
*UIConstraints: *PageSize businesscard.bl *Duplex
*UIConstraints: *Duplex *PageSize wide
*UIConstraints: *PageSize wide *Duplex
*UIConstraints: *Duplex *PageSize wide.bl
*UIConstraints: *PageSize wide.bl *Duplex
*UIConstraints: *MediaType glossygold *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType glossygold
*UIConstraints: *MediaType glossygold *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType glossygold
*UIConstraints: *MediaType proplatinum *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType proplatinum
*UIConstraints: *MediaType proplatinum *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType proplatinum
*UIConstraints: *MediaType semigloss *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType semigloss
*UIConstraints: *MediaType semigloss *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType semigloss
*UIConstraints: *MediaType glossypaper *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType glossypaper
*UIConstraints: *MediaType glossypaper *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType glossypaper
*UIConstraints: *MediaType matte *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType matte
*UIConstraints: *MediaType matte *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType matte
*UIConstraints: *MediaType envelope *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType envelope
*UIConstraints: *MediaType envelope *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType envelope
*UIConstraints: *MediaType postcardaddress *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType postcardaddress
*UIConstraints: *MediaType postcardaddress *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType postcardaddress
*UIConstraints: *MediaType ijpostcard *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType ijpostcard
*UIConstraints: *MediaType ijpostcard *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType ijpostcard
*UIConstraints: *MediaType glossypost *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType glossypost
*UIConstraints: *MediaType glossypost *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType glossypost
*UIConstraints: *MediaType postcard *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType postcard
*UIConstraints: *MediaType postcard *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType postcard
*UIConstraints: *MediaType highres *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType highres
*UIConstraints: *MediaType highres *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType highres
*UIConstraints: *MediaType tshirt *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType tshirt
*UIConstraints: *MediaType tshirt *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType tshirt
*UIConstraints: *MediaType otherphoto *InputSlot cassette
*UIConstraints: *InputSlot cassette *MediaType otherphoto
*UIConstraints: *MediaType otherphoto *InputSlot continuous
*UIConstraints: *InputSlot continuous *MediaType otherphoto
*UIConstraints: *MediaType envelope *PageSize Letter.bl
*UIConstraints: *PageSize Letter.bl *MediaType envelope
*UIConstraints: *MediaType envelope *PageSize A4.bl
*UIConstraints: *PageSize A4.bl *MediaType envelope
*UIConstraints: *MediaType envelope *PageSize 4X6.bl
*UIConstraints: *PageSize 4X6.bl *MediaType envelope
*UIConstraints: *MediaType envelope *PageSize 4X8.bl
*UIConstraints: *PageSize 4X8.bl *MediaType envelope
*UIConstraints: *MediaType envelope *PageSize 5X7.bl
*UIConstraints: *PageSize 5X7.bl *MediaType envelope
*UIConstraints: *MediaType envelope *PageSize 8X10.bl
*UIConstraints: *PageSize 8X10.bl *MediaType envelope
*UIConstraints: *MediaType envelope *PageSize l.bl
*UIConstraints: *PageSize l.bl *MediaType envelope
*UIConstraints: *MediaType envelope *PageSize 2l.bl
*UIConstraints: *PageSize 2l.bl *MediaType envelope
*UIConstraints: *MediaType envelope *PageSize postcard.bl
*UIConstraints: *PageSize postcard.bl *MediaType envelope
*UIConstraints: *MediaType envelope *PageSize businesscard.bl
*UIConstraints: *PageSize businesscard.bl *MediaType envelope
*UIConstraints: *MediaType envelope *PageSize wide.bl
*UIConstraints: *PageSize wide.bl *MediaType envelope
*UIConstraints: *MediaType highres *PageSize Letter.bl
*UIConstraints: *PageSize Letter.bl *MediaType highres
*UIConstraints: *MediaType highres *PageSize A4.bl
*UIConstraints: *PageSize A4.bl *MediaType highres
*UIConstraints: *MediaType highres *PageSize 4X6.bl
*UIConstraints: *PageSize 4X6.bl *MediaType highres
*UIConstraints: *MediaType highres *PageSize 4X8.bl
*UIConstraints: *PageSize 4X8.bl *MediaType highres
*UIConstraints: *MediaType highres *PageSize 5X7.bl
*UIConstraints: *PageSize 5X7.bl *MediaType highres
*UIConstraints: *MediaType highres *PageSize 8X10.bl
*UIConstraints: *PageSize 8X10.bl *MediaType highres
*UIConstraints: *MediaType highres *PageSize l.bl
*UIConstraints: *PageSize l.bl *MediaType highres
*UIConstraints: *MediaType highres *PageSize 2l.bl
*UIConstraints: *PageSize 2l.bl *MediaType highres
*UIConstraints: *MediaType highres *PageSize postcard.bl
*UIConstraints: *PageSize postcard.bl *MediaType highres
*UIConstraints: *MediaType highres *PageSize businesscard.bl
*UIConstraints: *PageSize businesscard.bl *MediaType highres
*UIConstraints: *MediaType highres *PageSize wide.bl
*UIConstraints: *PageSize wide.bl *MediaType highres
*UIConstraints: *MediaType tshirt *PageSize Letter.bl
*UIConstraints: *PageSize Letter.bl *MediaType tshirt
*UIConstraints: *MediaType tshirt *PageSize A4.bl
*UIConstraints: *PageSize A4.bl *MediaType tshirt
*UIConstraints: *MediaType tshirt *PageSize 4X6.bl
*UIConstraints: *PageSize 4X6.bl *MediaType tshirt
*UIConstraints: *MediaType tshirt *PageSize 4X8.bl
*UIConstraints: *PageSize 4X8.bl *MediaType tshirt
*UIConstraints: *MediaType tshirt *PageSize 5X7.bl
*UIConstraints: *PageSize 5X7.bl *MediaType tshirt
*UIConstraints: *MediaType tshirt *PageSize 8X10.bl
*UIConstraints: *PageSize 8X10.bl *MediaType tshirt
*UIConstraints: *MediaType tshirt *PageSize l.bl
*UIConstraints: *PageSize l.bl *MediaType tshirt
*UIConstraints: *MediaType tshirt *PageSize 2l.bl
*UIConstraints: *PageSize 2l.bl *MediaType tshirt
*UIConstraints: *MediaType tshirt *PageSize postcard.bl
*UIConstraints: *PageSize postcard.bl *MediaType tshirt
*UIConstraints: *MediaType tshirt *PageSize businesscard.bl
*UIConstraints: *PageSize businesscard.bl *MediaType tshirt
*UIConstraints: *MediaType tshirt *PageSize wide.bl
*UIConstraints: *PageSize wide.bl *MediaType tshirt
*DefaultFont: Courier
*Font Courier: Standard "(001.001)" Standard ROM
*%CNPpdToOptKey PageSize --papersize
*%CNPpdToOptKey MediaType --media
*%CNPpdToOptKey InputSlot --paperload
*%CNPpdToOptKey CNCartridge --cartridge
*%CNPpdToOptKey CNQuality --quality
*%CNPpdToOptKey CNRenderIntent --renderintent
*%CNPpdToOptKey CNGamma --gamma
*%CNPpdToOptKey CNBalanceC --balance_c
*%CNPpdToOptKey CNBalanceM --balance_m
*%CNPpdToOptKey CNBalanceY --balance_y
*%CNPpdToOptKey CNDensity --density
*%CNPpdToOptKey CNGrayscale --grayscale
*%CNPpdToOptKey CNCopies --copies
*%CNPpdToOptKey Duplex --duplex
*%CNPpdToOptKey CNStapleSide --stapleside
*%CNPpdToOptKey CNContrast --contrast
*%CNPpdToOptKey CNExtension --extension
*%
*% internalversion : 3.60.01.006
*%
Code: Select all
>>> Installing (1 of 1) net-print/cnijfilter-3.90
* checking 7 files for package collisions
>>> Merging net-print/cnijfilter-3.90 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/cngpij
>>> /usr/bin/cnijnetprn
--- /usr/lib64/
>>> /usr/lib64/libcnnet.so.1.2.2
>>> /usr/lib64/libcnnet.so -> libcnnet.so.1.2.2
--- /usr/libexec/
--- /usr/libexec/cups/
--- /usr/libexec/cups/backend/
>>> /usr/libexec/cups/backend/cnijnet
>>> /usr/libexec/cups/backend/cnijusb
--- /usr/libexec/cups/filter/
>>> /usr/libexec/cups/filter/pstocanonij

Code: Select all
qemu-kvm -rtc base=localtime -display sdl -vga std -usbdevice mouse \
-cpu host -m 2048 -drive file=/dev/HDD/windows7,cache=none,if=virtio,media=disk \
-usb -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=0x04a9,productid=0x1759




cnijfilter-2.70-r4 (my version of it in a local overlay, anyway) is working with cups-1.7.3 for me, but I don't have your model of Canon printer; I'm using cnijfilter-2.70-r4 with a Canon MP510.Small_Penguin wrote:Same problem here. After updating to cups-1.7.3, my pixma ip4300 is still recognized, but it doesn't print. LED is blinking once or twice, and cups says everything's done. Gutenprint works, but only with 300x300 dpi, and even then the borders don't seem to be correct (lower part is cut off a bit).
Anyone got cups-1.7.3 and cnijfilter-2.70 working?
Code: Select all
$ eix -I net-print/cups
[I] net-print/cups
Available versions: 1.7.1-r1^t (~)1.7.1-r2^t (~)1.7.3^t [M]**9999^t {X acl dbus debug gnutls java kerberos lprng-compat pam python selinux +ssl static-libs systemd +threads usb xinetd zeroconf ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="FreeBSD" LINGUAS="+ca +es +fr +it +ja +pt_BR +ru" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"}
Installed versions: 1.7.3^t(19:22:29 11/06/14)(X acl dbus gnutls kerberos pam ssl threads usb zeroconf -debug -java -lprng-compat -python -selinux -static-libs -systemd -xinetd ABI_MIPS="-n32 -n64 -o32" ABI_X86="64 -32 -x32" ELIBC="-FreeBSD" LINGUAS="pt_BR -ca -es -fr -it -ja -ru" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6")
Homepage: http://www.cups.org/
Description: The Common Unix Printing System
[I] net-print/cups-bjnp
Available versions: (~)1.1 (~)1.2.1
Installed versions: 1.2.1(16:35:32 01/02/14)
Homepage: http://sourceforge.net/projects/cups-bjnp/
Description: CUPS backend for the canon printers using the proprietary USB over IP BJNP protocol.
[I] net-print/cups-filters
Available versions: [m](~)1.0.29[1] 1.0.53 (~)1.0.54 **9999 {avahi dbus +foomatic jpeg perl png static-libs tiff zeroconf}
Installed versions: 1.0.54(20:20:21 11/06/14)(dbus foomatic jpeg png tiff zeroconf -perl -static-libs)
Homepage: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdfasstandardprintjobformat
Description: Cups PDF filters
[I] net-print/cups-pdf
Available versions: 2.6.1 (~)3.0_beta1 {+ppds}
Installed versions: 3.0_beta1(16:37:17 01/02/14)(ppds)
Homepage: http://www.cups-pdf.de/
Description: Provides a virtual printer for CUPS to produce PDF files.
[1] "sabayon" /var/lib/layman/sabayon
Found 4 matches.
$ eix -I cnijfilter
[I] net-print/cnijfilter
Available versions:
(2) (~)2.70-r3^f[2] (~)2.70-r4^f[2]
(3) (~)3.20-r1[2]
(0) [m](~)3.80[1]
{amd64 ip1800 ip2500 ip3300 ip4300 ip4700 ip90 mp160 mp250 mp270 mp490 mp510 mp550 mp560 mp600 mp640 +net nocupsdetection (+)servicetools}
Installed versions: 2.70-r4(2)^f[2](19:19:04 22/04/14)(amd64 mp510 -ip1800 -ip2500 -ip3300 -ip4300 -ip90 -mp160 -mp600 -nocupsdetection -servicetools) 3.20-r1(3)[2](19:20:22 22/04/14)(amd64 mp560 -ip4700 -mp250 -mp270 -mp490 -mp550 -mp640 -nocupsdetection -servicetools)
Homepage: http://support-sg.canon-asia.com/contents/SG/EN/0100469302.html
Description: Canon InkJet Printer Driver for Linux (Pixus/Pixma-Series).
[1] "sabayon" /var/lib/layman/sabayon
[2] "local_overlay" /usr/local/portageCode: Select all
$ cat /usr/local/portage/net-print/cnijfilter/cnijfilter-2.70-r4.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Changelog since last bugzilla upload
#
# initial version
#
inherit eutils rpm flag-o-matic multilib
DESCRIPTION="Canon InkJet Printer Driver for Linux (Pixus/Pixma-Series)."
DOWNLOAD_URL="http://software.canon-europe.com/software/0027403.asp"
SRC_URI="${PN}-common-${PV}-2.src.rpm"
RESTRICT="fetch nomirror confcache"
LICENSE="UNKNOWN" # GPL-2 source and proprietary binaries
SLOT="2"
KEYWORDS="~x86 ~amd64"
IUSE="amd64
nocupsdetection
mp160
mp510
mp600
ip90
ip1800
ip2500
ip3300
ip4300
servicetools"
DEPEND="app-text/ghostscript-gpl
>=net-print/cups-1.1.14
!amd64? ( sys-libs/glibc
>=dev-libs/popt-1.6
>=media-libs/tiff-3.4
>=media-libs/libpng-1.0.9 )
amd64? ( >=app-emulation/emul-linux-x86-bjdeps-0.1
app-emulation/emul-linux-x86-compat
app-emulation/emul-linux-x86-baselibs )
servicetools? ( !amd64? ( >=gnome-base/libglade-0.6
>=dev-libs/libxml-1.8
=x11-libs/gtk+-1.2* )
amd64? ( >=app-emulation/emul-linux-x86-bjdeps-0.1
app-emulation/emul-linux-x86-gtklibs ) )"
# >=automake-1.6.3
# Arrays of supported Printers, there IDs and compatible models
_pruse=("mp160" "ip3300" "mp510" "ip4300" "mp600" "ip2500" "ip1800" "ip90")
_prname=(${_pruse[@]})
_prid=("291" "292" "293" "294" "295" "311" "312" "253")
_prcomp=("mp160" "ip3300" "mp510" "ip4300" "mp600" "ip2500series" "ip1800series" "ip90")
_max=$((${#_pruse[@]}-1)) # used for iterating through these arrays
###
# Standard Ebuild-functions
###
pkg_nofetch() {
einfo "Please download ${SRC_URI} manually from"
einfo ${DOWNLOAD_URL}
einfo "and move it to ${DISTDIR}"
}
pkg_setup() {
if [ -z "$LINGUAS" ]; then # -z tests to see if the argument is empty
ewarn "You didn't specify 'LINGUAS' in your make.conf. Assuming"
ewarn "english localisation, i.e. 'LINGUAS="en"'."
LINGUAS="en"
fi
if (use amd64 && use servicetools); then
eerror "You can't build this package with 'servicetools' on amd64,"
eerror "because you would need to compile '>=gnome-base/libglade-0.6'"
eerror "and '>=dev-libs/libxml-1.8' with 'export ABI=x86' first."
eerror "That's exactly what 'emul-linux-x86-bjdeps-0.1' does with"
eerror "'dev-libs/popt-1.6'. I encourage you to adapt this ebuild"
eerror "to build 32bit versions of 'libxml' and 'libglade' too!"
die "servicetools not yet available on amd64"
fi
use amd64 && multilib_toolchain_setup x86
_prefix="/usr/local"
_bindir="/usr/local/bin"
_libdir="/usr/$(get_libdir)" # either lib or lib32
_cupsdir1="/usr/lib/cups"
_cupsdir2="/usr/libexec/cups"
_ppddir="/usr/share/cups/model"
einfo ""
einfo " USE-flags (description / probably compatible printers)"
einfo ""
einfo " amd64 (basic support for this architecture - currently without servicetools)"
einfo " servicetools (additional monitoring and maintenance software)"
einfo " nocupsdetection (this is only useful to create binary packages)"
_autochoose="true"
for i in `seq 0 ${_max}`; do
einfo " ${_pruse[$i]}\t${_prcomp[$i]}"
if (use ${_pruse[$i]}); then
_autochoose="false"
fi
done
einfo ""
if (${_autochoose}); then
ewarn "You didn't specify any driver model (set it's USE-flag)."
einfo ""
einfo "As example:\tbasic MP160 support without maintenance tools"
einfo "\t\t -> USE="mp160""
einfo ""
einfo "Press Ctrl+C to abort"
echo
ebeep
n=15
while [[ $n -gt 0 ]]; do
echo -en " Waiting $n seconds...\r"
sleep 1
(( n-- ))
done
fi
}
src_unpack() {
rpm_src_unpack || die
mv ${PN}-common-${PV} ${P} || die # Correcting directory-structure
einfo "Patching"
epatch ${FILESDIR}/cnijfilter-common-2.70-1.patch || die
epatch ${FILESDIR}/cnijfilter-2.70-png_jmpbuf-fix.patch || die
}
src_compile() {
cd libs || die
./autogen.sh --prefix=${_prefix} || die "Error: libs/autoconf.sh failed"
make || die "Couldn't make libs"
cd ../pstocanonij || die
./autogen.sh --prefix=/usr --enable-progpath=${_bindir} || die "Error: pstocanonij/autoconf.sh failed"
make || die "Couldn't make pstocanonij"
if use servicetools; then
cd ../cngpij || die
./autogen.sh --prefix=${_prefix} --enable-progpath=${_bindir} || die "Error: cngpij/autoconf.sh failed"
make || die "Couldn't make cngpij"
cd ../cngpijmon || die
./autogen.sh --prefix=${_prefix} || die "Error: cngpijmon/autoconf.sh failed"
make || die "Couldn't make cngpijmon"
fi
cd ..
for i in `seq 0 ${_max}`; do
if use ${_pruse[$i]} || ${_autochoose}; then
_pr=${_prname[$i]} _prid=${_prid[$i]}
src_compile_pr;
fi
done
}
src_install() {
mkdir -p ${D}${_bindir} || die
mkdir -p ${D}${_libdir}/cups/filter || die
mkdir -p ${D}${_ppddir} || die
mkdir -p ${D}${_libdir}/cnijlib || die
cd libs || die
make DESTDIR=${D} install || die "Couldn't make install libs"
cd ../pstocanonij || die
make DESTDIR=${D} install || die "Couldn't make install pstocanoncnij"
if use servicetools; then
cd ../cngpij || die
make DESTDIR=${D} install || die "Couldn't make install cngpij"
cd ../cngpijmon || die
make DESTDIR=${D} install || die "Couldn't make install cngpijmon"
fi
cd ..
for i in `seq 0 ${_max}`; do
if use ${_pruse[$i]} || ${_autochoose}; then
_pr=${_prname[$i]} _prid=${_prid[$i]}
src_install_pr;
fi
done
# fix directory structure
if use nocupsdetection; then
mkdir -p ${D}${_cupsdir2}/filter || die
dosym ${_cupsdir1}/filter/pstocanonij ${_cupsdir2}/filter/pstocanonij
elif has_version ">=net-print/cups-1.2.0"; then
mkdir -p ${D}${_cupsdir2} || die
mv ${D}${_cupsdir1}/* ${D}${_cupsdir2} || die
fi
}
pkg_postinst() {
einfo ""
einfo "For installing a printer:"
einfo " * Restart CUPS: /etc/init.d/cupsd restart"
einfo " * Go to http://127.0.0.1:631/"
einfo " -> Printers -> Add Printer"
einfo ""
einfo "If you experience any problems, please visit:"
einfo " http://forums.gentoo.org/viewtopic-p-3217721.html"
einfo ""
}
###
# Custom Helper Functions
###
src_compile_pr()
{
mkdir ${_pr}
cp -a ${_prid} ${_pr} || die
cp -a cnijfilter ${_pr} || die
cp -a printui ${_pr} || die
# cp -a stsmon ${_pr} || die
sleep 10
cd ${_pr}/cnijfilter || die
./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} --enable-libpath=${_libdir}/cnijlib --enable-binpath=${_bindir} || die
make || die "Couldn't make ${_pr}/cnijfilter"
if use servicetools; then
cd ../printui || die
./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} || die
make || die "Couldn't make ${_pr}/printui"
# cd ../stsmon || die
# ./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} --enable-progpath=${_bindir} || die
# make || die "Couldn't make ${_pr}/stsmon"
fi
cd ../..
}
src_install_pr()
{
cd ${_pr}/cnijfilter || die
make DESTDIR=${D} install || die "Couldn't make install ${_pr}/cnijfilter"
if use servicetools; then
cd ../printui || die
make DESTDIR=${D} install || die "Couldn't make install ${_pr}/printui"
# cd ../stsmon || die
# make DESTDIR=${D} install || die "Couldn't make install ${_pr}/stsmon"
fi
cd ../..
cp -a ${_prid}/libs_bin/* ${D}${_libdir} || die
cp -a ${_prid}/database/* ${D}${_libdir}/cnijlib || die
cp -a ppd/canon${_pr}.ppd ${D}${_ppddir} || die
}Code: Select all
$ eix -I deps
[I] app-emulation/emul-linux-x86-bjdeps [1]
Available versions: (~)0.1-r2 (~)0.1-r3 (~)0.1-r4
Installed versions: 0.1-r4(11:45:29 02/03/13)
Homepage: http://rpm5.org/
Description: 32bit nls-disabled dev-libs/popt-1.16
[1] "local_overlay" /usr/local/portageCode: Select all
$ cat /usr/local/portage/app-emulation/emul-linux-x86-bjdeps/emul-linux-x86-bjdeps-0.1-r4.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit libtool eutils flag-o-matic autotools multilib
DESCRIPTION="32bit nls-disabled dev-libs/popt-1.16"
HOMEPAGE="http://rpm5.org/"
SRC_URI="http://rpm5.org/files/popt/popt-1.16.tar.gz"
RESTRICT="confcache"
WANT_AUTOMAKE="1.6"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND=""
pkg_setup() {
multilib_toolchain_setup x86
}
src_unpack() {
unpack ${A}
cd ${WORKDIR}
mkdir ${P} # this way portage won't complain about missing directories
cd "${WORKDIR}/popt-1.16" || die
epatch "${FILESDIR}"/fix-popt-pkgconfig-libdir.patch
}
src_compile() {
cd "${WORKDIR}/popt-1.16" || die
econf "--libdir=/usr/lib32" || die "configure failed"
emake || die "emake failed"
}
src_install() {
cd "${WORKDIR}/popt-1.16" || die
emake install DESTDIR="${D}" || die
# Don't install anything except the library itself
rm -Rv ${D}/usr/share || die
rm -Rv ${D}/usr/include || die
}