ports/134075: New port: print/cups-bjnp Canon USB-over-IP backend for CUPS

Stephen Hurd shurd at sasktel.net
Wed Apr 29 00:40:02 UTC 2009


>Number:         134075
>Category:       ports
>Synopsis:       New port: print/cups-bjnp Canon USB-over-IP backend for CUPS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 29 00:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Hurd
>Release:        7.1-RELEASE-p3
>Organization:
>Environment:
FreeBSD ace.hurd.local 7.1-RELEASE-p3 FreeBSD 7.1-RELEASE-p3 #0: Tue Feb 24 20:36:32 PST 2009     admin at ace.hurd.local:/tmp/obj/usr/src/sys/ACE  i386
>Description:
CUPS backend for the canon proprietary USB over IP network printing protocol, BJNP. This backend is based on reverse engineering using TCP/IP. It can be used with CUPS 1.2 and 1.3. This backend allows Cups to connect over the network to a Canon printers.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	print/cups-bjnp
#	print/cups-bjnp/Makefile
#	print/cups-bjnp/distinfo
#	print/cups-bjnp/files
#	print/cups-bjnp/files/patch-bjnp-io.c
#	print/cups-bjnp/files/patch-configure
#	print/cups-bjnp/pkg-plist
#	print/cups-bjnp/pkg-descr
#
echo c - print/cups-bjnp
mkdir -p print/cups-bjnp > /dev/null 2>&1
echo x - print/cups-bjnp/Makefile
sed 's/^X//' >print/cups-bjnp/Makefile << 'f9e0e174f2ec5c5e76efcb6eb8fee53d'
X# New ports collection makefile for:   cups-bjnp
X# Date created:        5 December 1994
X# Whom:                asami
X#
X# $FreeBSD$
X#
X
XPORTNAME=      cups-bjnp
XPORTVERSION=   0.5
XCATEGORIES=    print
XMASTER_SITES=  ${MASTER_SITE_SOURCEFORGE_EXTENDED}
X
XMAINTAINER=    shurd at sasktel.net
XCOMMENT=       CUPS backend for Canon USB over IP protocol
X
XLIB_DEPENDS=	cups:${PORTSDIR}/print/cups-base
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV=	CFLAGS+="-I${LOCALBASE}/include" CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" LIBS="-lcompat"
X
X.include <bsd.port.mk>
f9e0e174f2ec5c5e76efcb6eb8fee53d
echo x - print/cups-bjnp/distinfo
sed 's/^X//' >print/cups-bjnp/distinfo << 'b4953d2a1d8e136317391f602dec17df'
XMD5 (cups-bjnp-0.5.tar.gz) = 8d0781ec4b31b7eee2e8ce4a2d47aa90
XSHA256 (cups-bjnp-0.5.tar.gz) = f303b3f23ec583344fa8f9c659aa9515566deb352f5971e96a1d72f8ee208dd7
XSIZE (cups-bjnp-0.5.tar.gz) = 138914
b4953d2a1d8e136317391f602dec17df
echo c - print/cups-bjnp/files
mkdir -p print/cups-bjnp/files > /dev/null 2>&1
echo x - print/cups-bjnp/files/patch-bjnp-io.c
sed 's/^X//' >print/cups-bjnp/files/patch-bjnp-io.c << '289923b8669bbfb3a8f4eb209890124c'
X--- bjnp-io.c.orig	2009-02-28 12:08:51.000000000 -0800
X+++ bjnp-io.c	2009-04-28 16:59:11.000000000 -0700
X@@ -15,6 +15,8 @@
X  * <to be added>
X  */
X 
X+#include "config.h"
X+
X #include <sys/socket.h>
X #include <arpa/inet.h>
X #include <sys/select.h>
289923b8669bbfb3a8f4eb209890124c
echo x - print/cups-bjnp/files/patch-configure
sed 's/^X//' >print/cups-bjnp/files/patch-configure << 'c0321587995eca210059de75c2692eea'
X--- configure.orig	2009-03-12 13:15:28.000000000 -0700
X+++ configure	2009-04-28 17:25:40.000000000 -0700
X@@ -3671,14 +3671,14 @@
X 
X else
X 
X-    dirs="/usr/lib/cups/backend /usr/local/lib/cups/backend /opt/lib/cups/backend"
X+    dirs="/usr/lib/cups/backend /usr/local/lib/cups/backend /opt/lib/cups/backend /usr/local/libexec/cups/backend"
X     cupsbackenddir=""
X     for dir in $dirs; do
X-      if test -d $dir -a -n "cupsbackenddir"; then
X+      if test -d $dir -a -z "$cupsbackenddir"; then
X         cupsbackenddir=$dir
X       fi
X     done
X-    if test -n $cupsbackenddir; then
X+    if test -n "$cupsbackenddir"; then
X       echo found Cups backend directory $cupsbackenddir
X           else
X       { { $as_echo "$as_me:$LINENO: error: Cups backend directory not specified and auto-detection failed!" >&5
c0321587995eca210059de75c2692eea
echo x - print/cups-bjnp/pkg-plist
sed 's/^X//' >print/cups-bjnp/pkg-plist << '5ba5047794db09b944d81e2f94b28a8c'
Xlibexec/cups/backend/bjnp
X at dirrmtry libexec/cups/backend
X at dirrmtry libexec/cups
5ba5047794db09b944d81e2f94b28a8c
echo x - print/cups-bjnp/pkg-descr
sed 's/^X//' >print/cups-bjnp/pkg-descr << '6860ffe1ab592de105c4f01e9a7fb1a6'
XCUPS backend for the canon proprietary USB over IP network printing
Xprotocol, BJNP. This backend is based on reverse engineering using
XTCP/IP. It can be used with CUPS 1.2 and 1.3. This backend allows Cups
Xto connect over the network to a Canon printers
X
XWWW: http://cups-bjnp.sourceforge.net/
6860ffe1ab592de105c4f01e9a7fb1a6
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list