debian/0000755000000000000000000000000012061001213007150 5ustar debian/patches/0000755000000000000000000000000012060664775010632 5ustar debian/patches/fix_recieved_typos.patch0000644000000000000000000000304712060664775015551 0ustar --- cups-bjnp.orig/bjnp-commands.c +++ cups-bjnp/bjnp-commands.c @@ -158,7 +158,7 @@ if (select (sockfd + 1, &fdset, NULL, NULL, &timeout) <= 0) { - /* no data recieved OR error, in either case retry */ + /* no data received OR error, in either case retry */ continue; } @@ -217,7 +217,7 @@ if ( (id_len < 0) || (id_len > (resp_len - bjnp_header_size) ) || ( id_len > BJNP_IEEE1284_MAX) ) { - bjnp_debug( LOG_DEBUG, "Id - length recieved is invalid: %d (total response length = %d\n", + bjnp_debug( LOG_DEBUG, "Id - length received is invalid: %d (total response length = %d\n", id_len, resp_len); return -1; } --- cups-bjnp.orig/bjnp-io.c +++ cups-bjnp/bjnp-io.c @@ -248,7 +248,7 @@ { terrno = errno; bjnp_debug (LOG_CRIT, - "bjnp_backchannel: (recv) could not read response header, recieved %d bytes!\n", + "bjnp_backchannel: (recv) could not read response header, received %d bytes!\n", recv_bytes); bjnp_debug (LOG_CRIT, "bjnp_backchannel: (recv) error: %s!\n", strerror (terrno)); --- cups-bjnp.orig/bjnp-runloop.c +++ cups-bjnp/bjnp-runloop.c @@ -57,7 +57,7 @@ int paperout, /* "Paper out" status */ ack_pending; /* io slot status */ int offline; /* "Off-line" status */ - int draining; /* Drain command recieved? */ + int draining; /* Drain command received? */ char print_buffer[BJNP_PRINTBUF_MAX], /* Print data buffer */ *print_ptr; /* Pointer into print data buffer */ debian/patches/series0000644000000000000000000000003112060664557012037 0ustar fix_recieved_typos.patch debian/watch0000644000000000000000000000030512060432775010223 0ustar # Compulsory line, this is a version 3 file version=3 # See uscan(1) for format # Uncomment to find new files on sourceforge, for devscripts >= 2.9 http://sf.net/cups-bjnp/cups-bjnp-(.*)\.tar\.gz debian/copyright0000644000000000000000000000201112060436720011113 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: cups-bjnp Source: http://cups-bjnp.sourceforge.net/ Files: * Copyright: 2008-2012 Louis Lagendijk License: GPL-2.0 Files: debian/* Copyright: 2012 Joe Nahmias License: GPL-2.0 License: GPL-2.0 This package is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. . This package 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, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/docs0000644000000000000000000000001412060667451010043 0ustar NEWS README debian/control0000644000000000000000000000154512060706447010604 0ustar Source: cups-bjnp Section: text Priority: optional Maintainer: Debian Printing Team Uploaders: Joe Nahmias Build-Depends: debhelper (>= 9.0.0), autotools-dev, libcups2-dev Standards-Version: 3.9.4 Homepage: http://cups-bjnp.sourceforge.net/ VCS-Browser: http://git.debian.org/?p=collab-maint/cups-bjnp.git VCS-Git: git://git.debian.org/git/collab-maint/cups-bjnp.git Package: cups-backend-bjnp Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: foomatic-db-gutenprint Description: printer backend for Canon BJNP protocol This package provides a back-end for CUPS printing system to interface with Canon printers using the proprietary USB over IP BJNP protocol. This back-end allows Cups to print over the network to a Canon printer and was designed by reverse engineering the protocol. debian/README.Debian0000644000000000000000000000327112060712455011234 0ustar # Here's how I configured my Canon PIXMA MP560 printer using bjnp over wifi: ############################################################################ # 1) Turn the printer on, enable wifi # 2) Run bjnp to list active BJNP-listening printers on the local network $ /usr/lib/cups/backend/bjnp network bjnp://CANON-MP560.local:8611 "Canon MP560 series" "Canon MP560 series CANON-MP560.local" "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,NCCe,IVEC,IVECPLI;SOJ:TXT01,BJNP2;MDL:MP560 series;CLS:PRINTER;DES:Canon MP560 series;VER:1.040;STA:10;FSI:00;HRI:PAM;MSI:DAT,E3,HFSF;PDR:3;" # 3) Find an appropriate driver/PPD for the printer on the system $ sudo lpinfo --make-and-model MP560 -m foomatic:Canon-MULTIPASS-MP560-gutenprint-ijs-simplified.5.2.ppd Canon MULTIPASS-MP560 Foomatic/gutenprint-ijs-simplified.5.2 foomatic:Canon-MULTIPASS-MP560-gutenprint-ijs.5.2.ppd Canon MULTIPASS-MP560 Foomatic/gutenprint-ijs.5.2 gutenprint.5.2://bjc-MULTIPASS-MP560/expert Canon PIXMA MP560 - CUPS+Gutenprint v5.2.9 # 4) Create the printer in CUPS, enable it, and set it as the default $ sudo lpadmin -p CanonMP560 -v bjnp://CANON-MP560.local:8611 -D "Canon MP560 series" -m gutenprint.5.2://bjc-MULTIPASS-MP560/expert $ sudo cupsaccept CanonMP560 $ sudo cupsenable CanonMP560 $ sudo lpadmin -d CanonMP560 # 5) Looks good $ lpstat -t scheduler is running system default destination: CanonMP560 device for CanonMP560: bjnp://CANON-MP560.local:8611 CanonMP560 accepting requests since Sat 08 Dec 2012 12:33:45 PM EST printer CanonMP560 is idle. enabled since Sat 08 Dec 2012 12:33:45 PM EST Ready to print. # 6) Print a test page $ lp /usr/share/doc/cups-backend-bjnp/README.Debian request id is CanonMP560-20 (1 file(s)) # 7) Celebrate debian/rules0000755000000000000000000000034612060440267010252 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 override_dh_auto_configure: dh_auto_configure -- --with-cupsbackenddir=/usr/lib/cups/backend %: dh $@ --with autotools-dev debian/compat0000644000000000000000000000000212060433777010375 0ustar 9 debian/changelog0000644000000000000000000000113112061001034011017 0ustar cups-bjnp (1.2-1) unstable; urgency=low * Initial release, closes: #695401. * Move to collab-maint, add VCS-* fields to debian/control * switch maintainer to Printing Team, add myself as an uploader * add patch to fix recieved -> received typos * bump std-ver, no changes needed * don't install unnecessary TODO, AUTHORS files * README.Debian: update printer setup instructions with what worked for me * rename binary pkg to cups-backend-bjnp * recommend foomatic-db-gutenprint pkg to pull in printer drivers -- Joe Nahmias Sat, 08 Dec 2012 22:14:32 -0500 debian/source/0000755000000000000000000000000012060432624010465 5ustar debian/source/format0000644000000000000000000000001412060432624011673 0ustar 3.0 (quilt)